[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

help



Hi!!

I need help.
I wrote a little C++ program and I want to use it with a C program library. For compiling I used the following text


g++ -L/gandalf/users/diana/lib/linuxelf -L/users/tom/lib/linuxelf -L/usr/X11R6/lib -lTomMSystem -lTomHRC -lTomHW -lTomGUI -lTomMath -lTomX -lTom -lXm -lXpm -lSM -lICE -lXt -lXext -lX11 -lg++ -lXm -lXpm -lSM -lICE -lXt -lXext -lX11 -ltiff -ljpeg -lgz -lm -I/users/tom/include -o /gandalf/users/diana/bin/linuxelf/guidemo guidemo.cpp
/tmp/cca180751.o: In function `MyExit(void)':
/tmp/cca180751.o(.text+0x84): undefined reference to `TomMSystemCloseLibrary(void)'
/tmp/cca180751.o(.text+0x89): undefined reference to `TomGUICloseLibrary(void)'
/tmp/cca180751.o(.text+0x8e): undefined reference to `TomCloseDisplay(void)'
/tmp/cca180751.o(.text+0x93): undefined reference to `TomCloseLibrary(void)'
/tmp/cca180751.o: In function `main':
/tmp/cca180751.o(.text+0xa7): undefined reference to `TomInitLibrary(void)'
/tmp/cca180751.o(.text+0xbb): undefined reference to `TomInitDisplay(char const *, int *, char **, int)' /tmp/cca180751.o(.text+0xc3): undefined reference to `TomMSystemHelpDialog(char const *, char const *)'


I don't understand why this error appears, because I inserted also the library for those functions and I specified in which director can be found. Can you give me a suggestion? I will appreciate any idea. Thank you very much.

Please answer me on the following address. Diana_Ispas@web.de

Bye,
Diana



Reply to: