PDA

View Full Version : Compiling Plugin Problem


ajk48n
05-18-2003, 07:51 PM
I've been starting to read up on the API documentation, but I'm, having a bit of a problem. I've been trying to get the basic Hello World program to compile. I'm using Borland's free compiler, and everytime I try to compile I get an error saying that in MTypes.h, the line that says "enum {false,true};" doesn't work. I can't figure out why the simplest of plugins can't compile. I've tried a couple of compilers, and I keep getting the same message.

Do I perhaps need to use Visual C++ to get it to compile?

Thanks for any help.

mark_wilkins
05-18-2003, 09:20 PM
For Windows, my understanding is that you MUST use Visual C++ to compile plug-ins.

-- Mark

ajk48n
05-18-2003, 09:41 PM
Why would you have to use Visual C++? Shouldn't any compiler essentially do the same thing?

I also could not get it to compile using gcc or g++ in Linux. Any suggestions?

mark_wilkins
05-19-2003, 03:59 AM
On the Windows side, the problem with using other compiler systems is library compatibility. Core C++ functions are provided through libraries that are implemented differently for Microsoft and Borland products.

In fact, just using Visual C++ isn't enough... you have to use the SAME VERSION of Visual C++ used to compile the SDK libraries.

As for Linux, there are similar version issues involved. You probably need to compile on a Red Hat 7.2 system with the right library versions to get your plug-in to work, but I'm less certain that that's the same issue there.

-- Mark

ajk48n
05-19-2003, 08:01 AM
Thanks for the help. I was hoping I could use a free compiler, but oh well.

CGTalk Moderation
01-15-2006, 05:03 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.