|
Re: Problem with sigc++: msg#00013sysutils.cfg.devel
Hi Jason, Jason Long wrote: Unfortunately, I don't recall seeing the compiler errors you're having. MyYes. OK, it works... What does not work is the following: $ cat test.cpp #include <qobject.h> #include <FrontendHelper.h> int main(int argc, char **argv){ return 0; } $ gcc-3.3 -DHAVE_CONFIG_H -I. -I/usr/share/qt3/include -I. -I.. -I/opt/include -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -I/home/pierre/apps/config4gnu-0.1.8/src/libconfig4gnu test.cpp -o /dev/null In file included from /usr/include/sigc++-1.2/sigc++/sigc++.h:27, from /home/pierre/apps/config4gnu-0.1.8/src/libconfig4gnu/CfgObject.h:9, from /home/pierre/apps/config4gnu-0.1.8/src/libconfig4gnu/FrontendHelper.h:4, from test.cpp:2: /usr/include/sigc++-1.2/sigc++/signal.h:167: error: declaration does not declare anything /usr/include/sigc++-1.2/sigc++/signal.h:167: error: parse error before `)' token /usr/include/sigc++-1.2/sigc++/signal.h:171: error: ISO C++ forbids defining types within return type /usr/include/sigc++-1.2/sigc++/signal.h:171: error: syntax error before ` operator' /usr/include/sigc++-1.2/sigc++/signal.h:172: error: ISO C++ forbids declaration of `operator()' with no type /usr/include/sigc++-1.2/sigc++/signal.h:172: error: `int SigC::operator()()' must be a nonstatic member function /usr/include/sigc++-1.2/sigc++/signal.h: In function `int SigC::operator()()': /usr/include/sigc++-1.2/sigc++/signal.h:172: error: `impl_' undeclared (first use this function) /usr/include/sigc++-1.2/sigc++/signal.h:172: error: (Each undeclared identifier is reported only once for each function it appears in.) /usr/include/sigc++-1.2/sigc++/signal.h:172: error: `emit_' undeclared (first use this function) /usr/include/sigc++-1.2/sigc++/signal.h: At global scope: /usr/include/sigc++-1.2/sigc++/signal.h:175: error: ISO C++ forbids declaration of `Signal0' with no type /usr/include/sigc++-1.2/sigc++/signal.h: In function `int SigC::Signal0()': /usr/include/sigc++-1.2/sigc++/signal.h:175: error: `int SigC::Signal0()' redeclared as different kind of symbol /usr/include/sigc++-1.2/sigc++/signal.h:144: error: previous declaration of ` template<class R, class Marsh> class SigC::Signal0' /usr/include/sigc++-1.2/sigc++/signal.h:144: error: previous non-function declaration `template<class R, class Marsh> class SigC::Signal0' /usr/include/sigc++-1.2/sigc++/signal.h:175: error: conflicts with function declaration `int SigC::Signal0()' /usr/include/sigc++-1.2/sigc++/signal.h:175: error: only constructors take base initializers /usr/include/sigc++-1.2/sigc++/signal.h:176: confused by earlier errors, bailing out ---------- In fact, the compiler is confused when I try to include qt and sigc++ !! Need more investigations... if I remove the line: #include <qobject.h> It works... funny. I think it is related to the method emit, but the compiler is confused. emit exist in QT and sigc++ it seems... Have any idea ? Thanks for your feedback. Best Regards. Pierre Souchay
No other kinds of errors related to gtkmm... but I think I just don't have all the needed libraries.
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Problem with sigc++: 00013, Jason Long |
|---|---|
| Next by Date: | Re: Problem with sigc++: 00013, Pierre SOUCHAY |
| Previous by Thread: | Re: Problem with sigc++i: 00013, Jason Long |
| Next by Thread: | Re: Problem with sigc++: 00013, Pierre SOUCHAY |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |