Properly installing Boost

This is a discussion on Properly installing Boost within the C++ Programming forums, part of the General Programming Boards category; I've been wanting to learn the Boost library for a while now, but I'm having a little trouble installing the ...

  1. #1
    dra
    dra is offline
    Weak. dra's Avatar
    Join Date
    Apr 2005
    Posts
    166

    Properly installing Boost

    I've been wanting to learn the Boost library for a while now, but I'm having a little trouble installing the library. How do I set up the directories so that g++ sees them by default? For example, I can use the -I argument for g++ to point it to the correct directory, but I find that a little tedious...

  2. #2
    Registered User
    Join Date
    Nov 2005
    Posts
    673
    are you using command line or IDE?

    If IDE then just go to projects and solutions in the options menu, and change include to the boost directory, and libs to the libs directory.

  3. #3
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    have you considered learning to write a makefile? Here are some keywords to search for: automake, autoconf. It takes all of 1 hour to learn the basics, and your life will be much easier.
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  4. #4
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,158
    Quote Originally Posted by dra View Post
    I've been wanting to learn the Boost library for a while now, but I'm having a little trouble installing the library. How do I set up the directories so that g++ sees them by default? For example, I can use the -I argument for g++ to point it to the correct directory, but I find that a little tedious...
    g++ will automatically see anything installed in /usr/include or /usr/local/include. The linker will automatically see anything in /usr/lib or /usr/local/lib. If your compiler is not finding Boost, it means you installed it in some funny place. If so, the problem is your own making

    Where exactly DID you install it?

  5. #5
    Registered User
    Join Date
    Nov 2005
    Posts
    673
    Ah I got cunfused... His sig says VC++ 9, but he was talking about G++. I apologize.

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,170
    Err, the sig also says "Windows XP" and not Linux... Where did Linux come into the picture?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  7. #7
    dra
    dra is offline
    Weak. dra's Avatar
    Join Date
    Apr 2005
    Posts
    166
    Quote Originally Posted by brewbuck View Post
    g++ will automatically see anything installed in /usr/include or /usr/local/include. The linker will automatically see anything in /usr/lib or /usr/local/lib. If your compiler is not finding Boost, it means you installed it in some funny place. If so, the problem is your own making

    Where exactly DID you install it?
    Okay thanks, that makes sense. I just decompressed it in my C:\ drive...

    PS. Sorry for the confusion, I should've changed my sig.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Boost Auto-Linking
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 12-30-2007, 05:11 AM
  2. Replies: 2
    Last Post: 12-12-2007, 05:45 AM
  3. Book or site for learning Boost?
    By cpjust in forum C++ Programming
    Replies: 5
    Last Post: 11-08-2007, 08:56 AM
  4. building boost iostreams
    By l2u in forum C++ Programming
    Replies: 3
    Last Post: 04-14-2007, 02:29 PM
  5. Integrating Boost with STLPort
    By Mario F. in forum Tech Board
    Replies: 1
    Last Post: 11-11-2006, 05:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21