nonsugar18 Posted December 27, 2012 Report Share Posted December 27, 2012 Hi I'm writing a program with platform to simulate ARM core, when I compile under Linux32, I have some error [root@localhost platform_cpp]# make VERBOSE=1 -f $IMPERAS_HOME/ImperasLib/source/buildutils/Makefile.TLM.platform OBJECT=simple # Linking platform.Linux32.exe g++ -o platform.Linux32.exe Build/Linux32/usr/platform.o -L/root/Desktop/OVP/Imperas.20120906/bin/Linux32 -lRuntimeLoader /root/Desktop/systemc-2.3.0/lib-linux/libsystemc.a -m32 Build/Linux32/tlm/tlmSupport.a /root/Desktop/systemc-2.3.0/lib-linux/libsystemc.a(sc_prim_channel.o): In function `sc_core::sc_host_mutex::trylock()': sc_prim_channel.cpp:(.text._ZN7sc_core13sc_host_mutex7trylockEv[sc_core::sc_host_mutex::trylock()]+0x1c): undefined reference to `pthread_mutex_trylock' collect2: ld return 1 make: *** [platform.Linux32.exe] Error 1 and I check my configure checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes is it correct that I don't have pthread library? I really don't know why it show undefined reference to `pthread_mutex_trylock' Thx! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.