<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Verdana color=#000080 size=1>ok, thanks a lot cdr!</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=1>i could now compile the project. 
but(!)..</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=1>the outputted file was a 
helloworld.dll</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=1>i now tried to import the .dll with 
</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1>&nbsp;&nbsp;&nbsp; "pd.ex -lib 
c:/path/to/external/helloworld" (tried wit and without file extesion 
.dll)</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=1>but, what else .... this error 
followed in pd:</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=1>-: can't load 
library<BR>load_object: Symbol "helloworld_setup" not found</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1>c:/path/to/external/helloworld: 
can't load library</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=1>and now?</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=1>the helloworld setup function is in 
the sourcefile.</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1>may this cause by a wrong compiled 
dll?</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1>or did i do something wrong at the 
importing?</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=1></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=1>&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=1></FONT>&nbsp;</DIV>
<DIV>top error snipped, but be sure to send -DNT (or -DMSW) to the 
preprocessor<BR><BR>&gt; [Linker error] undefined reference to `post' 
<BR>&gt;&nbsp;&nbsp; [Linker error] undefined reference to `pd_new' 
<BR>&gt;&nbsp;&nbsp; [Linker error] undefined reference to `gensym' 
<BR>&gt;&nbsp;&nbsp; [Linker error] undefined reference to `class_new' 
<BR>&gt;&nbsp;&nbsp; [Linker error] undefined reference to `class_addbang' 
<BR>&gt;&nbsp;&nbsp; ld returned 1 exit status <BR>&gt;&nbsp; [Build 
Error]&nbsp; [obj.dll] Error 1 <BR>&gt; <BR>&gt; i don't know what i can do 
next...<BR><BR>the linker needs some hints to find libpd, aka pd.dll (or pd.lib 
with MSVC).&nbsp; you could rename it libpd.dll, then -lpd would work (with 
GCC), or simply add the path to pd.dll to the linker arguments (absolute path, 
or relative if you did&nbsp; -Lbin/)<BR><BR>&gt; <BR>&gt; what kind of project 
do i have to choose? dll? console? <BR><BR>dll.. <BR><BR>&gt; should i do it 
better in visual c++?<BR><BR>if you are using MSVC you additionally have to 
-DPD_EXTERNAL and weird tricks with declspec(dllimport) or something, so GCC is 
definitely simpler from a user standpoint..and if you are using GCC, add 
-mms-bitfields to the compiler flags so your external wont segfault when running 
in a MSVC-compiled host..<BR><BR>goodluck, looking forward to yer 
externals..<BR><BR>_______________________________________________<BR>&nbsp;mailing 
list<BR>UNSUBSCRIBE and account-management -&gt; <A 
href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</A></DIV></BODY></HTML>