Borland vs Xcode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pdring
    New Member
    • Oct 2007
    • 15

    Borland vs Xcode

    Can anyone help??
    I have just started a C / C++ course at my local college and they use borland c++ builder 5, I use an imac at home and have downloaded xcode as my c++ compiler, it works beatifully but now I find out that borland 5 uses different code to the ANSI standard that xcode can compile, is their an easy conversion / program so that I can write and compile borland in xcode or am I wishing for the impossible? any help or alternative sollutions will be beyond all praise ! I have lots of course work to do.
  • Firecore
    New Member
    • Jul 2007
    • 114

    #2
    Originally posted by pdring
    Can anyone help??
    I have just started a C / C++ course at my local college and they use borland c++ builder 5, I use an imac at home and have downloaded xcode as my c++ compiler, it works beatifully but now I find out that borland 5 uses different code to the ANSI standard that xcode can compile, is their an easy conversion / program so that I can write and compile borland in xcode or am I wishing for the impossible? any help or alternative sollutions will be beyond all praise ! I have lots of course work to do.
    imac?
    imac's run with c++?
    Dont u have something like applescript?

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      Borland, like most C/C++ compilers have various extensions to the ANSI standard. I wouldn't be surprised if xcode did as well.

      If you write a truly ANSI compatible program then it should compile for you in Borland and xcode. However writing portable code is a bit of an art form in itself, a whole extra set of skills, although the set is not huge and learning it would not be a disadvantage.

      However many Windows based compiler suites provide additional libraries for interfacing with the Windows GUI. MSVC has the MFC, and I believe Borland has it's own class library. These are mostly propriety libraries, that is they do not translate easily or at all to other systems or compilers.


      If your course involves creating command line (console) programs then you should just be able to write to the ANSI standard and have the code compile and work on both systems (taking account of portability issues). If you are trying to create graphic interfaces through Borlands class library then this will almost certianly not translate to your imac and your are stuffed.

      Comment

      • pdring
        New Member
        • Oct 2007
        • 15

        #4
        Thanks for you help on this subject, I have found a solution although not ideal it works! To combat portability issues etc. I have installed the borland compiler on my p.c at work and set up a remote access for my mac, this way i can sit at home on my mac and have the benifits of borland on windows.
        bit of a cheat but like i say it works!

        Originally posted by Banfa
        Borland, like most C/C++ compilers have various extensions to the ANSI standard. I wouldn't be surprised if xcode did as well.

        If you write a truly ANSI compatible program then it should compile for you in Borland and xcode. However writing portable code is a bit of an art form in itself, a whole extra set of skills, although the set is not huge and learning it would not be a disadvantage.

        However many Windows based compiler suites provide additional libraries for interfacing with the Windows GUI. MSVC has the MFC, and I believe Borland has it's own class library. These are mostly propriety libraries, that is they do not translate easily or at all to other systems or compilers.


        If your course involves creating command line (console) programs then you should just be able to write to the ANSI standard and have the code compile and work on both systems (taking account of portability issues). If you are trying to create graphic interfaces through Borlands class library then this will almost certianly not translate to your imac and your are stuffed.

        Comment

        Working...