473,382 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

compiling c application to prc (palm) tool

Hello all:

I'm trying to edit a little (freeware) palm app to my wishes but run
into problems as soon as re-save the original .c file. During compile
("make" in terminal)I get:
-------------------------------------------------
m68k-palmos-gcc -O2 -c IP1kC.c -o IP1kC.o
IP1kC.c: In function `MenuIsVisible':
IP1kC.c:810: dereferencing pointer to incomplete type
make: *** [IP1kC.o] Error 1
-------------------------------------------------------
Even if I didn't change anything in the .c file!!

If I compile with the original source files thers's no problem, I get
a "fresh" prc app.
Just the fact that the .c file is "refreshed" is creating the problem.

The alterations I make in the .c file all pass correctly....

I'm using PRC tools//Xcode mac OSX

Who can help?

Thanks&regards,
Paul

Jun 29 '07 #1
8 2080
p.*********@gmail.com wrote:
Hello all:

I'm trying to edit a little (freeware) palm app to my wishes but run
into problems as soon as re-save the original .c file. During compile
("make" in terminal)I get:
-------------------------------------------------
m68k-palmos-gcc -O2 -c IP1kC.c -o IP1kC.o
IP1kC.c: In function `MenuIsVisible':
IP1kC.c:810: dereferencing pointer to incomplete type
make: *** [IP1kC.o] Error 1
-------------------------------------------------------
Even if I didn't change anything in the .c file!!

If I compile with the original source files thers's no problem, I get
a "fresh" prc app.
Just the fact that the .c file is "refreshed" is creating the problem.

The alterations I make in the .c file all pass correctly....

I'm using PRC tools//Xcode mac OSX

Who can help?

Thanks&regards,
Paul
In line 810 the program IP1kC.c is dereferencing (i.e.
accessing the fields of a structure/union) to a type
that is not fully defined.

For instance when you write:

struct foo *FooPtr;

WITHOUT defining struct foo, you have an INCOMPLETE definition of
that type.

Solution:

Provide the definition.

P.S. The problem with source code distributing is that you have
to know what you are doing to be useful.

jacob
Jun 29 '07 #2
On 29 jun, 11:13, jacob navia <j...@jacob.remcomp.frwrote:
p.s.bijp...@gmail.com wrote:
Hello all:
I'm trying to edit a little (freeware) palm app to my wishes but run
into problems as soon as re-save the original .c file. During compile
("make" in terminal)I get:
-------------------------------------------------
m68k-palmos-gcc -O2 -c IP1kC.c -o IP1kC.o
IP1kC.c: In function `MenuIsVisible':
IP1kC.c:810: dereferencing pointer to incomplete type
make: *** [IP1kC.o] Error 1
-------------------------------------------------------
Even if I didn't change anything in the .c file!!
If I compile with the original source files thers's no problem, I get
a "fresh"prcapp.
Just the fact that the .c file is "refreshed" is creating the problem.
The alterations I make in the .c file all pass correctly....
I'm usingPRCtools//Xcodemac OSX
Who can help?
Thanks&regards,
Paul

In line 810 the program IP1kC.c is dereferencing (i.e.
accessing the fields of a structure/union) to a type
that is not fully defined.

For instance when you write:

struct foo *FooPtr;

WITHOUT defining struct foo, you have an INCOMPLETE definition of
that type.

Solution:

Provide the definition.

P.S. The problem with source code distributing is that you have
to know what you are doing to be useful.

jacob
Hello Jacob,

Thanks for the info I'll look into that.
The strange thing is that when I compile with the original sources
(and the original .c file) all is fine BUT as soon as I just open
de .c file in Xcode and save it again (without any editing) I'm in
trouble.

You should say nothing changed at all ,except for the creation date of
the file...

If I look into the old and new .c file with hexedit there's no
difference at all.
I'm puzzled.

rgrds!
Paul

Jun 29 '07 #3
On 29 Jun 2007, p.*********@gmail.com wrote:
I'm trying to edit a little (freeware) palm app to my wishes but
run into problems as soon as re-save the original .c file. During
compile ("make" in terminal)I get:
-------------------------------------------------
m68k-palmos-gcc -O2 -c IP1kC.c -o IP1kC.o
IP1kC.c: In function `MenuIsVisible':
IP1kC.c:810: dereferencing pointer to incomplete type
make: *** [IP1kC.o] Error 1
-------------------------------------------------------
Even if I didn't change anything in the .c file!!

