Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: c and linux

  1. #1
    New Coder
    Join Date
    Nov 2008
    Location
    delhi
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 ...

  • #2
    Senior Coder TheShaner's Avatar
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Posts
    1,126
    Thanks
    2
    Thanked 40 Times in 40 Posts
    Recompile the source code using gcc on your Linux machine. I believe most Linux distros come with it, but if not, go here.

    -Shane

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    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

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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

  • #5
    New Coder
    Join Date
    Nov 2008
    Location
    delhi
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanx... i think this will do gr9 fr me


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •