Saturday, September 24, 2005

RPC Chat example

Chat application supporting multiple channels. Implemented in C++ using QT and RPC for network comm.
chat session

2 comments:

Willer Davis said...

Hi,
I have some errors in compilation:

.obj/clientdialog.o: In function `ClientDialog::pollTimer()':
clientdialog.cpp:(.text+0x1aa): undefined reference to `poll_1'
clientdialog.cpp:(.text+0x22d): undefined reference to `poll_1'
.obj/clientdialog.o: In function `ClientDialog::channelButton_clicked()':
clientdialog.cpp:(.text+0x2b12): undefined reference to `join_1'
.obj/clientdialog.o: In function `ClientDialog::channelListButton_clicked()':
clientdialog.cpp:(.text+0x320b): undefined reference to `list_1'
.obj/clientdialog.o: In function `ClientDialog::messageButton_clicked()':
clientdialog.cpp:(.text+0x34bf): undefined reference to `say_1'
.obj/clientdialog.o: In function `ClientDialog::channelPartButton_clicked()':
clientdialog.cpp:(.text+0x390d): undefined reference to `part_1'
collect2: ld returned 1 exit status
make: *** [rpcqtchat] Error 1

Do you know what is wrong??

[]'s

Everton L. Berz [mutant] said...

Para quem está tendo o mesmo problema que o Willer postou no comentário:

Altere o arquivo Makefile, na linha de declaracao do "OBJECTS"

O original é:
OBJECTS = .obj/main.o \
.obj/clientdialog.o \
.obj/qmake_image_collection.o


Deve ficar:
OBJECTS = .obj/main.o \
.obj/clientdialog.o \
.obj/qmake_image_collection.o \
qtchat_clnt.o \
qtchat_xdr.o



Se ainda nao funcionar recompile o qtchat_clnt.c e o qtchat_xdr.c