Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-08-2007, 02:55 PM   #1
LQ Newbie
Registered: May 2006
Location: Sweden
Distribution: Vector Linux
Posts: 28

Rep: Reputation: 15
Cross compiling to Windows binary, including Linux shared libraries

I am looking for a cross compilation program for (as the title of this thread says) making a Windows binary. The source code is written using Linux-only shared libraries, so I would like it to be able to compile these into .dll-files.
I have heard of both Cygwin and MinGW. However, I cannot find the source packages for those two. Well, I did find it for MinGW, but the configure scripts contained strange Windows-textfile characters, so it would not install. I reckon it was meant for a Windows compilation. The packages I downloaded were:

binutils-2.15.91-20040904-1-src.tar.gz  mingw32-make-3.80.0-3-src.tar.bz2
Am I using the wrong packages?
Where can I find the Linux MinGW or Cygwin compilers?
What alternative alternative compilers are there that I can use for this purpose?
Old 03-08-2007, 03:31 PM   #2
LQ Newbie
Registered: May 2006
Location: Sweden
Distribution: Vector Linux
Posts: 28

Original Poster
Rep: Reputation: 15
I found a solution myself.
If anyone is interested, here's a HOWTO:
Old 03-09-2007, 12:36 AM   #3
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,855

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
I have sources and build scripts for mingw32 here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cross-compiling windows console apps on linux nathan10177 Programming 2 10-28-2005 08:40 PM
cross compiling a shared library baba_gorakhnath Linux - Laptop and Netbook 0 03-10-2005 11:02 PM
compiling with shared and static libraries jinksys Programming 1 11-22-2003 04:54 AM
linux init error in loading shared shared libraries akaran Linux - Software 1 05-28-2003 04:40 AM
Cross compiling - Windows Xp -> Linux groston Programming 1 05-31-2002 03:19 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration