Landon Cunningham wrote:
Ok all the functions that don't seemed to be defined in the
BitmapRsrc.c that are causing the problems are defined as inline
functions in BitmapRsrc.h. I don't know too much about inline
functions and how they work. Should they be implemented in the
BitmapRsrc.c?

How should I be linking these files?

I should have BitmapRsrc.h included in my main program... which leads
to how do I connect BitmapRsrc.c in with everything so I don't get
undefined references to the functions?

Your error messages say you're getting an undefined reference to
PilotMain(), which is not really related to BitmapRsrc stuff.

I think the problem is that you are missing a "-c" option in
the command that builds BitmapRsrc.o out of BitmapRsrc.c.
Without the "-c", the compiler is going to try to take your
C file and produce a complete executable.  That is, without
"-c", the compiler assumes the files named on the command line
are the only source files, and it compiles them, and then links.
In other words, without "-c", it tries to do all the phases,
not just compilation.

You did specify "-o BitmapRsrc.o", but the compiler doesn't care
that you put ".o" on the end:  it will still try to compile and
link and create an executable instead of an object file, and
then name the executable "BitmapRsrc.o".  It doesn't care that
".o" is not normally an extension people put on executables.

So, since you are giving BitmapRsrc.c as the only source file on
the command line, and since BitmapRsrc.c doesn't have a PilotMain()
in it and the linker requires one, you get a link error.

  - Logan

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to