Boost logo

Boost Users :

Subject: Re: [Boost-users] can't build an official example on eclipse
From: loveley (lolveley_at_[hidden])
Date: 2009-12-12 05:50:52


loveley a écrit :
> Steven Watanabe a écrit :
>> AMDG
>>
>> loveley wrote:
>>> Steven Watanabe a écrit :
>>>> loveley wrote:
>>>>> <snip>
>>>>>
>>>>> and the error is:
>>>>> http://pastebin.com/m4c85af13 .
>>>>>
>>>>> 1.
>>>>> g++ -L/Applications/boost_1_41_0/libs -o "test_boost_1"
>>>>> ./principal/principal.o 2.
>>>>> Undefined symbols:
>>>>> 3.
>>>>>
>>>>> "boost::unit_test::unit_test_log_t::set_checkpoint(boost::unit_test::basic_cstring<char
>>>>>
>>>>> const>, unsigned long, boost::unit_test::basic_cstring<char
>>>>> const>)", referenced from:
>>>>>
>>>>
>>>> You need to link to the test library (-lboost_unit_test_framework)
>>>
>>> I wonder how I can link this test library; can you tell me how?
>>> This appears to be an option, but for what program?
>>
>> -l is for g++. I don't know where to specify this for eclipse.
>> Check its documentation.
>>
>> In Christ,
>> Steven Watanabe
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
> well, I modified eclipse, in the project options, tab "C/C++ build/
> discovery options/ compiler invocation arguments" , and I added the
> -lboost_unit_test_framework options ... but in vain : nothing changed.
>
> can anyone help me?
>
> olivier.
>
>
here is the result of my try attempts :

**** Build of configuration Debug for project test_boost_1 ****

make all
Building target: test_boost_1
Invoking: MacOS X C++ Linker
g++ -L/Applications/boost_1_41_0/libs -o "test_boost_1"
./principal/principal.o -lboost_unit_test_framework
ld: library not found for -lboost_unit_test_framework
collect2: ld returned 1 exit status
make: *** [test_boost_1] Error 1

the parameter is well passed to g++ but there still is a problem.

olivier.

        
        
                
___________________________________________________________________________
Avez-vous essayé le nouveau Yahoo! Mail ? Plus rapide, plus efficace... simplement révolutionnaire ! Découvrez-le.
Lien :http://fr.mail.yahoo.com


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net