This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/12987] Incompatibility with VC++


------- 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


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