Hello,
thanks in advance for any help.
I am reading Bjarne Stroustrup`s Programming: Principles and Practice Using C++.
System OS:Windows 7 RC 7100; Compiler - Visual Studio 2008 Team System
I am on the first example which is :
1 2 3 4 5 6 7 8 9
|
//This program outputs the message "Hello,World!" to the monitor
#include "std_lib_facilities.h"
int main() //C++ programs start by executing the function main
{
cout << "Hello,World!\n"; //Output "Hello,World!"
return 0;
}
|
I `ve installed the FLTK according to the apendix and I downloaded and put the std_lib_facilities.h into the include folder but the result in the compilation is this :
------ Build started: Project: test hello world, Configuration: Debug Win32 ------
Compiling...
test hello world.cpp
y:\visualstudio\vc\include\math.h(62) : error C3861: 'floor': identifier not found
y:\visualstudio\vc\include\cmath(21) : error C2039: 'acosf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(21) : error C2873: 'acosf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(21) : error C2039: 'asinf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(21) : error C2873: 'asinf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(22) : error C2039: 'atanf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(22) : error C2873: 'atanf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(22) : error C2039: 'atan2f' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(22) : error C2873: 'atan2f' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(22) : error C2039: 'ceilf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(22) : error C2873: 'ceilf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(23) : error C2039: 'cosf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(23) : error C2873: 'cosf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(23) : error C2039: 'coshf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(23) : error C2873: 'coshf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(23) : error C2039: 'expf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(23) : error C2873: 'expf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(24) : error C2039: 'fabsf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(24) : error C2873: 'fabsf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(24) : error C2039: 'floorf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(24) : error C2873: 'floorf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(24) : error C2039: 'fmodf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(24) : error C2873: 'fmodf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(25) : error C2039: 'frexpf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(25) : error C2873: 'frexpf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(25) : error C2039: 'ldexpf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(25) : error C2873: 'ldexpf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(25) : error C2039: 'logf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(25) : error C2873: 'logf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(26) : error C2039: 'log10f' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(26) : error C2873: 'log10f' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(26) : error C2039: 'modff' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(26) : error C2873: 'modff' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(26) : error C2039: 'powf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(26) : error C2873: 'powf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(27) : error C2039: 'sinf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(27) : error C2873: 'sinf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(27) : error C2039: 'sinhf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(27) : error C2873: 'sinhf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(27) : error C2039: 'sqrtf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(27) : error C2873: 'sqrtf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(28) : error C2039: 'tanf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(28) : error C2873: 'tanf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(28) : error C2039: 'tanhf' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(28) : error C2873: 'tanhf' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(30) : error C2039: 'acosl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(30) : error C2873: 'acosl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(30) : error C2039: 'asinl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(30) : error C2873: 'asinl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(31) : error C2039: 'atanl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(31) : error C2873: 'atanl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(31) : error C2039: 'atan2l' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(31) : error C2873: 'atan2l' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(31) : error C2039: 'ceill' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(31) : error C2873: 'ceill' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(32) : error C2039: 'cosl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(32) : error C2873: 'cosl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(32) : error C2039: 'coshl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(32) : error C2873: 'coshl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(32) : error C2039: 'expl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(32) : error C2873: 'expl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(33) : error C2039: 'fabsl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(33) : error C2873: 'fabsl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(33) : error C2039: 'floorl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(33) : error C2873: 'floorl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(33) : error C2039: 'fmodl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(33) : error C2873: 'fmodl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(34) : error C2039: 'frexpl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(34) : error C2873: 'frexpl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(34) : error C2039: 'logl' : is not a member of '`global namespace''
y:\visualstudio\vc\include\cmath(34) : error C2873: 'logl' : symbol cannot be used in a using-declaration
y:\visualstudio\vc\include\cmath(35) : error C2039: 'log10l' : is not a member of '`global namespace''
!!! I SKIPPED MOST OF THE MISTAKES ( THEY ARE STILL CONNECTED TO CMATH) DUE TO MESSAGE LIMITATION!!!
Sorry for the capslocks!
y:\visualstudio\vc\include\cmath(43) : fatal error C1003: error count exceeds 100; stopping compilation
Build log was saved at "file://c:\Users\Strashniq\Documents\Visual Studio 2008\Projects\test hello world\test hello world\Debug\BuildLog.htm"
test hello world - 102 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I got no idea what to do...
Thanks Again!