aMule Bug Tracker - aMule
View Issue Details
0000471aMuleMiscpublic2005-06-05 20:582005-06-13 00:37
red_alert 
Kry 
normalmajoralways
closedreopened 
2.0.2 
 
0000471: compile error
make[3]: Entering directory `/home/red_alert/Desktop/aMule-2.0.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DUSE_WX_TRAY -I/usr/lib/wx/include/gtk-ansi-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DHAVE_BFD -DUSE_EMBEDDED_CRYPTO -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -MT amule-ServerUDPSocket.o -MD -MP -MF ".deps/amule-ServerUDPSocket.Tpo" -c -o amule-ServerUDPSocket.o `test -f 'ServerUDPSocket.cpp' || echo './'`ServerUDPSocket.cpp; \
then mv -f ".deps/amule-ServerUDPSocket.Tpo" ".deps/amule-ServerUDPSocket.Po"; else rm -f ".deps/amule-ServerUDPSocket.Tpo"; exit 1; fi
ServerUDPSocket.h:70: error: expected `)' before '*' token
ServerUDPSocket.h:88: error: ISO C++ forbids declaration of 'CServerConnect' with no type
ServerUDPSocket.h:88: error: expected ';' before '*' token
ServerUDPSocket.cpp:59: error: prototype for 'CServerUDPSocket::CServerUDPSocket(CServerConnect*, amuleIPV4Address&, const CProxyData*)' does not match any in class 'CServerUDPSocket'
ServerUDPSocket.h:65: error: candidates are: CServerUDPSocket::CServerUDPSocket(const CServerUDPSocket&)
ServerUDPSocket.h:65: error: CServerUDPSocket::CServerUDPSocket()
ServerUDPSocket.cpp: In constructor 'CServerUDPSocket::CServerUDPSocket(CServerConnect*, amuleIPV4Address&, const CProxyData*)':
ServerUDPSocket.cpp:68: error: 'serverconnect' was not declared in this scope
make[3]: *** [amule-ServerUDPSocket.o] Error 1
make[3]: Leaving directory `/home/red_alert/Desktop/aMule-2.0.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/red_alert/Desktop/aMule-2.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/red_alert/Desktop/aMule-2.0.2'
make: *** [all] Error 2
Fedora Core 4
GCC4

aMule 2.0.1 compiling well!
No tags attached.
Issue History
2005-06-05 20:58red_alertNew Issue
2005-06-05 22:42KryNote Added: 0001041
2005-06-05 22:43KryStatusnew => assigned
2005-06-05 22:43KryAssigned To => Kry
2005-06-12 21:30KryStatusassigned => closed
2005-06-12 21:30KryNote Added: 0001060
2005-06-12 22:59red_alertStatusclosed => feedback
2005-06-12 22:59red_alertResolutionopen => reopened
2005-06-12 22:59red_alertNote Added: 0001062
2005-06-13 00:37KryStatusfeedback => closed
2005-06-13 00:37KryNote Added: 0001063

Notes
(0001041)
Kry   
2005-06-05 22:42   
Try putting

#include "CServerConnect.h"

on the include secion of ServerUDPSocket.h, and report if it fixes it.
(0001060)
Kry   
2005-06-12 21:30   
Guess so.
(0001062)
red_alert   
2005-06-12 22:59   
sorry, I didn't see your first post (didn't receive a mail as I did now)).

I tried your include and it didn't work, then noticed, that the headerfile you wanted to include doesn't exist.
But ServerConnect.h does exist and worked (CVS 12th June).

Thank you!
(0001063)
Kry   
2005-06-13 00:37   
Uh, yeah, misstyped it. Thanks!