You mis-spelled it. C is picky about spelling and capitals and the like...
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-01-27
Header files are included by the pre-processor (CPP) rather that the compiler, and the parameter to #include is a filename, so technically it is the file system that is picky about spelling, and on windows it is not picky about case, but if you want to port code to Linux/Unix then you better use the correct case too!
Sorry - that was so pedantic - I must be bored!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
#include <iostream>
#include <cstlib>
using namespace std;
int main(void)
{
cout<<"hello world!"<<endl;
system("PAUSE");
return 0;
}
18 C:\Programming\C++\Source Code\Exercises\Test Exercise.cpp:2
cstlib: No such file or directory.
#include <iostream>
#include <cstdlib> // d added here
using namespace std;
int main(void)
{
cout<<"hello world!"<<endl;
system("PAUSE");
return 0;
}
Derek
The file is the C standard library, or
cstdlib
You mis-spelled it. C is picky about spelling and capitals and the like...
Wayne
Header files are included by the pre-processor (CPP) rather that the compiler, and the parameter to #include is a filename, so technically it is the file system that is picky about spelling, and on windows it is not picky about case, but if you want to port code to Linux/Unix then you better use the correct case too!
Sorry - that was so pedantic - I must be bored!
Well I am *so* embarassed!!!
;-)
Thanks Cliff. Was trying to make a joke, although mispelled variables can have disturbing effects too...
Wayne (or is that Wain?)