Author Topic: [SOLVED]help needed about compilling the programme with the third party library  (Read 4876 times)

xuleit

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
I am a newbie to slickedit.
I am using slickedit11.10+mingw+msys.
I want to use boost library in my c++ programme.

I can compile my programme in msys console like this:
$ g++ boost_thread2.cpp -o boost_thread2.exe -lboost_thread-mgw-mt

What can I do to compile it with slickedit by setting up my slickedit configuration?

I get these errors when I compile it with slickedit now:
Debug/boost_thread2.o(.text+0x212):C:/msys/1.0/home/smile/thread/boost_thread2.cpp:22: first defined here
Debug/boost_thread2.o(.text+0x339):C:/msys/1.0/home/smile/thread/boost_thread2.cpp:24: undefined reference to `boost::thread::thread(boost::function0<void, std::allocator<boost::function_base> > const&)'
collect2: ld returned 1 exit status
*** Errors occurred during this build ***


Any suggestion is appreciated!
^^
« Last Edit: November 17, 2006, 06:13:13 AM by xuleit »

xuleit

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: help needed about compilling the programme with the third party library
« Reply #1 on: November 17, 2006, 06:10:46 AM »
build =>GUN options => link , other option:

-LC:/msys/1.0/boost_lib/lib/ -lboost_thread-mgw-mt

the problem solved.
thanks.
 ;D