Hi Stefan On 11/07/13 11:24, scas wrote:
> I have encoutered David's problem with "XGetWindowAttributes" but this is > happening when using the "-lX11" flag. I am stuck at this point, don't know > what to do. > > Here is the error: > > /usr/bin/ld: > /home/scas/ecos-stuff/wxGTK-2.8.8/lib/libwx_gtk2_core-2.8.a(corelib_utilsx11.o): > undefined reference to symbol 'XGetWindowAttributes' > /usr/bin/ld: note: 'XGetWindowAttributes' is defined in DSO > /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libX11.so so try > adding it to the linker command line > /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libX11.so: could not > read symbols: Invalid operation > collect2: ld returned 1 exit status > > If anyone could give me a hint what to do, I would greatly appreciate it. Are you use the latest makefile.gnu file from CVS? Ref: http://ecos.sourceware.org/cgi-bin/cvsweb.cgi/ecos/host/tools/configtool/standalone/wxwin/makefile.gnu.diff?r1=1.15&r2=1.16&cvsroot=ecos&f=h Note that the ordering of libraries on the linker command line is important. I hope this helps. John Dallaway eCos maintainer http://www.dallaway.org.uk/john -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss