Boost logo

Boost Users :

From: Nicholas Bastin (nick.bastin_at_[hidden])
Date: 2007-05-15 22:40:50


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_at_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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net