[statechart] LNK2001 revisited
Found a related post dated Jul 2007:
http://old.nabble.com/-statechart-LNK2001-Error-on-VC-8.0-
td11748021.html
Attempted use of /Gm of course did not fix the problem (not sure why the
OP did that to begin with as it's pretty much incompatible with building
for release).
Information in this thread lead to an *apparent* sollution:
http://thread.gmane.org/gmane.comp.lib.boost.user/23065
But I'm not really impressed by that sollution and the commentary on it
lead me to believe that I should not need it since I'm not making a
library.
The issue appears when I set the /Yu flag (use precompiled headers) in
Visual Studio 2010. (10.0.30319.1) Without this flag active the program
eventually compiles and links without issue. With the flag active I get
exactly the same error as the OP though this is not regarding the
tutorial code, which I have not tested. I also have to set /Zm200 or
the build doesn't even get started (something about the space not being
large enough for my 50 line header).
The precompiled header is NOT including anything in boost statechart.
The only boost related includes are:
#define BOOST_PARAMETER_MAX_ARITY 20
#include
Hi Noah [snip]
Would like to know what's going on, how to correctly fix it, etc...
IIRC, the OP has never sent me a repro, so I don't know what is going on. If you send me one I'll have a look. Thanks, -- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.
participants (2)
-
Andreas Huber
-
Noah Roberts