Re: [Cs-dev] building host app with mingw dll?
Date | 2006-05-10 12:32 |
From | Istvan Varga |
Subject | Re: [Cs-dev] building host app with mingw dll? |
Attachments | None |
Date | 2006-05-10 12:52 |
From | Rory Walsh |
Subject | [Cs-dev] building host app with mingw dll? |
Quick question, I'm using MinGW and would like to build a simple app that uses the host API. Do I need to build the csound32.lib import library in order to create a csound host application or can I simply use the csound32.dll? If using the dll is enough I wonder would anyone be so kind as to provide an example of what's needed at command prompt to build it? I'm not sure of the syntax. Cheers, Rory. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-05-10 13:00 |
From | Rory Walsh |
Subject | Re: [Cs-dev] building host app with mingw dll? |
By the way i have been trying with the following command line gcc MinGwCsound.c -o csound.exe csound32.dll.5.1 -I"D:/MyDocuments/SourceCode/cabbage/src/H" but it returns: $ gcc MinGwCsound.c -o csound.exe csound32.dll.5.1 -I"D:/MyDocuments/SourceCode /cabbage/src/H" csound32.dll.5.1:crtstuff.c:(.text+0x160): multiple definition of `atexit' C:/MinGWStudio/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../crt2.o:crt1.c:(.text+0x260): first defined here csound32.dll.5.1:crtstuff.c:(.text+0x190): multiple definition of `_onexit' C:/MinGWStudio/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../crt2.o:crt1.c:(.text+0x270): first defined here csound32.dll.5.1:crtstuff.c:(.text+0x1c0): multiple definition of `__do_sjlj_init' C:/MinGWStudio/MinGW/bin/../lib/gcc/mingw32/3.4.2/crtbegin.o:crtstuff.c:(.text+0x0): first defined here collect2: ld returned 1 exit status Rory. Rory Walsh wrote: > Quick question, I'm using MinGW and would like to build a simple app > that uses the host API. Do I need to build the csound32.lib import > library in order to create a csound host application or can I simply use > the csound32.dll? If using the dll is enough I wonder would anyone be so > kind as to provide an example of what's needed at command prompt to > build it? I'm not sure of the syntax. > > Cheers, > Rory. > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-05-10 14:20 |
From | Rory Walsh |
Subject | Re: [Cs-dev] building host app with mingw dll? |
Thanks Istvan, that did it. Rory. Istvan Varga wrote: > Try creating an import library with these commands: > > pexports -o csound32.dll.5.1 > csound32.def > dlltool --dllname=csound32.dll.5.1 --input-def=csound32.def --output-lib=libcsound32.a > > Before running dlltool, you may need to edit csound32.def and remove > the first line which seems to cause an error. > After these steps, if libcsound32.a is in a directory where it is found > by the linker, you can just use -lcsound32 > > On Wednesday 10 May 2006 14:00, Rory Walsh wrote: > >> By the way i have been trying with the following command line >> >> gcc MinGwCsound.c -o csound.exe csound32.dll.5.1 >> -I"D:/MyDocuments/SourceCode/cabbage/src/H" >> >> but it returns: >> >> $ gcc MinGwCsound.c -o csound.exe csound32.dll.5.1 >> -I"D:/MyDocuments/SourceCode >> /cabbage/src/H" >> csound32.dll.5.1:crtstuff.c:(.text+0x160): multiple definition of `atexit' >> C:/MinGWStudio/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../crt2.o:crt1.c:(.text+0x260): >> first defined here >> csound32.dll.5.1:crtstuff.c:(.text+0x190): multiple definition of `_onexit' >> C:/MinGWStudio/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../crt2.o:crt1.c:(.text+0x270): >> first defined here >> csound32.dll.5.1:crtstuff.c:(.text+0x1c0): multiple definition of >> `__do_sjlj_init' >> C:/MinGWStudio/MinGW/bin/../lib/gcc/mingw32/3.4.2/crtbegin.o:crtstuff.c:(.text+0x0): >> first defined here >> collect2: ld returned 1 exit status > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |