This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: using xlib peers
- To: Per Bothner <per at bothner dot com>
- Subject: Re: using xlib peers
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Sat, 14 Jul 2001 16:13:30 +1200
- Cc: java-discuss at sources dot redhat dot com
On Saturday, July 14, 2001, at 10:36 AM, Per Bothner wrote:
> 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.
How about "-lstdc++" ?
regards
[ bryce ]