Re: [Dbus-cxx-users] compile problem
Status: Beta
Brought to you by:
rvinyard
From: Rick L. V. Jr. <rvi...@cs...> - 2010-06-25 16:08:56
|
Daren Scot Wilson wrote: > -- > > Daren Scot Wilson > Orlando FL^H^H^H^H^H^H^H^H^H^H Socorro NM > > > On 06/24/10 08:50, Rick L. Vinyard, Jr. wrote: >> >> Hmmm... not sure on this one. It looks like it's not pulling in the >> header >> that has uint8_t. That should be in stdint.h which came in with C99. >> >> You might check dbus-cxx-config.h and see if the stdint.h line is >> included. >> >> > > > /* Define to 1 if you have the <stdint.h> header file. */ > #ifndef DBUS_CXX_HAVE_STDINT_H > #define DBUS_CXX_HAVE_STDINT_H 1 > > I don't see anything anywhere to define this symbol in any way. But, > more interesting, I don't see any use of this preprocessor variable - > expecting to see an "#if" in a .h or .cpp file. dbus-cxx-config.h is generated by autoconf. That's one of the default symbols. >> You might also try adding one of the following to types.h: >> >> #include<cstdint> >> >> or >> >> #include<stdint.h> >> >> If that works I'll add it to the next release. >> > Adding #include <stdint.h> to types.h solved the problem. I just stuck > it in plain before all other #includes, though I suppose in real life it > ought be be wrapped in an #if/#endif. I'll leave that to you! > > Still it didn't compile but at least it goes much further and presents a > fresh error: > ../dbus-cxx/signal_base.h:107:38: error: field 'm_connection' has > incomplete type > In dbus-cxx-config.h between these three, which is defined? /* If defined, boost library smart pointers will be used */ /* #undef DBUS_CXX_USE_BOOST_SMART_POINTER */ /* If defined c++0x smart pointers will be used */ #ifndef DBUS_CXX_USE_CXX0X_SMART_POINTER #define DBUS_CXX_USE_CXX0X_SMART_POINTER /**/ #endif /* If defined TR1 smart pointers will be used */ /* #undef DBUS_CXX_USE_TR1_SMART_POINTER */ |