Connecting Tech Pros Worldwide Forums | Help | Site Map

Borland vs Xcode

pdring's Avatar
Newbie
 
Join Date: Oct 2007
Location: CORNWALL, ENGLAND
Posts: 15
#1: Oct 6 '07
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.

Member
 
Join Date: Jul 2007
Location: The Earth
Posts: 115
#2: Oct 6 '07

re: Borland vs Xcode


Quote:

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?
Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,195
#3: Oct 6 '07

re: Borland vs Xcode


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.
pdring's Avatar
Newbie
 
Join Date: Oct 2007
Location: CORNWALL, ENGLAND
Posts: 15
#4: Oct 9 '07

re: Borland vs Xcode


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!

Quote:

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.

Reply