Note that there are some explanatory texts on larger screens.

plurals
  1. POBoost link error when using "--layout=system" on VS2005
    primarykey
    data
    text
    <p>I'm new to boost, and thought I'd try it out with some realistic deployment scenarios for the .dlls, so I used the following command to compile/install the libraries:</p> <pre><code>.\bjam install --layout=system variant=debug runtime-link=shared link=shared --with-date_time --with-thread --with-regex --with-filesystem --includedir=&lt;my include directory&gt; --libdir=&lt;my bin directory&gt; &gt; installlog.txt </code></pre> <p>That seemed to work, but my simple program (taken right from the "Getting Started" page) fails:</p> <pre><code>#include &lt;boost/regex.hpp&gt; #include &lt;iostream&gt; #include &lt;string&gt; // Place your functions after this line int main() { std::string line; boost::regex pat( "^Subject: (Re: |Aw: )*(.*)" ); while (std::cin) { std::getline(std::cin, line); boost::smatch matches; if (boost::regex_match(line, matches, pat)) std::cout &lt;&lt; matches[2] &lt;&lt; std::endl; } } </code></pre> <p>This fails with the following linker error:</p> <pre><code>fatal error LNK1104: cannot open file 'libboost_regex-vc80-mt-1_42.lib' </code></pre> <p>I'm sure that both the .lib and the .dlls are in that directory, and named how I want them to be (ie: boost_regex.lib, etc, all unversioned, as the --layout=system says). So why is it looking for the versioned type of it? And how do I get it to look for the unversioned type of the library?</p> <p>I've tried this with more "normal" options, such as below:</p> <pre><code>.\bjam stage --build-type=complete --with-date_time --with-thread --with-filesystem --with-regex &gt; mybuildlog.txt </code></pre> <p>And that works fine. I made sure my compiler saw the "stage\lib" directory, and it compiled and ran fine with nothing beyond having the environment looking into the right lib directory. But when I took those "testing" directories away, and wanted to use these others (unversioned), then it failed.</p> <p>I'm under VS2005 here on XP. Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload