Good question. Since I don't have that compiler, I've been unable to reproduce it.
Hi,
it seems that the problem concerns a specific compiler bug in microsoft compilers <= 13.10.6030 (MSVC 7.1).
The MSVC8 and g++ (4.1.2) compilers are able to build the code without errors.Any ideas how to get it to work with the good old Visual Studio 2003?
#include <boost/optional/optional.hpp> // included for some reason
#include <boost/extension/shared_library.hpp>
#include <boost/extension/convenience.hpp> // load_single_library
void loadExtension () {
boost::extensions::factory_map fm;
// we don't need the following line to produce the compiler error
//boost::extensions::load_single_library(fm, ".", "external_function_name");
}
--
David Matz
----------------------------
Software Developer
Spatial View GmbH