问题:/usr/bin/ld: .build_release/tools/alignment_tools.o: undefined reference to symbol 'omp_get_thread_num@@OMP_1.0'
解决:在Makefile中添加openmp链接库命令
LINKFLAGS += -fopenmp -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS) -std=c++11
本文介绍了解决在编译过程中遇到的OpenMP符号'omp_get_thread_num'未定义错误的方法。通过在Makefile中添加正确的openmp链接库命令,如'-fopenmp-pthread-fPIC$(COMMON_FLAGS)$(WARNINGS)-std=c++11',可以有效解决此类问题。
问题:/usr/bin/ld: .build_release/tools/alignment_tools.o: undefined reference to symbol 'omp_get_thread_num@@OMP_1.0'
解决:在Makefile中添加openmp链接库命令
LINKFLAGS += -fopenmp -pthread -fPIC $(COMMON_FLAGS) $(WARNINGS) -std=c++11
转载于:https://www.cnblogs.com/haiyang21/p/10233330.html

被折叠的 条评论
为什么被折叠?