Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-11-2005, 06:20 PM   #1
LQ Newbie
Registered: Jun 2004
Location: PA,USA
Distribution: Gentoo Linux, FreeBSD(Not Linux, I know).
Posts: 18

Rep: Reputation: 0
Cross-COmpiling with MinGW32 headers

I was just wondering excatly where I get stuff for the MinGW cross compiler.

I have it installed and everything works nicely but I can't find some header files to do some header files.

I wonder if I can find sys/socket.h, netdb.h, netinit/in.h, and arpa/inet.h for MinGW. I am trying to cross-compile wget. I have those files in /usr/local but I can't get ./configure to find them after I do ./configure --host=i586-mingw32msvc.
Old 09-16-2005, 06:51 PM   #2
LQ Newbie
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
You need to port your code to win32

The following is an example.

#ifdef WIN32
# include <Winsock2.h>
# include <sys/socket.h>
# include <sys/param.h>
# include <netinet/in.h>
# include <arpa/inet.h>
# indlude <netdb.h>

Includeing Winsock2.h is basically equivalent to including:
sys/socket.h, sys/param.h, netinet/in.h, arpa/inet.h, & netdb.h

It should be included once for any file needing one or more of those headers.

Hope this helps,
Old 09-16-2005, 10:51 PM   #3
Registered: Jun 2005
Location: q3dm7
Distribution: Mandriva 2010.0 x86_64
Posts: 338

Rep: Reputation: 31
Other people have already published win32 builds of wget. Are you doing this for educational reasons?


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
distcc cross architecture compiling Moebius Linux - Software 2 01-09-2008 07:20 AM
Cross Compiling dosnlinux Programming 5 03-01-2006 12:12 PM
wx widget and cross compiling guideweb Programming 0 09-21-2005 12:06 AM
cross-compiling? jon_k Programming 3 12-09-2004 10:36 AM
cross compiling with g++ hornofsalvation Linux - Newbie 2 10-09-2004 11:29 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:23 PM.

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