fatal Error C1083
Apr 23, 2013 at 3:08pm UTC
hey guys, i am writing this code and i got 8 errors i have no idea were did they come from but the first error is fatal error C1083 cannot opn program database file:....:No such file or directory
here is my code
first i have this header file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
#ifndef ONE_H
#define ONE_H
#include <string>
#include <iostream>
using namespace std;
class ItemType {
public :
string name;
int discount;
bool Return;
virtual int price(int n);
virtual int price(double w);
virtual bool inventoryCheck(int threshold);
virtual bool inventoryCheck(double threshold);
virtual void print();
ItemType (string Name, int d, bool R);
ItemType ();
};
class WItem : public ItemType {
public :
int pricePerKilo;
double kilosAvailable;
WItem (int P, double KA);
int price(double w);
bool inventoryCheck(double threshold);
void print();
};
class IItem : public ItemType {
public :
int pricePerItem;
int itemsAvailable;
IItem (int Price, int IA);
int price(int n);
bool inventoryCheck(int threshold);
void print();
};
#endif
then i have the source file itemtype:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
#include "one.h"
ItemType :: ItemType (string Name, int d, bool R){
name=Name;
discount=d;
Return=R;
}
ItemType :: ItemType (){
name="" ;
discount=0;
Return=false ;
}
int ItemType :: price(int n){
return 0;
};
int ItemType :: price(double w){
return 0;};
bool ItemType:: inventoryCheck(int threshold){
return false ;
};
bool ItemType:: inventoryCheck(double threshold){
return false ;
};
void ItemType :: print(){};
then i have another source file witem:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "one.h"
int WItem :: price(double w){
return (pricePerKilo*w);
};
bool WItem :: inventoryCheck(double threshold){
return (kilosAvailable>threshold);
};
void WItem :: print(){
cout<< name;
cout<< kilosAvailable;
};
this is a source file iitem:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "one.h"
int IItem :: price(int n){
return (pricePerItem*n);
};
bool IItem :: inventoryCheck(int threshold){
return (itemsAvailable>threshold);
};
void IItem :: print(){
cout<< name;
cout<< itemsAvailable;
};
and this is main:
1 2 3 4 5 6 7
#include "one.h"
int main (int argc, char ** argv) {
return 0;
}
the errors am getting are th following:
1>------ Build started: Project: lab 11, Configuration: Debug Win32 ------
1>Compiling...
1>iitem.cpp
1>c:\users\admin\desktop\230eece\lab 11\lab 11\iitem.cpp : error C2471: cannot update program database 'c:\users\admin\desktop\230eece\lab 11\lab 11\debug\vc90.pdb'
1>c:\users\admin\desktop\230eece\lab 11\lab 11\iitem.cpp : fatal error C1083: Cannot open program database file: 'c:\users\admin\desktop\230eece\lab 11\lab 11\debug\vc90.pdb': No such file or directory
1>itemtype.cpp
1>c:\users\admin\desktop\230eece\lab 11\lab 11\itemtype.cpp : error C2471: cannot update program database 'c:\users\admin\desktop\230eece\lab 11\lab 11\debug\vc90.pdb'
1>c:\users\admin\desktop\230eece\lab 11\lab 11\itemtype.cpp : fatal error C1083: Cannot open program database file: 'c:\users\admin\desktop\230eece\lab 11\lab 11\debug\vc90.pdb': No such file or directory
1>main.cpp
1>c:\users\admin\desktop\230eece\lab 11\lab 11\main.cpp : error C2471: cannot update program database 'c:\users\admin\desktop\230eece\lab 11\lab 11\debug\vc90.pdb'
1>c:\users\admin\desktop\230eece\lab 11\lab 11\main.cpp : fatal error C1083: Cannot open program database file: 'c:\users\admin\desktop\230eece\lab 11\lab 11\debug\vc90.pdb': No such file or directory
1>witem.cpp
1>c:\users\admin\desktop\230eece\lab 11\lab 11\witem.cpp : error C2471: cannot update program database 'c:\users\admin\desktop\230eece\lab 11\lab 11\debug\vc90.pdb'
1>c:\users\admin\desktop\230eece\lab 11\lab 11\witem.cpp : fatal error C1083: Cannot open program database file: 'c:\users\admin\desktop\230eece\lab 11\lab 11\debug\vc90.pdb': No such file or directory
1>Generating Code...
1>Build log was saved at "file://c:\Users\Admin\Desktop\230EECE\lab 11\lab 11\Debug\BuildLog.htm"
1>lab 11 - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
thank you guys :)
Apr 23, 2013 at 4:41pm UTC
Last edited on Apr 23, 2013 at 4:45pm UTC
Apr 24, 2013 at 6:22am UTC
i am new to programing and i dont know what is the compiler i am using :( how can i know that?
Apr 24, 2013 at 6:23am UTC
Try going into the Build menu and selecting Rebuild All, or Clean then Build All.
Apr 24, 2013 at 7:25am UTC
thank you guys i will try that zhuge :)
Topic archived. No new replies allowed.