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.