Here's the error:
gcc -shared -o /home/pd/auto-build/pd-extended/externals/iem16/src/ tab16read.dll /home/pd/auto-build/pd-extended/externals/iem16/src/ iem16_array.o /home/pd/auto-build/pd-extended/externals/iem16/src/ iem16_table.o -lm -L/home/pd/auto-build/pd-extended/pd/bin -L/home/ pd/auto-build/pd-extended/pd/obj -lpd -lwsock32 -lpthreadGC2 - lkernel32 -luser32 -lgdi32 -lregex C:/msys/1.0/home/pd/auto-build/pd-extended/externals/iem16/src/ iem16_array.o: In function `tab16read_float':C:/msys/1.0/home/pd/auto- build/pd-extended/externals/iem16/src/iem16_array.c:27: undefined reference to `_imp__table16_getarray16' C:/msys/1.0/home/pd/auto-build/pd-extended/externals/iem16/src/ iem16_array.o: In function `tab16read4_float':C:/msys/1.0/home/pd/ auto-build/pd-extended/externals/iem16/src/iem16_array.c:72: undefined reference to `_imp__table16_getarray16' C:/msys/1.0/home/pd/auto-build/pd-extended/externals/iem16/src/ iem16_array.o: In function `tab16write_float':C:/msys/1.0/home/pd/ auto-build/pd-extended/externals/iem16/src/iem16_array.c:135: undefined reference to `_imp__table16_getarray16' collect2: ld returned 1 exit status make[2]: *** [/home/pd/auto-build/pd-extended/externals/iem16/src/ tab16read.dll] Error 1 make[2]: Leaving directory `/home/pd/auto-build/pd-extended/externals' make[1]: *** [externals_install] Error 2 make[1]: Leaving directory `/home/pd/auto-build/pd-extended/packages' make: *** [prebuilt_install] Error 2
.hc
------------------------------------------------------------------------ ----
You can't steal a gift. Bird gave the world his music, and if you can hear it, you can have it. - Dizzy Gillespie
If I try to build it on VCExpress I get .\iem16_table.c(43) : warning C4273: 'table16_getarray16' : inconsistent dll linkage
c:\cygwin\home\martin\pd_from_cvs\externals\iem16\src\iem16_table.h(30) : see previous definition of 'table16_getarray16' I think because the EXTERNAL prefix makes the compiler look for it outside the current build. These two at lines 30 and 31 of iem16_table.h should be declared simply as: int table16_getarray16(t_table16*x, int*size,t_iem16_16bit**vec); void table16_usedindsp(t_table16*x);
Martin
Hans-Christoph Steiner wrote:
Here's the error:
gcc -shared -o /home/pd/auto-build/pd-extended/externals/iem16/src/ tab16read.dll /home/pd/auto-build/pd-extended/externals/iem16/src/ iem16_array.o /home/pd/auto-build/pd-extended/externals/iem16/src/ iem16_table.o -lm -L/home/pd/auto-build/pd-extended/pd/bin -L/home/ pd/auto-build/pd-extended/pd/obj -lpd -lwsock32 -lpthreadGC2 - lkernel32 -luser32 -lgdi32 -lregex C:/msys/1.0/home/pd/auto-build/pd-extended/externals/iem16/src/ iem16_array.o: In function `tab16read_float':C:/msys/1.0/home/pd/auto- build/pd-extended/externals/iem16/src/iem16_array.c:27: undefined reference to `_imp__table16_getarray16' C:/msys/1.0/home/pd/auto-build/pd-extended/externals/iem16/src/ iem16_array.o: In function `tab16read4_float':C:/msys/1.0/home/pd/ auto-build/pd-extended/externals/iem16/src/iem16_array.c:72: undefined reference to `_imp__table16_getarray16' C:/msys/1.0/home/pd/auto-build/pd-extended/externals/iem16/src/ iem16_array.o: In function `tab16write_float':C:/msys/1.0/home/pd/ auto-build/pd-extended/externals/iem16/src/iem16_array.c:135: undefined reference to `_imp__table16_getarray16' collect2: ld returned 1 exit status make[2]: *** [/home/pd/auto-build/pd-extended/externals/iem16/src/ tab16read.dll] Error 1 make[2]: Leaving directory `/home/pd/auto-build/pd-extended/externals' make[1]: *** [externals_install] Error 2 make[1]: Leaving directory `/home/pd/auto-build/pd-extended/packages' make: *** [prebuilt_install] Error 2
.hc
You can't steal a gift. Bird gave the world his music, and if you can hear it, you can have it. - Dizzy Gillespie
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev