On Wed, 26 Apr 2000 12:06:10 -0700, John Marshall wrote:
>But multiapp is written for the earlier SDKs. See
> http://www.palm.com/devzone/docs/palmos35.html#SDK+include+files
>(The short answer is to replace the two include lines by just "#include
><PalmOS.h>".)
Ah! That helps, but I still need to put in a whole whack of include paths,
and I'm getting several errors that seem to do with big changes between the
API I'm using and the API multiApp was written for (things like DWORD changed
to UInt32).
I've also got a hello.c (listed below - modified from source I got from the
Linux Palm development page) that eventually gives me what looks like an
assembler error:
bash-2.02$ make
m68k-palmos-gcc -O2 -I/usr/local/palmdev/include
-I/usr/local/palmdev/include/co
re/system -I/usr/local/palmdev/include/core/ui
-I/usr/local/palmdev/include/core
-I/usr/local/palmdev/include/core/hardware -c hello.c -o hello.o
as: unrecognized option `-no-68881'
make: *** [hello.o] Error 1
bash-2.02$
The makefile I used doesn't use this `-no-68881' option -- where is it coming
from?
>SDK is better, and since the 3.5 SDK works better with GCC, I would
>recommend that you stick with the 3.5 SDK.
Thanks... I'll do that.
Cheers,
Sean
/******************SNIP*************************/
#include <PalmOS.h>
// ---------------------------------------------------------------------
// PilotMain is called by the startup code and implements a simple event
// handling loop.
// ---------------------------------------------------------------------
UInt32 PilotMain( UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags )
{
EventType event;
if (cmd == sysAppLaunchCmdNormalLaunch)
{
// Display a string.
WinDrawChars( "Hello, world!", 13, 55, 60 );
// Main event loop:
do
{
// Doze until an event arrives.
EvtGetEvent( &event, evtWaitForever );
// System gets first chance to handle the event.
SysHandleEvent( &event );
// Normally, we would do other event processing here.
// Return from PilotMain when an appStopEvent is received.
}
while (event.eType != appStopEvent);
}
return;
}
/******************SNIP*************************/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html