Issues building libraries

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues building libraries

Boost - Build mailing list
I am trying to build the libraries for boost.  I've used boost in C++ programs in the past but only the header files. 
My interest in using the libs has to do with the desire to use gnuplot_iostream for plotting and this depends on boost iostream, system, and filesystem libraries.
I've run bootstrap, b2, and didn't receive any error messages. 

When I try to build I get the link error: LNK1104 cannot open file 'libboost_iostreams-vc141-mt-gd-1_65_1.lib'. 

I'm using Visual Studio 2017 Community edition and "believe" I've added include and linker directories properly.
I did a file search for *.lib and libboost* in the boost dir and found no such files anywhere.  So, clearly they did not get created.
I have not moved anything from it's original location within the file directory as delivered from the boost site and unzipped.

I've found several bits and pieces of advice on how to proceed and each seems to work but none have completely fixed the issue.
Is there a step by step procedure for building the libraries, and including them in a project?  I expect no for the latter as that is IDE version dependent, but I hope the answer is yes to the former. 

By the way, whatever is listed on the Boost site does not work w/o some additional search for problem fixes.

Thank you in advance for your help.


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Issues building libraries

Boost - Build mailing list
AMDG

On 11/14/2017 01:06 PM, David Bergman via Boost-build wrote:
> I am trying to build the libraries for boost.  I've used boost in C++ programs in the past but only the header files.  
> My interest in using the libs has to do with the desire to use gnuplot_iostream for plotting and this depends on boost iostream, system, and filesystem libraries.I've run bootstrap, b2, and didn't receive any error messages.  
>
> When I try to build I get the link error: LNK1104 cannot open file 'libboost_iostreams-vc141-mt-gd-1_65_1.lib'.  
>

To build that specific library, the command is:

b2 link=static threading=multi runtime-link=shared debug
--with-iostreams toolset=msvc-14.1

In theory, this variant is supposed to be built by default.

> I'm using Visual Studio 2017 Community edition and "believe" I've added include and linker directories properly.I did a file search for *.lib and libboost* in the boost dir and found no such files anywhere.  So, clearly they did not get created.I have not moved anything from it's original location within the file directory as delivered from the boost site and unzipped.
>

The libraries are created in <BOOST_ROOT>/stage/lib
What do you have there?

> I've found several bits and pieces of advice on how to proceed and each seems to work but none have completely fixed the issue.Is there a step by step procedure for building the libraries, and including them in a project?  I expect no for the latter as that is IDE version dependent, but I hope the answer is yes to the former.  
>
> By the way, whatever is listed on the Boost site does not work w/o some additional search for problem fixes.
>
> Thank you in advance for your help.
>

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Issues building libraries

Boost - Build mailing list
Steven,

Thank you for your help.  Actually <BOOST_ROOT>/stage/lib id not come with boost nor was it made during the build.  I've seen other blogs describing this on stackoverflow.  So in short, there was nothing in the non existent folder.  Rather than create it I decided to download and run the .exe for the libraries from the boost site.  I was not originally aware that VS libs were provided.

I am still having issues running simple examples, now they are related to LNK2019.  I'm not sure it deserves or requires another question.  In the past when I get these I am easily able to fix it by reordering the #includes, or deleting repeated #includes, etc.  But with a bunch of compiled code and headers I did not write I am not sure I can find the issue. 

David



From: Steven Watanabe <[hidden email]>
To: David Bergman <[hidden email]>; Boost.Build developer's and user's list <[hidden email]>
Sent: Tuesday, November 14, 2017 3:47 PM
Subject: Re: [Boost-build] Issues building libraries

AMDG

On 11/14/2017 01:06 PM, David Bergman via Boost-build wrote:
> I am trying to build the libraries for boost.  I've used boost in C++ programs in the past but only the header files. 
> My interest in using the libs has to do with the desire to use gnuplot_iostream for plotting and this depends on boost iostream, system, and filesystem libraries.I've run bootstrap, b2, and didn't receive any error messages. 
>
> When I try to build I get the link error: LNK1104 cannot open file 'libboost_iostreams-vc141-mt-gd-1_65_1.lib'. 
>

To build that specific library, the command is:

b2 link=static threading=multi runtime-link=shared debug
--with-iostreams toolset=msvc-14.1

In theory, this variant is supposed to be built by default.

> I'm using Visual Studio 2017 Community edition and "believe" I've added include and linker directories properly.I did a file search for *.lib and libboost* in the boost dir and found no such files anywhere.  So, clearly they did not get created.I have not moved anything from it's original location within the file directory as delivered from the boost site and unzipped.
>

The libraries are created in <BOOST_ROOT>/stage/lib
What do you have there?


> I've found several bits and pieces of advice on how to proceed and each seems to work but none have completely fixed the issue.Is there a step by step procedure for building the libraries, and including them in a project?  I expect no for the latter as that is IDE version dependent, but I hope the answer is yes to the former. 
>
> By the way, whatever is listed on the Boost site does not work w/o some additional search for problem fixes.
>
> Thank you in advance for your help.

>

In Christ,
Steven Watanabe





_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: Issues building libraries

Boost - Build mailing list
AMDG

On 11/14/2017 05:32 PM, David Bergman wrote:
>
> Thank you for your help.  Actually <BOOST_ROOT>/stage/lib id not come with boost nor was it made during the build.  I've seen other blogs describing this on stackoverflow.  So in short, there was nothing in the non existent folder.

What exactly did you try?
  .\bootstrap.bat
  .\b2.exe
when run from $BOOST_ROOT will always create stage/lib
if it completes successfully.

>  Rather than create it I decided to download and run the .exe for the libraries from the boost site.  I was not originally aware that VS libs were provided.
>  I am still having issues running simple examples, now they are related to LNK2019.  I'm not sure it deserves or requires another question.  In the past when I get these I am easily able to fix it by reordering the #includes, or deleting repeated #includes, etc.  But with a bunch of compiled code and headers I did not write I am not sure I can find the issue.  
>

  That's "unresolved external symbol"?  I can't
help without seeing the actual error message, in
particular, which symbol is missing, and if possible
the actual code.

In Christ,
Steven Watanabe

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build