From: Robert Ramey (ramey_at_[hidden])
Date: 2005-02-01 21:35:25
Well, it doesn't look like you're inclined to give up so I guess we can't
Jared McIntyre wrote:
> I built out everything in test as suggested (there were a few that
> failed, but don't appear to be related).
Do I take this to mean that almost all the tests (200+) compiled, linked,
and executed with no error?
> I then took the library built in
> and moved it to my build location. I ended up getting the same
> failure. To make sure that my build was picking up the library at
> link, I added it as a resource to the project, and it continued to
> have the failure (so I'm sure my project is linking to the library).
> Is there any more information I could give you about my setup that
> might help?
OK the way I do it in the IDE is the following: Bring up the project
properties page for your project. check the following settings:
1) Configuration Type: Application(.exe)
2) Use of MFC: Use Standard Windows Libraries
3) Use of ATL: Not using ATL
Additional Include Directories - the directory that contains boost
Preprocessor definitions - WIN32;_DEBUG;_CONSOLE
4) Code Generation
Enable C++ Exceptions - Yes(/EHsc)
Runtime Library - Multi-threaded Debug DLL - note the DLL ! ( I
suspect this is the problem)
Enable Function-level Linking - Yes(/Gy) I prefer this myself but
not strictly necessary
Enable Run-Time type info - Yes (/GR)
Additional Library Directories - <directory that contains the
serialization library here>
Additional Dependencies - libboost_serialization.lib
I would hope that those settings should do it. To make sure its finding the
correct libboost_serialization.lib - change the name of this file. It
should come up with an error at link time - can't find file
libbost_serialization.lib. Changing this name back should make this error go
The program should now compile !?
P.S. The next version of the serialization library implements auto-link
functionality which may aleviate this sort of difficulty in the future.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk