PDA

View Full Version : Help compiling Plugins anything other than VC++


MrTibs
6th February 2003, 19:08
Does anyone have a filter example that compiles correctly in something other than MSVC?

i.e. C, gcc, Borland Command line tools, Delphi.

Could anyone write a wrapper for plugins to call dlls compiled in another compiler?

Belgabor
7th February 2003, 16:30
It probably won't work. See here (http://forum.doom9.org/showthread.php?threadid=41827)

MrTibs
7th February 2003, 17:02
Thanks for the reply!

I have been looking at that thread and I downloaded the modified Avisynth.zip file.

I did some more investigation into this issue so perhaps you can help me with some specifics. It seems that the C++ dll conventions vary quite a bit between MSVC and Borland C++ but it appears that Dev-C++ is much closer to MSVC. From what I read (I don't know ANYTHING about C++.) it looks like I can make a MSVC compiant DLL in Dev-C++. Using some of the specific changes in Avisynth.h made in the thread you posted, I am ALMOST able to compile Tweak.dll. I'm getting hug up on __int64. It is commented in Avisynth.h (2.5) as being defined as "longlong". Or course I cannot define it as such in Dev-C++ so what could I defined it as?

I'm sorry to post such silly questions but I know nothing about programming in C++ and I am determined not to blow $300 on a MS compiler that I may never use again.

Belgabor
8th February 2003, 20:32
Sorry, I'm pretty new to c++ myself, so I can't help you with such specifics. Almost all I've done in c++ so far was with msvc, didn't look into dev-c++/gcc much yet (meaning if something dun compile out of the box, I'm lost).