nanogui: nxlib problem


Previous by date: 19 Jun 2011 14:27:50 -0000 Re: NXVIEW problem, Greg Haerr
Next by date: 19 Jun 2011 14:27:50 -0000 FreeType 1 support, Ludwig Ertl
Previous in thread: 19 Jun 2011 14:27:50 -0000 nxlib problem, Takács Áron
Next in thread: 19 Jun 2011 14:27:50 -0000 Re: NXLIB problem, Greg Haerr

Subject: NXLIB problem
From: "Georg Potthast" ####@####.####
Date: 19 Jun 2011 14:27:50 -0000
Message-Id: <001401cc2e8d$0f05da50$6700a8c0@SCHREIBTISCHGP>

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


Previous by date: 19 Jun 2011 14:27:50 -0000 Re: NXVIEW problem, Greg Haerr
Next by date: 19 Jun 2011 14:27:50 -0000 FreeType 1 support, Ludwig Ertl
Previous in thread: 19 Jun 2011 14:27:50 -0000 nxlib problem, Takács Áron
Next in thread: 19 Jun 2011 14:27:50 -0000 Re: NXLIB problem, Greg Haerr


Powered by ezmlm-browse 0.20.