Hi Greg,

I compiled NXLIB with DJGPP. I copied usr/include/X11 from my Linux system and pointed the makefile to that. Also put the X11 directory into the djgpp/include directory.

Then I downloaded xclock.c to see if it would compile with libNX11.a. However, I get these error messages:

gcc -I/djgpp/include/mwin -o xclock.exe xclock.c -lNX11 -lnano-X -lz -lfreetype

e:/djgpp/tmp/ccMR4PGM.o:xclock.c:(.text+0x2fd): undefined reference to `_XtDisplayOfObject' e:/djgpp/tmp/ccMR4PGM.o:xclock.c:(.text+0x342): undefined reference to `_XtDisplay' e:/djgpp/tmp/ccMR4PGM.o:xclock.c:(.text+0x35a): undefined reference to `_XtShellStrings' e:/djgpp/tmp/ccMR4PGM.o:xclock.c:(.text+0x375): undefined reference to `_XtSetValues' e:/djgpp/tmp/ccMR4PGM.o:xclock.c:(.text+0x3ff): undefined reference to `_sessionShellWidgetClass' e:/djgpp/tmp/ccMR4PGM.o:xclock.c:(.text+0x427): undefined reference to `_XtOpenApplication' e:/djgpp/tmp/ccMR4PGM.o:xclock.c:(.text+0x450): undefined reference to `_XtShellStrings' e:/djgpp/tmp/ccMR4PGM.o:xclock.c:(.text+0x460): undefined reference to `_XtAddCallback'
..and so on ...
collect2: ld returned 1 exit status

What do I have to do to avoid these "undefined references"?

Georg


---------------------------------------------------------------------
To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org
For additional commands, e-mail: nanogui-h...@linuxhacker.org

Reply via email to