Hello all, This is probably slightly off-topic given that I am trying to program for the Palm OS on my linux box and not program directly for linux. But since it does involve C and the basics of finding libraries and includes on a linux system, I am turning to you for help. I am cross-posting this to linux-c-programming, linux-newbie and suse-linux-e in the hope of casting as wide a net as possible. I apologize to those of you who may get more than one copy of this. Some system details: SuSE Linux 7.2 (update) gcc-2.95.3 PalmOS SDK 3.5 prc-tools-2.0.92-1 (loaded using the rpm from sourceforge.net) I am trying to compile the hello.c program from chapter 4 of the Palm OS Programming Bible written by Lonnon R. Foster and published by IDG Books. When I try to compile without the -palmos3.5 option to m68k-palmos-gcc, here is what I get: tschulze:~/palm/projects/hello> m68k-palmos-gcc -o hello hello.c -palmos3.5 /tmp/ccFo5zUq.o(.text+0x33c):hello.c: undefined reference to `FrmSetHandler' collect2: ld returned 1 exit status tschulze:~/palm/projects/hello> If I do it without the -palmos3.5 option the output is almost identical: tschulze:~/palm/projects/hello> m68k-palmos-gcc -o hello hello.c /tmp/cc2DkXlz.o(.text+0x33c):hello.c: undefined reference to `FrmSetHandler' collect2: ld returned 1 exit status tschulze:~/palm/projects/hello> If I substitute -palmos*.* for -palmos3.5, I get this: tschulze:~/palm/projects/hello> m68k-palmos-gcc -o hello hello.c -palmos*.* sdkfind: warning: 'sdk-*.*' not found in /opt/palmdev:/usr/local/palmdev In file included from hello.c:1: /usr/local/palmdev/sdk-3.5/include/PalmOS.h:24: PalmTypes.h: No such file or directory /usr/local/palmdev/sdk-3.5/include/PalmOS.h:25: SystemPublic.h: No such file or directory /usr/local/palmdev/sdk-3.5/include/PalmOS.h:26: UIPublic.h: No such file or directory tschulze:~/palm/projects/hello> Using find, I can show that these header files are, in fact, installed: tschulze:~/palm/projects/hello> find /usr/local/palmdev -name PalmTypes.h -print /usr/local/palmdev/sdk-3.5/include/PalmTypes.h tschulze:~/palm/projects/hello> find /usr/local/palmdev -name SystemPublic.h -print /usr/local/palmdev/sdk-3.5/include/Core/System/SystemPublic.h tschulze:~/palm/projects/hello> find /usr/local/palmdev -name UIPublic.h -print /usr/local/palmdev/sdk-3.5/include/Core/UI/UIPublic.h tschulze:~/palm/projects/hello> My palmdev directory is set up as shown on the Palm OS page that walks users through the installation of the SDK, PilRC and the prc-tools packages. Specifically, it looks like this: /usr/local/palmdev/sdk --> link to /usr/local/palmdev/sdk-3.5 /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 /usr/local/palmdev/sdk-3.5/include/Dynamic /usr/local/palmdev/sdk-3.5/lib /usr/local/palmdev/sdk-3.5/lib/m68k-palmos-coff So, I am guessing this problem is due to my libraries path not being set up properly. PalmOS.h is found, but not its includes. Can you offer any suggestions on how I can fix this? I added /usr/local/palmdev/sdk/lib to /etc/ld.so.conf and then ran ldconfig, but that didn't get it. What else can I try? BTW, a version of a hello world program that I found at Jim Weller's Linux Palm Developer's Quick Start Guide http://www.jimweller.net/jim/palmdevqs/ does compile and even runs on the Palm Emulator. So, the compiler works when it can find what it is looking for. TIA, Sean -- Theo. Sean Schulze theo.schulze@myokay.net "[T]he key to maintaining leadership in the economy and the technology that are about to emerge is likely to be the social position of knowledge professionals and social acceptance of their values." -- Peter Drucker