Compilation failing - no #include - boost
Posted
by jwoolard
on Stack Overflow
See other posts from Stack Overflow
or by jwoolard
Published on 2010-03-19T16:33:19Z
Indexed on
2010/03/19
16:41 UTC
Read the original article
Hit count: 153
Hi,
I'm trying to compile a third-party library, but g++ is complaining about the following line:
typedef boost::shared_ptr<MessageConsumer> MessageConsumerPtr;
The strange thing is, there is no #include
directive in the file - and it is clearly supposed to be this way; there are about 60 files with the same (or very similar) issues. Clearly if there was an #include
directive referencing the relevant boost header this would compile cleanly.
My question is: how can I get g++ to somehow automagically find the relevant symbol (in all instances of this issue, it is a namespace that can't be found - usually std::
or boost::
) by either automatically processing the relevant header (or some other mechanism).
Thanks.
Edit
My current g++ call looks like:
g++ -fPIC -O3 -DUSING_PCH -D_REENTRANT -I/usr/include/boost -I./ -c MessageInterpreter.cpp -o MessageInterpreter.o
© Stack Overflow or respective owner