>> 2.- Edit the makefile.gnu in ecos/host/tools/configtool/standalone, and >> add to the line EXTRALDFLAGS, at the end, after leaving a space, -lX11 > I have not found -lX11 to be necessary. The invocation of wx-config > within makefile.gnu should return all the flags necessary to link with > the X window system. Which Linux distro and version are you using? Can > you forward the link-time error you observe without this change > (including all the command-line arguments) please? > > Hi John,
This is the "simplified" output: c++ -o configtool <lots-of-files.o> -LTCLDIR_use_system/lib -L/usr/local/lib -l<other-libs>... -ltcl `/usr/local/bin/wx-config --libs std,gizmos` /usr/bin/ld: /usr/local/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/libX11.so.6 so try adding it to the linker command line /usr/lib/libX11.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status make: *** [/<my-build -folder>] Error 1 I compiled this in Fedora14+wxGTK-2.8.12 and Fedora15+wxGTK-2.8.8, and I get the same problem in both of them (both wxGTK were compiled from sources and installed in /usr/local, I know that /usr/local/bin is in the PATH, but my LD_LIBRARY_PATH is empty, as I rely in the config scripts for wx and tcl). If you want the full link command (two or three screens), let me know, and I'll recompile. Cheers -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss