boost building troubles

This is a discussion on boost building troubles within the C++ Programming forums, part of the General Programming Boards category; i have visual c++ express (2008), the problem is building boost from the installer what do i have to do?...

  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    New York
    Posts
    123

    boost building troubles

    i have visual c++ express (2008), the problem is building boost from the installer what do i have to do?

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    890

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    New York
    Posts
    123
    I actually don't quite understand what is wrong myself, their site doesn't explain it
    msdn said something about it that I read before something about how you can only compile header type library files with the current setup for visual express

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,768
    You can download the installer which will install the binaries:
    http://www.boost-consulting.com/download/windows
    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.

  5. #5
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    None for g++ though.

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,768
    True, but at least there is for Visual C++, which the OP is using.
    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.

  7. #7
    Registered User
    Join Date
    Jul 2008
    Posts
    2

    Boost problems

    I talked to the topic creator, and seem to be having the same problems as him. We both used the windows visual C++ installer(that was listed) and followed all the directions, but it doesn't seem to work for either of us. We both tried to compile the example from the boost site.(a couple actually)

    Code:
    #include <list>
    #include <boost/any.hpp>
    
    using boost::any_cast;
    typedef std::list<boost::any> many;
    
    void append_int(many & values, int value)
    {
        boost::any to_append = value;
        values.push_back(to_append);
    }
    
    void append_string(many & values, const std::string & value)
    {
        values.push_back(value);
    }
    
    void append_char_ptr(many & values, const char * value)
    {
        values.push_back(value);
    }
    
    void append_any(many & values, const boost::any & value)
    {
        values.push_back(value);
    }
    
    void append_nothing(many & values)
    {
        values.push_back(boost::any());
    }
    This was the error I got.

    Linking...
    MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
    C:\Users\Spylogo\Documents\Visual Studio 2008\Projects\BoostDemo\Debug\BoostDemo.exe : fatal error LNK1120: 1 unresolved externals

  8. #8
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,768
    You still need a main() function.
    Add one and it'll work, you'll see.
    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.

  9. #9
    Registered User
    Join Date
    Jul 2008
    Posts
    2

    Thanks

    Wow, I feel like an idiot........

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. building boost libraries
    By l2u in forum C++ Programming
    Replies: 3
    Last Post: 05-09-2007, 08:34 AM
  3. building boost iostreams
    By l2u in forum C++ Programming
    Replies: 3
    Last Post: 04-14-2007, 02:29 PM
  4. Integrating Boost with STLPort
    By Mario F. in forum Tech Board
    Replies: 1
    Last Post: 11-11-2006, 05:49 AM
  5. Building boost
    By Mario F. in forum Tech Board
    Replies: 8
    Last Post: 06-28-2006, 08:40 PM

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