This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/12987] Incompatibility with VC++
- From: "oyvind dot harboe at zylin dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Nov 2003 14:08:04 -0000
- Subject: [Bug java/12987] Incompatibility with VC++
- References: <20031110080409.12987.oyvind.harboe@zylin.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From oyvind dot harboe at zylin dot com 2003-11-10 14:08 -------
This appears to be a more general(not Java specific) compatibility problem
between Visual C++ 6.0 and GCC.
I'll attach foo.c and bar.c
1. gcc -shared -o bar.dll -Wl,--out-implib,foo.lib bar.c
2. gcc -o foo foo.c bar.lib
When I compile 2. from VC++, I get an error message and the application crashes
when it tries to invoke bar():
--------------------Configuration: test2 - Win32 Debug--------------------
Compiling...
foo.c
Linking...
bar.lib(d000001.o) : warning LNK4078: multiple ".text" sections found with
different attributes (E0000020)
test2.exe - 0 error(s), 1 warning(s)
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[Mingw] Problems with |Incompatibility with VC++
|linking application that |
|calls JVM |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12987