Renaming to .cpp makes gcc compile this file as C++ (regardless if you're
using C++ and / or C constructs). Include standard C statements in
extern "C" {
// any C stuff
}
This is especially important for all includes like #include <PalmOS.h>.
Not using extern "C" will lead to linker errors.
Kind regards, Harald
-
[EMAIL PROTECTED]
http://www.gps-laptimer.de
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Sonntag, 22. Juli 2007 13:33
To: Palm Developer Forum
Subject: re: Trouble with classes
Can I just change the extension of my MainApp.c to MainApp.cpp, or are there
any changes I need to make to the program itself?
--
For information on using the ACCESS Developer Forums, or to unsubscribe,
please see http://www.access-company.com/developers/forums/
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/