当前位置: 技术问答>linux和unix
[help!!!]./configure时使用的是gcc,有办法让它用g++吗?
来源: 互联网 发布时间:2016-06-30
本文导语: ./configure时出现错误信息,打开config.log,发现:configure:20257: checking for smpeg-config configure:20288: result: /usr/local/bin/smpeg-config configure:20296: checking for SMPEG - version >= 0.4.3 configure:20386: gcc -o conftest -D_GNU_SOURCE=1 -I/usr/local/i...
./configure时出现错误信息,打开config.log,发现:configure:20257: checking for smpeg-config
configure:20288: result: /usr/local/bin/smpeg-config
configure:20296: checking for SMPEG - version >= 0.4.3
configure:20386: gcc -o conftest -D_GNU_SOURCE=1 -I/usr/local/include -I/usr/local/include/smpeg -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_GNU_SOURCE=1 conftest.c -L/usr/local/lib -lsmpeg -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread >&5
/usr/local/lib/libsmpeg.so: undefined reference to `operator new[](unsigned int)'
/usr/local/lib/libsmpeg.so: undefined reference to `operator delete(void*)'
/usr/local/lib/libsmpeg.so: undefined reference to `__cxa_pure_virtual'
/usr/local/lib/libsmpeg.so: undefined reference to `operator delete[](void*)'
/usr/local/lib/libsmpeg.so: undefined reference to `operator new(unsigned int)'
collect2: ld returned 1 exit status
configure:20389: $? = 1
configure: program exited with status 1
我觉得如何用g++应该没有错的。
configure:20288: result: /usr/local/bin/smpeg-config
configure:20296: checking for SMPEG - version >= 0.4.3
configure:20386: gcc -o conftest -D_GNU_SOURCE=1 -I/usr/local/include -I/usr/local/include/smpeg -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_GNU_SOURCE=1 conftest.c -L/usr/local/lib -lsmpeg -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread >&5
/usr/local/lib/libsmpeg.so: undefined reference to `operator new[](unsigned int)'
/usr/local/lib/libsmpeg.so: undefined reference to `operator delete(void*)'
/usr/local/lib/libsmpeg.so: undefined reference to `__cxa_pure_virtual'
/usr/local/lib/libsmpeg.so: undefined reference to `operator delete[](void*)'
/usr/local/lib/libsmpeg.so: undefined reference to `operator new(unsigned int)'
collect2: ld returned 1 exit status
configure:20389: $? = 1
configure: program exited with status 1
我觉得如何用g++应该没有错的。
|
./configure -h
一般都会有详细的帮助说明,在configure后面加参数就好了。
比如 ./configure -CC=g++ 记不太清了,仔细看看./configure -h。
一般都会有详细的帮助说明,在configure后面加参数就好了。
比如 ./configure -CC=g++ 记不太清了,仔细看看./configure -h。