Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Boost Library Inclusion

Boost Library Inclusion

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++htmldatabaseregex
4 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    telstar
    wrote on last edited by
    #1

    I'm trying to use the Boost Regex[^] library in my MFC SDI app but am having some problems including the files as they instruct. I've built the library per their instructions[^] I added the C:\boost path to my include directories for my project I added #include <boost/regex.hpp> to the top of the file I intend to use it in ... yet I still get a compile-time error saying the following: MyAppName fatal error LNK1104: cannot open file 'boost_regex_vc7_mdid.lib' Any ideas what I'm doing wrong, or how to fix it? Thanks very much, Dave

    L 1 Reply Last reply
    0
    • T telstar

      I'm trying to use the Boost Regex[^] library in my MFC SDI app but am having some problems including the files as they instruct. I've built the library per their instructions[^] I added the C:\boost path to my include directories for my project I added #include <boost/regex.hpp> to the top of the file I intend to use it in ... yet I still get a compile-time error saying the following: MyAppName fatal error LNK1104: cannot open file 'boost_regex_vc7_mdid.lib' Any ideas what I'm doing wrong, or how to fix it? Thanks very much, Dave

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You also need to add the boost library path in the options of your vc++ installation

      T 1 Reply Last reply
      0
      • L Lost User

        You also need to add the boost library path in the options of your vc++ installation

        T Offline
        T Offline
        telstar
        wrote on last edited by
        #3

        I tried adding the C:\boost path to the VS.NET library includes path, and it diesn't work. I also tried adding C:\Visual Studio .NET\Vc7\lib (where that library file actually resides) to both the VS.NET library path definition, and the project library definitions path and no luck. One more thing ... I'm not using pre-compiled headers ... if that would make any difference. Thanks for the suggestion. Any others?

        T 1 Reply Last reply
        0
        • T telstar

          I tried adding the C:\boost path to the VS.NET library includes path, and it diesn't work. I also tried adding C:\Visual Studio .NET\Vc7\lib (where that library file actually resides) to both the VS.NET library path definition, and the project library definitions path and no luck. One more thing ... I'm not using pre-compiled headers ... if that would make any difference. Thanks for the suggestion. Any others?

          T Offline
          T Offline
          telstar
          wrote on last edited by
          #4

          I ended up including the path to the .lib files in the linker section of the properties. I'd forgotten to do that, and the setup instructions were somewhat vague.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups