Archived

This topic is now archived and is closed to further replies.

fatal error C1083

This topic is 5535 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

--------------------Configuration: fggfg - Win32 Debug-------------------- Compiling... QQ.c c:\new\quartics\qq.c(1) : fatal error C1083: Cannot open include file: ''stdafx.h'': No such file or directory Error executing cl.exe. QQ.obj - 1 error(s), 0 warning(s) anyone know how do one solve this problem? i have tried removing the usage of precompiled header, and i have created workspace on MFC .exe, but all in vain... please advice anyone?

Share this post


Link to post
Share on other sites
There is still the 1083 error in compiling cpp file.
but this errors below

as

GLUquadricObj *quadratic; // Storage For Our Quadratic

already make it a pointer for storage
i do not know why it''s giving errors at

quadratic = gluNewQuadric(); // Create A Pointer To The Quadric Object ( NEW )

--------------------Configuration: hope - Win32 Debug--------------------
Compiling...
hope.cpp
C:\New\hope\hope.cpp(86) : error C2501: ''quadratic'' : missing storage-class or type specifiers
C:\New\hope\hope.cpp(86) : error C2040: ''quadratic'' : ''int'' differs in levels of indirection from ''class GLUquadric *''
C:\New\hope\hope.cpp(86) : error C2440: ''initializing'' : cannot convert from ''class GLUquadric *'' to ''int''
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\New\hope\hope.cpp(87) : error C2501: ''gluQuadricNormals'' : missing storage-class or type specifiers
C:\New\hope\hope.cpp(87) : error C2373: ''gluQuadricNormals'' : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\gl\glu.h(182) : see declaration of ''gluQuadricNormals''
C:\New\hope\hope.cpp(87) : error C2078: too many initializers
C:\New\hope\hope.cpp(88) : error C2501: ''gluQuadricTexture'' : missing storage-class or type specifiers
C:\New\hope\hope.cpp(88) : error C2373: ''gluQuadricTexture'' : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\gl\glu.h(186) : see declaration of ''gluQuadricTexture''
C:\New\hope\hope.cpp(88) : error C2078: too many initializers
C:\New\hope\hope.cpp(99) : error C2065: ''LoadBMP'' : undeclared identifier
C:\New\hope\hope.cpp(99) : error C2440: ''='' : cannot convert from ''int'' to ''struct _AUX_RGBImageRec *''
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\New\hope\hope.cpp(100) : error C2440: ''='' : cannot convert from ''int'' to ''struct _AUX_RGBImageRec *''
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\New\hope\hope.cpp(188) : error C2501: ''glTexGeni'' : missing storage-class or type specifiers
C:\New\hope\hope.cpp(188) : error C2373: ''glTexGeni'' : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1450) : see declaration of ''glTexGeni''
C:\New\hope\hope.cpp(188) : error C2078: too many initializers
C:\New\hope\hope.cpp(189) : error C2501: ''glTexGeni'' : missing storage-class or type specifiers
C:\New\hope\hope.cpp(189) : error C2373: ''glTexGeni'' : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1450) : see declaration of ''glTexGeni''
C:\New\hope\hope.cpp(189) : error C2078: too many initializers
C:\New\hope\hope.cpp(245) : error C2143: syntax error : missing '';'' before ''if''
C:\New\hope\hope.cpp(246) : error C2143: syntax error : missing '';'' before ''{''
C:\New\hope\hope.cpp(246) : error C2447: missing function header (old-style formal list?)
C:\New\hope\hope.cpp(253) : error C2143: syntax error : missing '';'' before ''}''
C:\New\hope\hope.cpp(253) : error C2143: syntax error : missing '';'' before ''}''
C:\New\hope\hope.cpp(253) : error C2143: syntax error : missing '';'' before ''}''
Error executing cl.exe.
hope.obj - 24 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites