This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using xlib peers


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 ]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]