LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-11-2005, 06:20 PM   #1
Adam15906
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
Tusk
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>
#else
# include <sys/socket.h>
# include <sys/param.h>
# include <netinet/in.h>
# include <arpa/inet.h>
# indlude <netdb.h>
#endif


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,
Tusk
 
Old 09-16-2005, 10:51 PM   #3
Snowbat
Member
 
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?
 
  


Reply


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


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

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