Re: Problem building g++ 4.1.1 on Cygwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave Yost wrote:

> The problem I'm trying to solve is to compile with the 4.1.1 compiler and its C++ calling conventions but not to use any Cygwin libraries.  Is this even possible?

-mno-cygwin and MinGW are the same thing.  That flag is just a shortcut
to invoking a copy of the MinGW version of the compiler.  It removes
Cygwin entirely from the picture and switches the toolchain to a
completely different target, just as if you were cross compiling.  So,
just build/use the MinGW version of gcc if that's what you want.  To get
"gcc -mno-cygwin" working requires that you build and install two
separate versions of gcc, which is pointless if all you are doing is
using MinGW anyway.

> And the reason I'm trying to solve that problem is that Java's JNI works only with 3.4.4 and only when I compile with -no-cygwin.  I.e. JNI doesn't work when compiled with 4.1.1.  Specifically the JNI example I'm talking about is swig-1.3.31/Examples/java/simple/.

I don't understand.  Why are you building a 4.x compiler if you already
know that what you're trying to do only works with 3.4?

Brian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux