943,929 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2711
  • C RSS
Jul 8th, 2004
0

Cross-compiler for C?

Expand Post »
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. :-|
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
RaftingBear is offline Offline
2 posts
since Jul 2004
Jul 8th, 2004
0

Re: Cross-compiler for C?

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.
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Jul 8th, 2004
0

Re: Cross-compiler for C?

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
RaftingBear is offline Offline
2 posts
since Jul 2004
Jul 8th, 2004
0

Re: Cross-compiler for C?

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.
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: questions &solutions
Next Thread in C Forum Timeline: pointer





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC