Link error with test boost.signals app (boost::throw_exception?)

I'm trying to build a small test program for boost.signals on my windows machine, and I get the following linker error (code below): test.obj : error LNK2019: unresolved external symbol "void __cdecl boost::throw_exception(class exception const &)" (?throw_exception@boost@@YAXAEBVexception@@@Z) referenced in function main My command line is: icl /I. test.cpp /link /LIBPATH:./stage/lib Test.cpp is: #include <boost/signal.hpp> #include <iostream> void hello (void) { std::cout << "Hello, world!" << std::endl; } int main(void) { boost::signal<void ()> sig; sig.connect(&hello); sig(); return 0; } -- Nick

On 5/15/07, Nicholas Bastin <nick.bastin@gmail.com> wrote:
I'm trying to build a small test program for boost.signals on my windows machine, and I get the following linker error (code below):
test.obj : error LNK2019: unresolved external symbol "void __cdecl boost::throw_exception(class exception const &)" (?throw_exception@boost@@YAXAEBVexception@@@Z) referenced in function main
Bah, stupid human tricks. The problem is that I didn't pass /GX to the compiler command line. So much for blindly following the documentation.. :-) (icl is so subtlely different from cl). -- Nick
participants (1)
-
Nicholas Bastin