Path: chuka.playstation.co.uk!news From: Markku Kaurila Newsgroups: scea.yaroze.programming.codewarrior Subject: C++ will not link! Date: Thu, 23 Sep 1999 08:37:44 +0300 Organization: Nokia Lines: 38 Message-ID: <37E9BCA8.E3A5D81D@nokia.com> NNTP-Posting-Host: nas-dhcp-88-197.trs.ntc.nokia.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.06 [en] (WinNT; I) Hi, Has anyone actually managed to create a C++ program for Yaroze on a Mac? I have spent two nights now trying it and have not suceeded yet. I started doing exactly as was explained in the instructions in C++Support Readme.txt. I then tried to compile the 'Learn' example found in the 'Unsupported' folder (PC side of the CodeWarrior CD, that is. This example was lacking from the Mac version of 'Unsupported'). First it did not compile. I finally found that '__rts_info_t__.h' file was different in the MAC side of the CD, compared to the PC version. The Mac '__rts_info_t__.h' had: SECTION extern void (*__static_init)(void); and the PC '__rts_info_t__.h' had: SECTION extern void (*__static_init[])(void); When I corrected the line as it is in the PC version, the 'Learn' project compiled finally but would not link! I get the following error: Link Error : Incorrect ELF header in file RTS_MWC++_le.lib. Possibly wrong endianess of the header. Can anyone help me? I would so much more like to use C++ since I use it at work every day. Besides an object oriented language fits so well with game programming. Regards, Markku Kaurila P.S. Since we also have a PC at home, I then did exactly the same there - and surprise, surprise - the learn project compiled and linked fine.