我在编译代码时遇到问题。我真的不明白是什么问题。我已经在网上搜索了,但是什么也没有。我希望有人能帮助我。
我正在Mac 10.13.5中运行代码,并在brew中安装了gcc。
这是编译期间显示给我的东西
juans-imac:TS_PWS0_UG_1.5 juanpinzon$ make
gcc -c -O3 -mcmodel=medium -fexceptions -fPIC -D_FILE_OFFSET_BITS=64 - ITools -IFWTa -DNoThreads -c -o WTlib.o ./FWTa/WTlib.c
gcc -c -O3 -mcmodel=medium -fexceptions -fPIC -D_FILE_OFFSET_BITS=64 -ITools -IFWTa -DNoThreads -c -o wavelet_v7.o ./FWTa/wavelet_v7.c
gcc -c -O3 -mcmodel=medium -fexceptions -fPIC -D_FILE_OFFSET_BITS=64 -ITools -IFWTa -DNoThreads -c -o wavelet_def_v7.o ./FWTa/wavelet_def_v7.c
gcc -c -O3 -mcmodel=medium -fexceptions -fPIC -D_FILE_OFFSET_BITS=64 -ITools -IFWTa -DNoThreads -c -o wavelet_mem_v7.o ./FWTa/wavelet_mem_v7.c
gcc -c -O3 -mcmodel=medium -fexceptions -fPIC -D_FILE_OFFSET_BITS=64 -ITools -IFWTa -DNoThreads -c -o cdotx.o ./FWTa/cdotx.c
In file included from ./FWTa/cdotx.c:1:
In file included from FWTa/cdotx.h:4:
Tools/complex.h:28:13: warning: inline function 'sdcdotx' is not defined [-Wundefined-inline]
INLINE void sdcdotx(complex *y, double *x1, complex *x2);
^
./FWTa/cdotx.c:48:5: note: used here
sdcdotx(&aux1,x++,w++);
^
In file included from ./FWTa/cdotx.c:1:
In file included from FWTa/cdotx.h:4:
Tools/complex.h:27:13: warning: inline function 'scddotx' is not defined [-Wundefined-inline]
INLINE void scddotx(complex *y, complex *x1, double *x2);
^
./FWTa/cdotx.c:93:5: note: used here
scddotx(&aux1,x++,w++);
^
In file included from ./FWTa/cdotx.c:1:
In file included from FWTa/cdotx.h:4:
Tools/complex.h:29:13: warning: inline function 'scdotx' is not defined [-Wundefined-inline]
INLINE void scdotx(complex *y, complex *x1, complex *x2);
^
./FWTa/cdotx.c:133:24: note: used here
for (l=0; l<l0; l++) scdotx(&aux,x++,w++);
^
3 warnings generated.
gcc -c -O3 -mcmodel=medium -fexceptions -fPIC -D_FILE_OFFSET_BITS=64 -ITools -IFWTa -DNoThreads -c -o myallocs.o ./Tools/myallocs.c
gcc -c -O3 -mcmodel=medium -fexceptions -fPIC -D_FILE_OFFSET_BITS=64 -ITools -IFWTa -DNoThreads -c -o myarrays.o ./Tools/myarrays.c
gcc -c -O3 -mcmodel=medium -fexceptions -fPIC -D_FILE_OFFSET_BITS=64 -ITools -IFWTa -DNoThreads -c -o complex.o ./Tools/complex.c
gcc -c -O3 -mcmodel=medium -fexceptions -fPIC -D_FILE_OFFSET_BITS=64 -ITools -IFWTa -DNoThreads -c -o prnmsg.o ./Tools/prnmsg.c
./Tools/prnmsg.c:23:9: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
printf(args);
^~~~
./Tools/prnmsg.c:23:9: note: treat the string as an argument to avoid this
printf(args);
^
"%s",
1 warning generated.
gfortran -O3 -mcmodel=medium -fexceptions -fPIC -D_FILE_OFFSET_BITS=64 -ITools -IFWTa -DNoThreads ts_pws0_ug_1.5.f -o ts_pws0_ug_1.5 WTlib.o wavelet_v7.o wavelet_def_v7.o wavelet_mem_v7.o cdotx.o myallocs.o myarrays.o complex.o prnmsg.o /usr/local/sac/lib/sacio.a
Undefined symbols for architecture x86_64:
"_scddotx", referenced from:
_cdotx_cd in cdotx.o
_cdotx_upsampling_cd in cdotx.o
"_scdotx", referenced from:
_cdotx_cc in cdotx.o
_cdotx_upsampling_cc in cdotx.o
"_sdcdotx", referenced from:
_cdotx_dc in cdotx.o
_cdotx_upsampling_dc in cdotx.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [ts_pws0_ug_1.5] Error 1