Ubuntu 11下g++ 链接报错问题
2012-06-21 17:37
176 查看
我在Ubuntu11下编写一个jthread的测试程序,链接老报undefined reference to `jthread::JMutex::Lock()错误
g++版本为
g++ -ljthread -lpthread -o jthreadtest main.o Mythread.o后改为
g++ -o jthreadtest main.o Mythread.o -ljthread -lpthread链接成功
g++版本为
Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper Target: i686-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu Thread model: posix gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
相关文章推荐
- ubuntu13.10 编译时 关于链接xlib 库阶段出错的问题解决
- Ubuntu上解决链接手机显示????问题
- SecureCrt链接ubuntu问题--The romote systemrefused the connection
- ubuntu下搭建hadoop+链接eclipse遇到的问题记录
- Ubuntu上PlayBook NDK 2.0链接无法工作的问题。
- 解决Ubuntu无法从外部应用启动Chrome打开链接的问题
- boost中g++ 链接undefined reference to `boost::system::generic_category()问题
- Ubuntu设置、应用及常见问题解决(链接)
- linux_ubuntu 16.04 更新wifi驱动_无法链接wifi问题
- ubuntu的ld无法链接libcrypto问题解决
- ubuntu的ld无法链接libcrypto问题解决
- gcc/g++ 动态编译和链接问题
- 使用 aptitude解决ubuntu下apt-get install g++依赖问题
- 【问题收录】ubuntu下weka链接mysql数据库
- ubuntu系统下,gsl 库链接问题 -undefined reference to `cblas_xxx`
- ubuntu问题g++ : 依赖: g++-4.8 (>= 4.8.2-5~) 但是它将不会被安装
- ubuntu无法链接wifi问题
- Ubuntu 12.04下用g++编译cplex实例程序,配置、出现的问题,解决办法
- 解决ubuntu不能安装g++的问题
- ssh链接Ubuntu出现REMOTE HOST IDENTIFICATION HAS CHANGED的问题