![]() |
| ||
| error in cstdlib hello again, just tried to compile my project and i'm getting errors with a file cstdlib Error 2 error C2039: 'abort' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 9.0\vc\include\cstdlib 23 Error 3 error C2873: 'abort' : symbol cannot be used in a using-declaration c:\program files\microsoft visual studio 9.0\vc\include\cstdlib 23 Error 4 error C2039: 'exit' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 9.0\vc\include\cstdlib 26 Error 5 error C2873: 'exit' : symbol cannot be used in a using-declaration c:\program files\microsoft visual studio 9.0\vc\include\cstdlib 26 i have no idea whats causing these errors so far as i'm aware i'm not even using cstdlib -Midi |
| ||
| Re: error in cstdlib try
|
| ||
| Re: error in cstdlib all the files that seem to give me the cstdlib error have that in them already -midi |
| ||
| Re: error in cstdlib post header files...please... |
| ||
| Re: error in cstdlib Of more relevance, try posting a small sample of your code that illustrates the problem. Also provide information about your compiler settings (eg any settings you've tweaked in the VC IDE to non-standard settings). My guess is that you've been playing with some #define's somewhere (either before you've include'd some headers, or in the IDE settings) and they interact with the headers in strange ways. |
| ||
| Re: error in cstdlib the only thing i've done is add GLUT_BUILDING_LIB to the preprocessors to stop a clash between glut and stdlib i have no idea what code to post, my program consists of 30 files and the error says its in the file cstdlib the only thing i have to go on is the errors happen after these 3 files test.cpp #include <iostream>viewer.cpp #include "viewer.h"worldmanager.cpp #include "worldmanager.h" i'm thinking it could be a corrupt header file but i cant seem to find stdlib anywhere atleast not one that looks anything like what i have at the moment -midi |
| ||
| Re: error in cstdlib I'd look in the glut header files before looking in the cstdlib. The fact there is even a macro GLUT_BUILDING_LIB to define to "stop a clash between glut and stdlib" says that the incompatibility is the glut header file and library, rather than the standard library. Generally, suppliers of third-party libraries (like glut) are responsible for ensuring compatibility with compilers and standard libraries. Presumably, in your case, the glut library people have not ensured compatibility with your version of Visual Studio. |
| All times are GMT -4. The time now is 9:25 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC