From: Anand, Vaidyanathan R <vaidyanathan.anand@bo...> - 2004-06-10 14:35:47
Since your first two commands only created the DLL but not the static
library (or an interface library), try the following:
gcc -o hello hello.o mylib.dll
That should work.
From: Martin Egholm Nielsen [mailto:martin@...]=20
Sent: Thursday, June 10, 2004 1:01 AM
Subject: [Mingw-users] Error linking - ld.exe Application error
I've just installed MinGW (3.1.0-1) and MSYS (1.0.10), and have updated
the gcc-core to "gcc-core-3.4.0-20040501-1.tar.gz".
However, I seem to have a problem when I try to link a simple
$ gcc -c -o mylib.o mylib.c
$ gcc -shared -o mylib.dll mylib.o
$ gcc -c -o hello.o hello.c
$ gcc -o hello -L. -lmylib hello.o
The final step fails, bringing up a Windows dialog-box stating that a
instruction at some address referencing some memory cannot be read.
After clicking OK to that, I get the error message:
collect2: ld returned 5 exit status
I've tried extracting "binutils-2.15.90-20040222-1.tar.gz", as well, but
I get the same result.
Any ideas how to overcome this?
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME
Users and Developers European Conference, 28-30th June in Norway
MinGW-users mailing list
You may change your MinGW Account Options or unsubscribe at: