On Wed, 7 Jan 2004, Alex 'CAVE' Cernat wrote:

> On Wed, 7 Jan 2004 14:13:12 +0200 (EET)
> Radu Filip <[EMAIL PROTECTED]> wrote:
> 
> >   connect( server, SIGNAL(newConnect(ClientSocket*)),
> >   SLOT(newConnect(ClientSocket*)) );
> 
> pune connect( server, SIGNAL(newConnect(ClientSocket*)), server,
> SLOT(newConnect(ClientSocket*)) );
> desi oricum ar fi trebuit sa mearga si asa; sau e cam muci compilatorul

$ make
g++ -c -pipe -Wall -W -O2  -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT 
-I/usr/local/qt/mkspecs/default -I. -I/usr/lib/qt-3.1/include -I.ui/ 
-I.moc/ -o .obj/test.o test.cpp
test.cpp: In constructor `Test::Test()':
test.cpp:9: no matching function for call to 
`Test::connect(SimpleServer*&,
   const char[27], SimpleServer*&, const char[27])'
/usr/lib/qt-3.1/include/qobject.h:116: candidates are: static bool
   QObject::connect(const QObject*, const char*, const QObject*, const 
char*)
/usr/lib/qt-3.1/include/qobject.h:227:                 bool
   QObject::connect(const QObject*, const char*, const char*) const
make: *** [.obj/test.o] Error 1

:-((

$ g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --with-system-zlib --enable-__cxa_atexit 
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

$ cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)



--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui