Whenever I add an object file that was generated with gcj to a g++ link
command for a shared dll, I get an undefined reference to `WinMain@16'.
This seems to indicate that for some reason gcc wants to build an
executable instead of a shared library. This was working in gcc 3.4 -
though I was using cygwin with gcj -mno-cygwin which is no longer
supported.
Is building dlls with g++ and gcj supported in newer versions of gcc?
Is there a different link command that will not try to build an
executable?
works> g++ -shared cpptest.o -o pdflib.dll
works - event with lgcj> g++ -shared cpptest.o -lgcj -lws2_32 -o
pdflib.dll
fails - it tries to build an executable> g++ -shared javatest.o
cpptest.o -lgcj -lws2_32 -o pdflib.dll