|
Boost-Build :
|
Hey Guys,
I want to link all my programs against one library. When i'm in a subdirectory i get the error: "Unable to find file or target named"...
This is what my Jamroot looks like:
lib boostsystem : : <name>boost_system ;
explicit boostsystem ;
project : default-build release
: requirements <cxxflags>"-std=gnu++0x"
: requirements <include>.
: requirements <library>boostsystem
: build-dir ./bin
;
#exe sertest : samples/sertest.cpp ;
build-project samples ;
The samples/Jamfile contains only the line:
exe sertest : sertest.cpp ;
By typing bjam I get the errormessage:
error: Unable to find file or target named
error: 'boostsystem'
error: referred from project at
error: 'samples'
When I uncomment the secondlast line of the Jamrootfilie, and comment the lastline, my sampleapplication compiles with no error. I know that this is not the way to link against boost, but this is only an example... I tried so much. Adding a slash( and much more) to the <library> argument... It works too when I add the dependency ../boostsystem to the samples/Jamfile-line, but thats the thing i want to avoid with the default rule...
I don't know where the problem is. I read so much documentation, and it is so frustrating. Maybe I'm to stupid too get the concept behind boost-bind. I had so many problems with setting different compileroptions, crosscompilation, seting the linkingpath....
I hope someone can help me...
Regards, Hendrik Hey Guys,
i want to link all my programs against one library. When i'm in a subdirectory i get the error: "Unable to find file or target named"...
This is what my Jamroot looks like:
lib boostsystem : : <name>boost_system ;
explicit boostsystem ;
project : default-build release
: requirements <cxxflags>"-std=gnu++0x"
: requirements <include>.
: requirements <library>boostsystem
: build-dir ./bin
;
#exe sertest : samples/sertest.cpp ;
build-project samples ;
The samples/Jamfile contains only the line:
exe sertest : sertest.cpp ;
By typing bjam I get the errormessage:
error: Unable to find file or target named
error: 'boostsystem'
error: referred from project at
error: 'samples'
When I uncomment the secondlast line of the Jamrootfilie, and comment the lastline, my sampleapplication compiles with no error. I know that this is not the way to link against boost, but this is only an example... I tried so much. Adding a slash( and much more) to the <library> argument... It works too when I add the dependency ../boostsystem to the samples/Jamfile-line, but thats the thing i want to avoid with the default rule...
I don't know where the problem is. I read so much documentation, and it is so frustrating. Maybe I'm to stupid too get the concept behind boost-bind. I had so many problems with setting different compileroptions, crosscompilation, seting the linkingpath....
I hope someone can help me...
Regards, Hendrik
|
Neu: WEB.DE De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: https://produkte.web.de/go/demail02 |
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk