Thread: different software versions

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    4

    different software versions

    I thought C was portable code but I'm having trouble interchanging between TurboC++4.5 and Microsoft C++6.0. I find it easier to write and link in MSC++ but have to execute programs on system which has only TC++4.5. Is it something I'm doing wrong that means I can't switch between 2 formats or is what I'm trying to do impossible?
    Am I going to have to write in TC?

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Not all (actually, I think it's actually none) compilers are totally ANSI compliant - each one has little quirks. If you compile it with MSVC, there's no reason you shouldn't be able to use the exexutable on any other window-based system. Where you run into problems is if you write it in MSVC and it compiles fine, and then you try to compile it in Turbo C++. Then, you might have to change some code.

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    C is portable, though many compilers support things that are not part of the C standard. This means that not all compilers have to support those things. If you really want to write portable code, you should write ANSI C code and avoid compiler dependend things.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Software Design/Test - Redmond, WA
    By IRVolt in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 06-11-2008, 10:26 AM
  2. Why C Matters
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 136
    Last Post: 01-16-2008, 09:09 AM
  3. Open Software License 3.0 Explained
    By laserlight in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 01-08-2008, 08:10 PM
  4. Adding trial period to software
    By BobS0327 in forum C Programming
    Replies: 17
    Last Post: 01-03-2006, 02:13 PM