I'm trying to compile my C++ project using Visual C++ 6.0 but am getting this error: eh.h is only for C++!
anonymous
1970-01-01 00:00:00 UTC
I'm trying to compile my C++ project using Visual C++ 6.0 but am getting this error: eh.h is only for C++!
Four answers:
Alex T
2006-11-12 00:41:33 UTC
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.
luay k
2006-11-09 02:05:19 UTC
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
hmongthaoboi
2006-11-09 02:04:19 UTC
.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++
anonymous
2006-11-09 02:04:20 UTC
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.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.