Thread: programming in c on unix

  1. #1
    Registered User
    Join Date
    Jun 2009
    Location
    US of A
    Posts
    305

    programming in c on unix

    I have come across this term used by a lot of companies which post their vacancies that the candidate must be " proficient programming c on unix". What does that imply .... I mean i program on c using visual studio and i suppose the syntax rules dont change if i use any other OS. I know that the compilation is a bit different on the linux platform like using the gcc command for compilation and all that stuff. Is there any other difference which is implied by this term ????????

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Some of the header files are different, as are some of the function calls into the system. The differences would be akin to a unix programmer considering coding on Windows, and having to learn all the Windows specific crap that you (I suppose) are pretty familiar with.
    Mainframe assembler programmer by trade. C coder when I can.

  3. #3
    Registered User
    Join Date
    Jun 2009
    Location
    US of A
    Posts
    305
    Any example of a header file which i use in windows and would be differetn on unix environment....

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by roaan View Post
    Any example of a header file which i use in windows and would be differetn on unix environment....
    windows.h?

  5. #5
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    You don't get WinAPI, and get POSIX functions instead. For GUI, you'll need to use another library (or not, if you already use a portable one) - WxWidgets, Qt, GTK... many choices. Most of them are cross-platform (runs on Windows), too.

  6. #6
    Registered User
    Join Date
    Jun 2009
    Location
    US of A
    Posts
    305
    POSIX

    If i am not wrong then POSIX standard allows multithreading in c which i suppose is lacking on windows platform....

  7. #7
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    POSIX includes a lot of things. It's like WinAPI. POSIX Threads (pthread) is just a part of it.

  8. #8
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by roaan View Post
    POSIX

    If i am not wrong then POSIX standard allows multithreading in c which i suppose is lacking on windows platform....
    Windows doesn't allow multithreading? Well that's certainly news to me. Did they stop supporting multithreading in Windows 7 or something?
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  9. #9
    Registered User
    Join Date
    Aug 2009
    Posts
    3
    Windows do allow multithreading, but not following the POSIX standard

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to program in unix
    By Cpro in forum Linux Programming
    Replies: 21
    Last Post: 02-12-2008, 10:54 AM
  2. Setting up a Unix box
    By @nthony in forum Tech Board
    Replies: 6
    Last Post: 07-22-2007, 10:22 PM
  3. UNIX (Linux, BSD, etc) Programming :: UNIX
    By kuphryn in forum Linux Programming
    Replies: 6
    Last Post: 04-01-2004, 08:44 PM
  4. Unix Sockets
    By prvindia in forum Linux Programming
    Replies: 5
    Last Post: 03-11-2003, 09:16 AM
  5. About Unix Programming - Making a career desision
    By null in forum C Programming
    Replies: 0
    Last Post: 10-14-2001, 07:37 AM