Boost signals.hpp causes several compile time errors on Visual Studio 2010
I'm trying to use boost.signals library. I know that to use it, first I need to build the boost since signals is not a header only library. I followed the steps described under this topic to build the boost and did not get any errors. However, when I include boost/signals.hpp I get several C2146开发者_如何学编程, C2238, C2447 errors. Most of them are syntax errors. For example there are several C2143 errors saying that missing ; before {
in signals_common.hpp.
Has anyone faced such problem?
You would get a linker error if it were a problem with how you built it. This is compile time.
Try making a simple example for people to try.
My guess would be Qt. If you are using Qt, there may be namespace conflicts.
How do I get Boost.Signals to work with Qt?
精彩评论