Jump to content

nonsugar18

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. 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!
×
×
  • Create New...