Saturday, May 22, 2010

I'm trying to compile my C++ project using Visual C++ 6.0 but am getting this error: eh.h is only for C++!

My files have and extension .h and .C


and am getting this error when i try to compile the code usign Microsoft Visual C++ 6.0.


Will this need any code change to be done. There are about 300 files in this project.

I'm trying to compile my C++ project using Visual C++ 6.0 but am getting this error: eh.h is only for C++!
But why are u compiling in visual C++?


Check for version compatibilty. Try compiling the project in Turbo C++ or Borland or some other compiler.
Reply:the first step


copy your code and go to file and close workspace after that


go to file and select new workspace


and select new file


and past your code and run you project
Reply:Assuming you don't care whether this is C or C++ code generated, just compile everything with the /TP switch. The compiler detects your .c files and invokes the C code path in the front-end. /TP tells it to treat everything as a C++ file.
Reply:.C?// that C not C++





first of all C and C++ is different, not entirly but it is.





C only consit of .c files


C++ has .h and .cpp files because it's OOP enhanced





if you are codding in C, check your codes because you should not make any call or to .h becuase it doesn't work.





if you are coding C++, then someone is wrong with eitehr your .h or .cpp files.








###################





C++ 6.0 is really outdated now so most codes doesn't work with because of teh c++ libiary are outdated


.


it should work on 6.0 if you program in C, but i recommend getting 03.net or 05.net because it has newer libariry





C should run fine because it's the lower lvl of C++


No comments:

Post a Comment