Article View: alt.comp.sys.palmtops.pilot
Article #265Re: HELP! gcc for palm problem
From: Arthur Hagen
Date: Mon, 02 Apr 2001 09:35
Date: Mon, 02 Apr 2001 09:35
43 lines
3466 bytes
3466 bytes
"J.F. Vercueil" <vercueil@iafrica.com> wrote in message news:3AC825D4.B083A01B@iafrica.com... Li Ma wrote: >> Hi there, >> I want to learn Palm programming, so downloaded gcc, PRC-tools from >> Palm.com. I also bought a book called "Palm Programming Bible". I >> installed Cygwin, PRC-Tools and Palm SDK. Then try to compile the Hello >> World example >> from CD come with the book. But I received this error: >> m68k-palmos-gcc -O2 -c hello.c -o hello.o >> cpp: unrecognized option `-remap' >> In file included from hello.c:14: >> /PalmDev/include/PalmOS.h:25: SystemPublic.h: No such file or >> directory >> /PalmDev/include/PalmOS.h:26: UIPublic.h: No such file or directory > > As you can see these two files could not be found. You firstly have to > make sure you have them and secondly make sure they are in your > path..."/etc/resolve.conf". NOOOOO! *cry* *scream!* /etc/resolv.conf (note spelling) is a NETWORK configuration file used for RESOLVING domain names by specifying domain paths, name servers and resolution orders, and has absolutely *NOTHING* to do with include files or compiling. > Otherwise use the -I switch ( I think that is it but check it.) to tell > gcc where to get the header files. That is correct. However, there's a problem before this. The preprocessor gets an option it doesn't understand. To me it looks like it may be calling "cpp" instead of "m68k-palmos-cpp". I also remember from building the Palm gcc development kit myself, that there were a couple of directories that had to be symlinked into the main gcc build directory to avoid some errors and warnings. And - you MUST get the exact correct version of all the different tools - newer versions will not work. Regards, -- *Art
Technical Details
Message-ID:
<AJXx6.78860$Ok4.6407248@news1.rdc1.ct.home.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!hammer.uoregon.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ct.home.com.POSTED!not-for-mailReferences:
<TvSx6.463054$w35.71537328@news1.rdc1.nj.home.com> <3AC825D4.B083A01B@iafrica.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,3ff9c224163e690e X-Google-Attributes: gid11318c,public X-Google-Thread: 11219a,3ff9c224163e690e X-Google-Attributes: gid11219a,public X-Google-Thread: 109e18,3ff9c224163e690e X-Google-Attributes: gid109e18,public X-Google-Thread: 10baa0,3ff9c224163e690e X-Google-Attributes: gid10baa0,public X-Google-Thread: 111acd,3ff9c224163e690e X-Google-Attributes: gid111acd,public X-Google-Thread: 112073,3ff9c224163e690e X-Google-Attributes: gid112073,public X-Google-ArrivalTime: 2001-04-02 02:41:05 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!newsfeed.berkeley.edu!ucberkeley!hammer.uoregon.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ct.home.com.POSTED!not-for-mail From: "Arthur Hagen" <art@broomstick.com> Newsgroups: alt.comp.sys.palmtops.pilot,codewarrior.palm,comp.sys.handhelds,comp.sys.palmtops,comp.sys.palmtops.pilot,gnu.gcc.help References: <TvSx6.463054$w35.71537328@news1.rdc1.nj.home.com> <3AC825D4.B083A01B@iafrica.com> Subject: Re: HELP! gcc for palm problem Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <AJXx6.78860$Ok4.6407248@news1.rdc1.ct.home.com> Date: Mon, 02 Apr 2001 09:35:28 GMT NNTP-Posting-Host: 24.4.195.186 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.ct.home.com 986204128 24.4.195.186 (Mon, 02 Apr 2001 02:35:28 PDT) NNTP-Posting-Date: Mon, 02 Apr 2001 02:35:28 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster