Hi,
Trying to build qutecsound on Windows using the C++
API and Mingw, produces:
c:\Qt\4.3.2\bin\qmake.exe -win32 -o
Makefile
src.promingw32-make -f
Makefile.Release
mingw32-make[1]: Entering directory
`C:/tools/qutecsound/trunk/qutecsound/src'
g++ -enable-stdcall-fixup
-Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -Wl,-s -mthreads
-Wl -Wl,-subsystem,windows -o "bin\qutecsound.exe"
object_sc
ript.qutecsound.Release -L"c:\Qt\4.3.2\lib" -lmingw32
-lqtmain "C:\Archivos de
programa\Csound\bin\csound64.dll.5.1" "C:\Archivos
de programa\Csound\bin\csnd.d
ll" -lQtXml4 -lQtGui4
-lQtCore4
C:\Archivos de
programa\Csound\bin\csound64.dll.5.1(.text+0x110):cygming-crtend.
c:
multiple definition of `atexit'
/mingw/lib/crt2.o(.text+0x260):crt1.c:
first defined here
C:\Archivos de
programa\Csound\bin\csound64.dll.5.1(.text+0x140):cygming-crtend.
c:
multiple definition of `_onexit'
/mingw/lib/crt2.o(.text+0x270):crt1.c:
first defined here
C:\Archivos de
programa\Csound\bin\csound64.dll.5.1(.text+0x230):cygming-crtend.
c:
multiple definition of
`__main'
/mingw/lib/libmingw32.a(gccmain.o)(.text+0xa0):gccmain.c: first
defined here
C:\Archivos de
programa\Csound\bin\csound64.dll.5.1(.text+0x7a670):cygming-crten
d.c:
multiple definition of
`_pei386_runtime_relocator'
/mingw/lib/libmingw32.a(pseudo-reloc.o)(.text+0x0):pseudo-reloc.c:
first defined
here
C:\Archivos de
programa\Csound\bin\csound64.dll.5.1(.rdata+0x197ac):cygming-crte
nd.c:
multiple definition of
`__RUNTIME_PSEUDO_RELOC_LIST__'
/mingw/lib/libmingw32.a(pseudo-reloc-list.o)(.bss+0x0):pseudo-reloc-list.c:
firs
t defined here
C:\Archivos de
programa\Csound\bin\csound64.dll.5.1(.rdata+0x197ac):cygming-crte
nd.c:
multiple definition of
`__RUNTIME_PSEUDO_RELOC_LIST_END__'
/mingw/lib/libmingw32.a(pseudo-reloc-list.o)(.bss+0x1):pseudo-reloc-list.c:
firs
t defined
here
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
C:\Archivo
s de programa\Csound\bin\csound64.dll.5.1(dghcs00024.o): illegal
symbol index 18
64673616 in relocs
collect2: ld returned 1 exit
status
mingw32-make[1]: *** [bin\qutecsound.exe] Error
1
mingw32-make[1]: Leaving directory
`C:/tools/qutecsound/trunk/qutecsound/src'
mingw32-make: *** [release]
Error 2
If I just link to csnd.dll instead of the csound.dll.5.1
library, I get:
c:\Qt\4.3.2\bin\qmake.exe -win32 -o Makefile
src.promingw32-make -f
Makefile.Release
mingw32-make[1]: Entering directory
`C:/tools/qutecsound/trunk/qutecsound/src'
g++ -enable-stdcall-fixup
-Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -Wl,-s -mthreads
-Wl -Wl,-subsystem,windows -o "bin\qutecsound.exe"
object_sc
ript.qutecsound.Release -L"c:\Qt\4.3.2\lib" -lmingw32
-lqtmain "C:\Archivos de
programa\Csound\bin\csnd.dll" -lQtXml4 -lQtGui4
-lQtCore4
./release\qutecsound.o(.text+0x40):qutecsound.cpp: undefined
reference to
`csoun
dGetHostData'
./release\qutecsound.o(.text+0x11887):qutecsound.cpp:
undefined reference to
`cs
oundSetMessageCallback'
./release\qutecsound.o(.text+0x118a2):qutecsound.cpp:
undefined reference to
`cs
oundSetHostData'
./release\qutecsound.o(.text+0x1197b):qutecsound.cpp:
undefined reference to `cs
oundStop'
collect2: ld returned 1 exit
status
mingw32-make[1]: *** [bin\qutecsound.exe] Error
1
mingw32-make[1]: Leaving directory
`C:/tools/qutecsound/trunk/qutecsound/src'
mingw32-make: *** [release]
Error 2
Any ideas where I'm going wrong? (This happens with both
the floats and double versions)
Cheers,
Andrés
--
Andrés