If I compile with the original source files thers's no problem, I
get a "fresh" prc app.
Just the fact that the .c file is "refreshed" is creating the
problem.

The alterations I make in the .c file all pass correctly....

I'm using PRC tools//Xcode mac OSX
Could you be having a problem with different end-of-line characters
inserted by your editor confusing the compiler?

Dave

--
D.a.v.i.d T.i.k.t.i.n
t.i.k.t.i.n [at] a.d.v.a.n.c.e.d.r.e.l.a.y [dot] c.o.m
Jun 29 '07 #4
Thanks for thinking with me Dave.
The fact that a re-save of the unaltered .c file doesn't work makes me
think of this too but how do I check or fix this end-of-line problem?

regards,
Paul
On 29 jun, 18:39, David Tiktin <dtik...@nospam.totally-bogus.com>
wrote:
On 29 Jun 2007, p.s.bijp...@gmail.com wrote:
I'm trying to edit a little (freeware) palm app to my wishes but
run into problems as soon as re-save the original .c file. During
compile ("make" in terminal)I get:
-------------------------------------------------
m68k-palmos-gcc -O2 -c IP1kC.c -o IP1kC.o
IP1kC.c: In function `MenuIsVisible':
IP1kC.c:810: dereferencing pointer to incomplete type
make: *** [IP1kC.o] Error 1
-------------------------------------------------------
Even if I didn't change anything in the .c file!!
If I compile with the original source files thers's no problem, I
get a "fresh"prcapp.
Just the fact that the .c file is "refreshed" is creating the
problem.
The alterations I make in the .c file all pass correctly....
I'm usingPRCtools//Xcodemac OSX

Could you be having a problem with different end-of-line characters
inserted by your editor confusing the compiler?

Dave

--
D.a.v.i.d T.i.k.t.i.n
t.i.k.t.i.n [at] a.d.v.a.n.c.e.d.r.e.l.a.y [dot] c.o.m

The fact that a re-save of the unaltered .c file doesn't work makes me
think of this too but how do I check or fix this?

Jun 29 '07 #5
p.*********@gmail.com writes:
I'm trying to edit a little (freeware) palm app to my wishes but run
into problems as soon as re-save the original .c file. During compile
("make" in terminal)I get:
-------------------------------------------------
m68k-palmos-gcc -O2 -c IP1kC.c -o IP1kC.o
IP1kC.c: In function `MenuIsVisible':
IP1kC.c:810: dereferencing pointer to incomplete type
make: *** [IP1kC.o] Error 1
-------------------------------------------------------
Even if I didn't change anything in the .c file!!

If I compile with the original source files thers's no problem, I get
a "fresh" prc app.
Just the fact that the .c file is "refreshed" is creating the problem.

The alterations I make in the .c file all pass correctly....

I'm using PRC tools//Xcode mac OSX
This is somewhat off-topic, but the "make" program avoids compiling
things that don't need to be compiled. For example, suppose you have
a source file "foo.c", to be compiled via "gcc -c foo.c" creating
"foo.o". If the Makefile is set up properly, and if "foo.o" exists
and is newer than "foo.c", then typing "make" won't bother to
recompile "foo.c".

But even if "foo.o" exists, there's no guarantee that "foo.c" is
valid. The make command works by checking dependencies, but it can
only check the dependencies it knows about. In this case, it probably
knows that foo.o depends on foo.c, but it doesn't know (or care) that
foo.o also depends on your compiler. "make clean" *usually* deletes
everything but the source files, but that has to be defined properly.

