i have visual c++ express (2008), the problem is building boost from the installer what do i have to do?
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?...
i have visual c++ express (2008), the problem is building boost from the installer what do i have to do?
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
You can download the installer which will install the binaries:
http://www.boost-consulting.com/download/windows
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
None for g++ though.
True, but at least there is for Visual C++, which the OP is using.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
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)
This was the error I got.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()); }
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
You still need a main() function.
Add one and it'll work, you'll see.
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
Wow, I feel like an idiot........