(Actually it's not a prc-tools problem, and it's not Windows-specific
either :-))
Roger Chaplin writes:
> The result is that if I do 'ls /PalmDev/sdk' I get
>
> CodeWarrior Support Installer Palm OS Extras
> Constructor Overlay Tools PalmDebugger
> Documentation PQA Builder
> Examples Palm OS 3.5 Support
Nope. You want to get just "include" and "lib".
I don't know if the alpha 3.5 SDK up on the provider pavilion has these
instructions in it yet, but the final 3.5 SDK will contain the following
instructions for people who need to add the 3.5 SDK to prc-tools manually:
* newer prc-tools, based on GCC 2.95.2
You need to add the header files and libraries to your PalmDev directory,
which (unless you have configured the tool chain differently) is
`/usr/local/palmdev' on Unix and `C:\PalmDev' on Windows.
1. In `/usr/local/palmdev' (or `C:\PalmDev'), create a directory `sdk-3.5'
containing `include' and `lib' subdirectories.
2. Copy the contents of `Palm OS 3.5 Support/Incs' to the new `include'
directory.
3. Copy the contents of `Palm OS 3.5 Support/GCC Libraries' to the new
`lib' directory.
4. You can now compile your programs using 3.5 headers and libraries by
adding a `-palmos3.5' option to your compile and link commands.
$ m68k-palmos-gcc -O2 -o hello hello.c -palmos3.5
5. To use the 3.5 SDK by default, change the `sdk' symbolic link in PalmDev.
$ cd /usr/local/palmdev [or wherever your PalmDev is]
$ rm sdk
$ ln -s sdk-3.5 sdk
The resulting directory structure should look like this:
/usr/local/palmdev/sdk-3.5
/usr/local/palmdev/sdk-3.5/include
/usr/local/palmdev/sdk-3.5/include/Core
/usr/local/palmdev/sdk-3.5/include/Core/System etc
/usr/local/palmdev/sdk-3.5/include/Dynamic etc
/usr/local/palmdev/sdk-3.5/lib
/usr/local/palmdev/sdk-3.5/lib/m68k-palmos-coff
> Interestingly, I am also including <stddef.h> and
> the compiler does not complain about that one.
This isn't surprising, because this header file isn't part of any Palm OS
SDK. Rather, it's a header file supplied by GCC, and so it's off down in
one of GCC's include directories instead of being in the PalmDev tree.
Use `m68k-palmos-gcc -H' if you're curious.
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html