Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-24-2009, 02:40 PM   PM User | #1
tanv@vice
New Coder

 
Join Date: Nov 2008
Location: delhi
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
tanv@vice is an unknown quantity at this point
Question c and linux

hi,i made a program for address diary in C sometime back..now i am learning linux and i want to know,is there any way i can convert my c code into linux ? is that possible and how should i proceed..i have to do the same address diary thing in linux..please help ...
tanv@vice is offline   Reply With Quote
Old 09-24-2009, 03:00 PM   PM User | #2
TheShaner
Senior Coder

 
TheShaner's Avatar
 
Join Date: Sep 2005
Location: Orlando, FL
Posts: 1,125
Thanks: 2
Thanked 40 Times in 40 Posts
TheShaner will become famous soon enoughTheShaner will become famous soon enough
Recompile the source code using gcc on your Linux machine. I believe most Linux distros come with it, but if not, go here.

-Shane
TheShaner is offline   Reply With Quote
Old 09-24-2009, 03:30 PM   PM User | #3
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,043
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
If your program is a console application, it should be as simple as recompiling as Shane said. If you don't have gcc, if your distro has a package manager, it will probably be in there.
__________________
OracleGuy
oracleguy is offline   Reply With Quote
Old 09-25-2009, 03:23 PM   PM User | #4
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
As long as you didn't utilize any Windows API or other various packages such as sockets that differ between Windows and Unix/Linux then you should be fine.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 09-26-2009, 07:39 AM   PM User | #5
tanv@vice
New Coder

 
Join Date: Nov 2008
Location: delhi
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
tanv@vice is an unknown quantity at this point
thanx... i think this will do gr9 fr me
tanv@vice is offline   Reply With Quote
Reply

Bookmarks

Tags
c code, convert into linux, linux, scripting

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:23 AM.


Advertisement
Log in to turn off these ads.