LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-28-2005, 05:58 PM   #1
nathan10177
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
cross-compiling windows console apps on linux


Is there an easy way to cross compile my Linux C code to run as a Win32 console application? It needs to link to libtiff and libfftw3. I'd like to link it statically so I can just put it on a Windows machine and have it run. There is no GUI part, so I 'm hoping this means I can avoid doing something complicated with setting up a complete cross-compiler.
 
Old 10-28-2005, 07:07 PM   #2
solveit
Member
 
Registered: Jan 2005
Posts: 83

Rep: Reputation: 15
Try winelib to compile and test using wine :

http://www.winehq.org/site/docs/winelib-guide/index
 
Old 10-28-2005, 08:40 PM   #3
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Rep: Reputation: 15
devcpp might be helpful. You might also try compiling it under cygwin. Of course any file or directory I/O will need to be modified to make the appropriate windows calls and handle the windows directory structure.

Good luck.

Last edited by Itzac; 10-28-2005 at 08:42 PM.
 
  


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
windows to linux cross-compiler back2morrie Linux - General 8 07-13-2005 03:15 AM
Linux/windows Cross Platform Gui toolkit. mr_segfault Programming 7 10-31-2004 04:57 PM
Came a-cross some linux compression formats but not sure how to open them in Windows maximalred Linux - Distributions 1 06-09-2004 06:13 AM
cross-compiling for win under linux rebelcan Linux - Newbie 2 06-17-2003 05:51 AM
Cross compiling - Windows Xp -> Linux groston Programming 1 05-31-2002 03:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:47 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration