Opened 13 years ago

Closed 13 years ago

#2978 closed Support Requests (fixed)

error linking

Reported by: shashwat.ds@… Owned by:
Milestone: Boost 1.39.0 Component: Building Boost
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

Hi,

I recently installed boost_1_38_0 just to use regex functionality as I have lot of parsing to do.

I followed all the instructions on the website and built and linked in Visual Studio as mentioned on the website. But still I get this error: fatal error LNK1104: cannot open file 'libboost_regex-vc80-mt-gd-1_38.lib'

Please let me know how can I correct this or what I am missing.

Thanks, Shashwat.

Change History (7)

comment:1 by Steven Watanabe, 13 years ago

Specifically: http://www.boost.org/more/getting_started/windows.html#link-from-within-the-visual-studio-ide ?

Does libboost_regex-vc80-mt-gd-1_38.lib exist in the library directory?

comment:2 by Steven Watanabe, 13 years ago

Resolution: fixed
Status: newclosed

If you still have any questions please reopen.

comment:3 by anonymous, 13 years ago

Resolution: fixed
Status: closedreopened

in reply to:  1 comment:4 by eli@…, 13 years ago

Replying to steven_watanabe:

Specifically: http://www.boost.org/more/getting_started/windows.html#link-from-within-the-visual-studio-ide ?

Does libboost_regex-vc80-mt-gd-1_38.lib exist in the library directory?

The lib file do not exist. and I'm following the instruction pointed by the link you mentioned. what should I do next?

comment:5 by Steven Watanabe, 13 years ago

Okay. If you built using bjam, then you need the following options:

bjam msvc debug link=static --with-regex stage

This ought to build the correct library.

in reply to:  5 comment:6 by anonymous, 13 years ago

OK I found the problem, there is some kind of bug in the autolinking feature. You need to download all the possible libs (I used the installer from http://www.boostpro.com/download) for the regexp (multithread debug, etc...) it worked for me. good luck

comment:7 by Steven Watanabe, 13 years ago

Resolution: fixed
Status: reopenedclosed

Auto linking picks the library based on your project settings. It has no idea which libraries are available.

Note: See TracTickets for help on using tickets.