i am Getting this Error
fatal error C1189: #error : "eh.h is only for C++!"
I'm not familiar with the compiler you are using (or maybe I
am---I don't know what compiler you are using), but the text of
the error message seems very, very clear. The author of this
file, for whatever reasons, did *not* want his header processed
by a C compiler. Which probably means that you'll have to
either give up using the library, or wrap it in an additional C
layer which can be called from C++.
Note that the error message says "#error". That sounds like the
compiler has encountered an #error preprocessor directive.
Perhaps something like:
#ifndef __cplusplus
#error eh.h is only for C++
#endif
You could always try to invoke the C compiler with something
like -D__cplusplus or /D__cplusplus, but this is undefined
behavior, and of course, if the original author didn't want the
file compiled with a C compiler, there is probably a reason.
my Problem is i am Having C++ librabry and Appropriate .h file
i want to Access Them is .c File Files.....
You can't.
to Be More Specific i am Creating a C++ Object in a C file...
this Giving me the error!!!
You can't.
can Any Body Please Help me
How to Access the C++ object in C file...
If you compile with C, there is no way that you're be able to
instantiate a C++ class that is not a POD. If you compile with
C, there's no way you can do anything not allowed in C. (Also,
if you compile with C, this forum really isn't the appropriate
place to post your question. comp.lang.c would be more
appropriate, but I can just imagine the response you'll get
there.)