解决netbean7.1.2在Ubuntu下面编译程序报undefined reference to问题
2012-06-25 13:37
435 查看
本来在centos 5.8 64位版本下编译,原来程序编译链接通过,后新加一个模块,用到的一个链接库为32位,链接不成功,所以将程序转至ubuntu11.10 32位版本编译链接,以前能编译链接成功的部分老报undefined reference to ‘xxx',后发现在netbean项目设置中,我在linker选项的Compilation Line->addition options,添加了一系列链接库目标-ltmControlClient -llog4cplus -leXosip2 -losip2 -losipparser2
-ljthread -lgcov -lpthread -lrt,现在改为在Libraries里面添加一个add option...添加-ltmControlClient -llog4cplus -leXosip2 -losip2 -losipparser2 -ljthread -lgcov -lpthread -lrt即可
-ljthread -lgcov -lpthread -lrt,现在改为在Libraries里面添加一个add option...添加-ltmControlClient -llog4cplus -leXosip2 -losip2 -losipparser2 -ljthread -lgcov -lpthread -lrt即可
相关文章推荐
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题——gcc编译C++代码
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- ubuntu下 GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- 解决NDK编译‘undefined reference to’ 错误问题
- mingw编译SDL_gfx库时遇到undefined reference to 'GFX_ALPHA_ADJUST_ARRAY'问题的解决方法
- 解决编译opencv3.0时出现的问题undefined reference to `parallel_pthreads_set_threads_num(int)'
- 编译报错:undefined reference to `RSA_public_encrypt'问题解决
- 解决DEV C++编译时出现的“ undefined reference to `___dyn_tls_init_callback'...”问题
- 用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题的解决
- Ubuntu下使用Eclipse编译pthread程序错误undefined reference to `pthread_create'
- GCC编译程序出现 undefined reference to `std::ios_base::Init::Init()'问题
- ffmpeg libx264编译出现error: undefined reference to 'x264_picture_init'等问题的解决方法
- linux下开发,解决cocos2d-x中编译出现的一个小问题, undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
- Ubuntu11.20 32位linux下编译cppunit报 libcppunit.so: undefined reference to `dlsym'错误问题
- UNIX环境高级编程中的11章程序11-2编译问题---undefined reference to `pthread_create'
- linux下开发,解决cocos2d-x中编译出现的一个小问题, undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
- 线程库编译问题: undefined reference to 'pthread_create'的解决