using xlib peers

Per Bothner per@bothner.com
Fri Jul 13 15:33:00 GMT 2001


In case somebody wants to try the xlib peers, this is what I had to do
to run Rolf's demos. (This is after configuring with --enable-java-awt=xlib.)
gcj -rdynamic - AWTDemo --main=AWTDemo -g AWTDemo.java -Dawt.toolkit=gnu.awt.xlib.XToolkit /home/bothner/GNU/linux-gcc/i686-pc-linux-gnu/libstdc++-v3/libsupc++/*.o
The problem was that some native code used the stl <vector>,
which requires operator new in libsupc++, so I would get:
./AWTDemo: error while loading shared libraries: /home/bothner/GNU/install-gcc/lib/libgcjx.so.2: undefined symbol: _Znwj
this was the only way I could get it to work - just adding -lsupc++
doesn't work, for example.
-- 
	--Per Bothner
per@bothner.com http://www.bothner.com/per/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /