gcj-mingw32: it compiles, it runs, it segfaults

Adam Megacz gcj@lists.megacz.com
Mon Dec 10 23:52:00 GMT 2001


Bryce McKinlay <bryce@waitaki.otago.ac.nz> writes:
> > /home/megacz/hello-main.cc(.text+0x3e): undefined reference to
> > `_JvRunMain(java::lang::Class*, int, char const**)'

> JvRunMain is extern "C" - looks like you declared it with C++ linkage.

D'oh! Thanks again... this is the first time I've written anything
other than Java or Perl in almost 18 months... amazing how fast you
forget stuff like extern "C" { }....
 - a


More information about the Java mailing list

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