Thread View: alt.comp.sys.palmtops.pilot
5 messages
5 total messages
Started by Li Ma
Mon, 02 Apr 2001 03:39
HELP! gcc for palm problem
Author: Li Ma
Date: Mon, 02 Apr 2001 03:39
Date: Mon, 02 Apr 2001 03:39
20 lines
2346 bytes
2346 bytes
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
make: *** [hello.o] Error 1
This is the first time I use all those tools mentioned above. Anyone had
similiar experience? And anyone can give me some help?
Thanks a lot!
Li
Re: HELP! gcc for palm problem
Author: J.F. Vercueil
Date: Mon, 02 Apr 2001 07:10
Date: Mon, 02 Apr 2001 07:10
88 lines
6166 bytes
6166 bytes
--------------4264BF90E23F3D57EB08BF5C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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".
Otherwise use the -I switch ( I think that is it but check it.) to tell gcc
where to get the header files.
>
> make: *** [hello.o] Error 1
>
> This is the first time I use all those tools mentioned above. Anyone had
> similiar experience? And anyone can give me some help?
>
> Thanks a lot!
>
> Li
--
You see a city in the desert lies
The vanity of an ancient king
The city lies in broken pieces
Where the wind howls and the vultures sing
Sting - Mad About You (Soul Cages)
--------------4264BF90E23F3D57EB08BF5C
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Li Ma wrote:
<blockquote TYPE=CITE>Hi there,
<p>I want to learn Palm programming, so downloaded gcc, PRC-tools from
<br>Palm.com. I also bought a book called "Palm Programming Bible". I installed
<br>Cygwin, PRC-Tools and Palm SDK. Then try to compile the Hello World
example
<br>from CD come with the book. But I received this error:
<p> m68k-palmos-gcc -O2 -c hello.c -o hello.o
<br> cpp: unrecognized option `-remap'
<br> In file included from hello.c:14:
<br> /PalmDev/include/PalmOS.h:25: SystemPublic.h: No
such file or directory
<br> /PalmDev/include/PalmOS.h:26: UIPublic.h: No such
file or directory</blockquote>
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".
<br>Otherwise use the -I switch ( I think that is it but check it.) to
tell gcc where to get the header files.
<blockquote TYPE=CITE>
<br> make: *** [hello.o] Error 1
<p>This is the first time I use all those tools mentioned above. Anyone
had
<br>similiar experience? And anyone can give me some help?
<p>Thanks a lot!
<p>Li</blockquote>
<pre>--
You see a city in the desert lies
The vanity of an ancient king
The city lies in broken pieces
Where the wind howls and the vultures sing
Sting - Mad About You (Soul Cages)</pre>
</html>
--------------4264BF90E23F3D57EB08BF5C--
Re: HELP! gcc for palm problem
Author: 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
Re: HELP! gcc for palm problem
Author: DDR
Date: Mon, 02 Apr 2001 20:00
Date: Mon, 02 Apr 2001 20:00
10 lines
1764 bytes
1764 bytes
In comp.sys.palmtops.pilot Li Ma <li_ma@hotmail.com> wrote: : This is the first time I use all those tools mentioned above. Anyone had : similiar experience? And anyone can give me some help? Wow... you know, installing gcc is not really for beginners... maybe you should get a copy of CodeWarrior and use that? -- DDR
Re: HELP! gcc for palm problem
Author: Rodney
Date: Wed, 04 Apr 2001 00:47
Date: Wed, 04 Apr 2001 00:47
31 lines
2377 bytes
2377 bytes
http://www.massena.com has a Palm section. This section has links to some newsgroups including one on GCC programming. I had some troubles with my GCC setup and got answers in that newsgroup. "Li Ma" <li_ma@hotmail.com> 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 > make: *** [hello.o] Error 1 > >This is the first time I use all those tools mentioned above. Anyone had >similiar experience? And anyone can give me some help? > >Thanks a lot! > >Li > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads