[opensuse] MinGw cross compiler for 32-bit MS Windows
I have been using the MinGW cross compiler for 32-bit MS Windows on openSUSE for a while. I have no trouble making apps (console mode dll and exe) that run on Windows. Part of the setup should allow others to write applications on Windows and link with the DLLs I create with MinGW on Linux. Here is where I run into problems. Initially, people were trying to use MSCV++ to make apps that link with the Linux- compiled MinGW DLLs. The linking worked, but the apps did not run. So, I suggested that they try MinGW on Windows. Oddly, no help. So, I thought I needed to look into this. I installed the current stable MinGW from mingw.org. When I try to link with my Linux cross- compiled DLLS, I get an error that atexit() is redefined. Not in my code. When compiling/linking the same code all with the Linux cross- compiler, there is no trouble at all. It is when I use a DLL from the Linux cross compiler as a component when linking a program compiled on Windows that it fails. After a bit of googling, I think I need to make sure that the runtime libs (used when linking the app) in MinGW are the same version on Linux and Windows. Here is my current problem (I think): The RPMs for openSUSE contain versions that are so old that they are no longer available on mingw.org. They do have old versions. But not as old as the ones included in openSUSE. Is there any reason that the openSUSE versions of the various components are not somewhere in the list of versions that mingw.org supply for Windows? Alternatively, is this not really the problem? Maybe I am looking at the wrong problem? Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 And remember: It is RSofT and there is always something under construction. It is like talking about large city with all constructions finished. Not impossible, but very unlikely. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2009-04-22 at 20:54 +0200, Roger Oberholtzer wrote:
Alternatively, is this not really the problem? Maybe I am looking at the wrong problem?
Seems the problem is that I had an msvcrt.dll file in a directory specified with -L, even though I did NOT have a -lmsvcrt. gcc seemed to link with that msvcrt.dll anyway. When I removed the dll, all works much better. How odd. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Roger Oberholtzer (roger@opq.se) [20090422 20:58]:
The RPMs for openSUSE contain versions that are so old that they are no longer available on mingw.org.
Which RPMs are you talking about? AFAIK, we never distributed any mingw packages. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2009-04-23 at 18:48 +0200, Philipp Thomas wrote:
* Roger Oberholtzer (roger@opq.se) [20090422 20:58]:
The RPMs for openSUSE contain versions that are so old that they are no longer available on mingw.org.
Which RPMs are you talking about? AFAIK, we never distributed any mingw packages.
OK. It is not on the release DVD. It is from the build service: CrossToolchain:mingw -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Philipp Thomas
-
Roger Oberholtzer