My guess (and it's nothing more than a guess) is that the distributed
application includes a copy of the generated object file along with
the corresponding source file, perhaps compiled a different compiler
that didn't complain about the error you're seeing. By refreshing the
source file you're forcing it to be recompiled with *your* compiler,
which rejects it.

But that's just one possibility.

I said this is off-topic because "make" is not part of the C
programming language, the topic of this newsgroup. However it's
likely that your underlying problem does have to do with C. But we
can't tell what it is without seeing your source code. Please don't
post all 810+ lines of it here.

Your best bet is probably to contact the original author or to try a
Google search. Failing that, you might be able to fix the software
yourself, or tweak your compiler settings so it compiles. Or you can
ask in comp.sys.palmtops.pilot (providing a pointer to the application
you're trying to build); maybe somebody else has had the same problem.

If you can narrow the problem down to a *small* *complete* program, we
can probably help.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 29 '07 #6
On 29 Jun 2007, p.*********@gmail.com wrote:
The fact that a re-save of the unaltered .c file doesn't work
makes me think of this too but how do I check or fix this
end-of-line problem?
OS X should have a hexdump utility. Or try saving the file with a
different name with your editor and diff the files. I'm not sure what
kind of EOLs m68k-palmos-gcc is expecting, but you can use sed or perl
to convert them to whatever they need to be. If they're not MAC EOLs,
you can add this step part of your make procedure.

Dave

--
D.a.v.i.d T.i.k.t.i.n
t.i.k.t.i.n [at] a.d.v.a.n.c.e.d.r.e.l.a.y [dot] c.o.m
Jun 29 '07 #7
p.*********@gmail.com wrote:
Thanks for thinking with me Dave.
Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or:
<http://www.caliburn.nl/topposting.html>
Jun 29 '07 #8
On 30 jun, 01:29, "Default User" <defaultuse...@yahoo.comwrote:
p.s.bijp...@gmail.com wrote:
Thanks for thinking with me Dave.

Please don't top-post. Your replies belong following or interspersed
with properly trimmed quotes. See the majority of other posts in the
newsgroup, or:
<http://www.caliburn.nl/topposting.html>
Dear All,

I succeeded. Deleted part of the faulty line810 and with trial&error
got it to compile without errors.
Thanks all for thinking with me.

Best regards,
Paul

Jun 30 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: os2 | last post by:
hi are there any java programmer here who work on palm? i would like to know what tool you use? how to programm with java on palm? thanks
4
by: djanvk | last post by:
QUick question: Is it possible to create a palm os program to use on a PDA with python? THanks
2
by: ChronoFish | last post by:
I know this topic comes up every so often - so I thought I would annoy everyone and ask again..... I am looking for a way to write PHP apps on a Palm based computer. Why? Because I like PHP,...
8
by: sea | last post by:
How do I convert an access database application for use with a PDA and hand helds? Thank you very much.
0
by: Mabden | last post by:
Palm C people, I have had a Palm device foist upon me, so I wrote a nice game for it, but I don't know what newsgroup to use to find out info about straight C programming on the Palm. There seem...
6
by: Amjad | last post by:
Can anyone tell me how to read the path value of an already installed and registered application called "Palm Desktop" from the Windows Registry? I just want my VB program to determine where...
6
by: greg.kujawa | last post by:
I have a CRM application that I've written in Ruby that currently runs on Win32 clients as well as Linux ARM clients (Sharp Zaurus PDA's). The application uses Qt for its GUI presentation and...
4
by: Chris Zopers | last post by:
Hello, To prevent my webapplication from compiling when a user first visit's the site, I precompile the application with the aspnet_compiler tool (aspnet_compiler -p physicalOrRelativePath -v /...
2
by: bolineni | last post by:
Hi i developed a windows mobile application in .net cf3.5. when i am trying to deploy this application on palm os device by using "Palm One quick install", it is giving 'Incompatible HandHeld...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.