Matt Garman wrote:

There are two things that may help:


1. Try compiling your code with g++ instead of gcc.  If you are using
new and delete, then you are writing c++ code.


I've *linked* with g++ and that solved the puzzle. With GCC2, i could also link with gcc and had no trouble at all. However, the problem is solved.

2. In your header file, try to wrap your function prototypes like the
following:

#ifdef __cplusplus
extern "C" {
#endif
>

Yes, i did. Compiling didn't fail. I used a C function within a
.cpp file, compiled using g++, which eventually is a wrapper
function (interface) for a C++ class for use from a C app.

Hope that helps, Matt


Thanks alot for that deep analysis. This is why i like this mailing list. One can even ask non-gentoo related questions, there's almost always someone who'll help.


-- [EMAIL PROTECTED] mailing list



Reply via email to