From: Danny S. <dan...@cl...> - 2003-06-26 07:38:41
|
----- Original Message ----- From: "Joost Kraaijeveld" <J.Kraaijeveld@Askesis.nl> To: "Danny Smith" <dan...@us...>; "Mingw-Users (E-mail)" <min...@li...> Sent: Thursday, 26 June 2003 06:09 Subject: RE: [Mingw-users] Importing class static bug? > Hi Danny, > > > What are versions of gcc and ld? > gcc (GCC) 3.2 (mingw special 20020817-1) > GNU ld version 2.13.90 20021005 > > > When I run main.exe: > > void fn() > > void Object::fn() > > 0 Oops that 0 was a pasto. I actually got what you saw on cygwin.... > > Running the executable compiled with the same source, same makefile in > Cygwin or Linux results in the expected output: > > void fn() > void Object::fn() > 10 > ,,,,that. Which is a relief since Cygwin used the same gcc source and patches as mingw for 3.2. > The Cygwin versions: > gcc (GCC) 3.2 20020927 (prerelease) > GNU ld version 2.13.90 20030308 The fix for direct linking to dll is what you needed. The older mingw ld doesn't have it. More recent ones do. > No, I am using a binary distribution from Mingw. I have seen that there > are newer versions, so I will upgrade. The newer binutils is what you need. Danny > > Joost > |