you must name file .cpp or .cc so it will be recognized as c++ source
or alternatively you must use m68k-palmos-g++ as compiler instead of
m68k-palmos-gcc
Anoop wrote:
> Hi all..
> Am a newbie in palm development. Am using Palm Developer Suite
> for application development. I need to add a new claa to the existing
> poject. I created a new class through File->New->Class. After adding the
> class i include the header into the main class. After compiling i get
> this error
>
> m68k-palmos-gcc -c src/AppMain.c -Isrc/ -palmos5r4
> -D__PALMOS__=0x05000000 -O0 -g -Wall -o Debug/AppMain.o
> In file included from src/AppMain.c:14:
> src/Test.h:5: parse error before `Test'
> src/Test.h:6: syntax error before `{'
> make: *** [Debug/AppMain.o] Error 1
>
> Test is the class i created.. What could be the reason behind this.
>
> Thanks,
> Anoop
>
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/