我正在为一个项目使用Boost的一部分(只有消息队列)。如果我使用本机代码,那么hpp文件就可以了。但我需要一个llvm比特码文件中的消息队列(我正在我的程序中执行该比特码),并得到以下错误:
LLVM ERROR: Program used external function 'shm_unlink' which could not be resolved!
gcc -I . -c boost/interprocess/ipc/message_queue.hpp -o ipc.o
ar -cvq libipc.a ipc.o
ranlib libipc.a
llvm-g++ -Wall -O3 -static -L../../Release/lib -lipc -I../../include -I../../../boost_1_44_0 -fexceptions -emit-llvm tmp.cpp -o tmp.bc
../../Release/lib/libipc.a: could not read symbols: Archive has no index; run ranlib to add one