Re: [Boost-bugs] [Boost C++ Libraries] #7887: Boost & Eclipse

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7887: Boost & Eclipse
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-12 16:12:16


#7887: Boost & Eclipse
-------------------------------------------------------+--------------------
  Reporter: Barnabé Faliu <barnabe.faliu@…> | Owner: viboes
      Type: Support Requests | Status: assigned
 Milestone: | Component: thread
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------------+--------------------

Comment (by viboes):

 I have tried for the first time to use Eclipse and I rich to compile and
 run

 {{{
 #include <iostream>
 //#include <boost/thread/thread.hpp>
 using namespace std;

 int main() {
         cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
         return 0;
 }
 }}}

 When I add the library boost_system and the path where it can be found the
 build is OK,


 {{{
 **** Build of configuration Debug for project tests ****

 make all
 Building file: ../src/tests.cpp
 Invoking: GCC C++ Compiler
 g++ -I/Users/viboes/boost/trunk/boost -O0 -g3 -Wall -c -fmessage-length=0
 -MMD -MP -MF"src/tests.d" -MT"src/tests.d" -o"src/tests.o"
 "../src/tests.cpp"
 Finished building: ../src/tests.cpp

 Building target: tests
 Invoking: MacOS X C++ Linker
 g++ -L/Users/viboes/boost/trunk/stage/lib -o "tests" ./src/tests.o
 -lboost_system
 Finished building target: tests
 }}}


 When I try to run it, I'm getting


 {{{
 dyld: Library not loaded: libboost_system.dylib
   Referenced from: /Users/viboes/Documents/workspace/tests/Debug/tests
   Reason: image not found
 }}}

 It seems that the run is not seen where the libs are located independently
 of boost_thread.

 Please, could you post the error you are getting on the console?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7887#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC