Thread: stdlib.h error?
View Single Post
Join Date: Mar 2008
Posts: 40
Reputation: midimatt is an unknown quantity at this point 
Solved Threads: 2
midimatt's Avatar
midimatt midimatt is offline Offline
Light Poster

stdlib.h error?

 
0
  #1
Dec 31st, 2008
Hello everyone,

got a really strange and annoying error. When i compile my program i get 2 errors and 2 warnings all 4 to do with stdlib.h

error C2381: 'exit' : redefinition; __declspec(noreturn) differs c:\program files\microsoft visual studio 9.0\vc\include\stdlib.h 371

i did a little research on the problem and found it was something to do with a conflict between glut and stdlib so i did what they asked me to do add GLUT_BUILDING_LIB to the preprocessors.

compiled again this time with 72 errors and 11 warnings

all 72 of the errors are linking errors

Error 61 error LNK2019: unresolved external symbol _glutIdleFunc@4 referenced in function "private: void __thiscall Viewer::GLInit(void)" (?GLInit@Viewer@@AAEXXZ)

i'm really stumped as to what needs to be done

-midi
Reply With Quote