Cross-compiler for C?

Reply

Join Date: Jul 2004
Posts: 2
Reputation: RaftingBear is an unknown quantity at this point 
Solved Threads: 0
RaftingBear RaftingBear is offline Offline
Newbie Poster

Cross-compiler for C?

 
0
  #1
Jul 8th, 2004
I run Windows; only have Windows computers available to me. Now I need to compile a little C program for a UNIX-only web host. How can I get the program compiled so it will run under UNIX?

Any help would definitely be appreciated. :-|
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Cross-compiler for C?

 
0
  #2
Jul 8th, 2004
Look in to GCC running under Cygwin:

http://www.cygwin.com

I believe there are options to cross compile using the GCC version provided with it.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 2
Reputation: RaftingBear is an unknown quantity at this point 
Solved Threads: 0
RaftingBear RaftingBear is offline Offline
Newbie Poster

Re: Cross-compiler for C?

 
0
  #3
Jul 8th, 2004
I've downloaded and installed CygWin. Ran it, entered GCC at the prompt. It said the command wasn't found. I'm now looking to see if I can find GCC somewhere.
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: Cross-compiler for C?

 
0
  #4
Jul 8th, 2004
yeah, you have to install it as part of the installation. It's in the Devel category when you're asked which packages you want to install. If you've already got Cygwin installed, just run the installer again, select that additional package, and then proceed with installation as normal. It will simply add the package to your Cygwin install.

Also, what version of UNIX is the host? (AIX, SCO, Solaris, HP/UX, Linux/FreeBSD)? That's important, as each one is an entirely different OS. GCC should have options for each OS for compiling.
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC