On Tuesday 04 December 2001 18:47, Carpman wrote:
> I'm almost ashamed to ask this, it is such a newbie question.
>
> Why can't I get the client library to link into a C++ program
> correctly. (Hears the "PUT EXTERN IN FRONT OF EVERYTING" coming
> from a mile away).
>
> This comes as a result of me converting pgOrganizer from C to C++.
> At first I wanted
> to avoid this, but the code started to go turn into spaghetti. Some
> functions were getting
> passed up to six pointers. The code has reduced thanks to the
> conversion, now only if it would link!


Can you attach the errors you're getting?  In all likelihood the 
cli_c headers aren't C++ clean, i.e. they probably don't have the 
macros to check for a c++ compiler to make sure that the symbols 
aren't getting mangled.  C++ uses symbol mangling and C does not, 
this is so you can have more than one function with the same name but 
different arguments.

Anyway, just change it to-
extern "C" {
#include <picogui.h>
}

Thanks,
Shane Nay.

Thanks,
Shane Nay.

_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to