i am having no luck at all getting my library to work in pd. i am new to extern programming, and am writing very basic code (basically helloworld externs). when i compile the code in MS Visual C++, the library won't load into Pd. when i try to load the object, i get an error message like 'cannot find symbol helloworld_setup'. i don't think it's a problem with my code, but maybe how i am compiling/linking/making the library. is there a step i am missing?
Help compiling externs with VC98
I've got thesame problem. Usually when this occurs the filename extension is incorrect for the platform, the filename doesn't match that of the setup routine, or the subroutine wasn't declared extern. I tried all that, but I didn't get far. In a previous post Miller noted that this could very well be an incompatability problem with MSVC++. i'm currently using version 6, and there are several types of DLL files I could generate. I really don't have a clue what the correct settings are for PD. The external tutorial is now at least 5 years old, I highly recommend upgrading it to present time standards, it doesn't say anything about a major compiler that a lot of people are using.. More help of course is very much appreciated!
tjeerd - are you still trying to make pd externs? i couldn't figure out how to do it with straight C code, but i was able to successfully compile, link, and use externs using flext. flext is a C++ layer for making objects for both Pd and Max/MSP on different platforms. seems pretty easy to setup and use. i don't know the flext website offhand, but just google it and it comes up. oh, one note about compiling flext--unless you alter some of the compiler definitions, you will need the 'processor pack' (which requires msvc++ service pack 4 or 5). hope this helps.