<div id="RTEContent"><b><i>Martin Peach <martinrp@vax2.concordia.ca></i></b> a écrit :<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Gonzague DDR wrote:<br>> <br>> */Martin Peach <martinrp @vax2.concordia.ca="">/* a écrit :<br>> <br>> Gonzague DDR wrote:<br>> > Hi all .<br>> > I want/try/need to buid an external with vc++6 and the dll is<br>> created<br>> > without any error nor warning, but pd's console says :<br>> ><br>> > # tried D:\\obj1\\Debug\\obj1.dll and succeeded<br>> > # load_object: Symbol "obj1_setup" not found<br>> > # newpd<br>> > # ... couldn't create<br>> ><br>> > i'm not a developer but i'm sure it's nothing important<br>> > can someone help ?<br>> <br>> You probably forgot to put this magic incantation in front of the<br>>
declaration of obj1_setup:<br>> <br>> __declspec(dllexport)<br>> <br>> This tells vc to export the name. Other compilers seem to do this<br>> automatically or with flags like -shared and -export_dynamic.<br>> <br>> Martin<br>> <br>> <br>> <br>> I imagine that "declaration of obj1_setup:" means , in the obj1.c , <br>> where it's writen "void obj1_setup(void)"<br>> But where shall i put this magic incantation ? ( and how ;?)<br>> I tried here and there , but even if vc do not return errors, i have the <br>> same Symbol not found from pd ...<br><br>Yes it's like:<br>__declspec(dllexport) void obj1_setup(void);<br>for the prototype, and<br>__declspec(dllexport) void obj1_setup(void)<br>for the function.<br><br>Martin<br><br></martinrp></blockquote><br> Magic °) !<br> Thank you : it works perfectly .<br> <br> Shall we put this line in the pd/doc/6.externs/obj1.c ?<br> <br> <br></div><p>
                <hr size=1> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.beta.messenger.yahoo.com">Téléchargez</a> la version beta.