guitest.C compilation

Hello,

I’ve been trying to get the program guitest.C to compile in order to run in standalone. I am able to compile it fine however running it give the error messages:

Error in TQObject::CheckConnectArgs: slot CloseWindow() does not exist
Error in TQObject::CheckConnectArgs: slot HandleMenu(int) does not exist
Error in TQObject::CheckConnectArgs: slot HandlePopup() does not exist
Error in TQObject::CheckConnectArgs: slot HandlePopdown() does not exist

basically it seems to not recognize the slots. The gui appears properly, however none of the signal/slot connections work.

in order to compile it i used:
<g++ root-config --cflags --glibs -o guitest guitest.C -D STANDALONE>

I also tried
<g++ -O -Wall -fPIC -pthread -I/root/root/include -c guitest.cxx -D STANDALONE>
followed by
<g++ -O guitest.o -L/root/root/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lGui -pthread -lm -ldl -rdynamic -o guitest>

both which compile errorlessly.

Performing these compiles on non-signal/slot gui’s seems to work, ie. guitest.cxx, but as soon as I through in a signal/slot, it doesnt seem to recognize the slot.

Is there something different i have to do in order to compile guitest.C ?

any help would be really appreciated, thanks

Mitch C.

Hi,
check root.cern.ch/cgi-bin/print_hit_b … #first_hit

If you are under windows check VC7 project files in attachment
In context of GuiBuilder
root.cern.ch/root/htmldoc/TGuiBuilder.html

We are going to provide possibility of automatic generation of
Makefiles, VC projects for standalone programs.

Regards. Valeriy
test.zip (404 KB)

Wow, it worked.

I followed what was suggested in the previous subject and it solved the problem
Thanks a lot for the help,

Mitch C.