Are you sure you're getting the right .h file? I show FldReplaceText in only the 6.1 SDK, not the 5.4 SDK.
I'd suggest that you check your includes for the 6.1 SDK. -E > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sony Santos > Sent: Friday, December 03, 2004 12:53 PM > To: Palm Developer Forum > Subject: I'm getting "undefined reference" to simple palmOS functions! > > Hello, > > I'm using the Palm OS Developer Suite and I'm getting > "undefined reference" to "FldReplaceText" and to "WinInvalidateRect". > > I have already #included <Field.h> and <Window.h>, but the > error still persists. > > I am using a single .c file in a 68K Application Project. The > help files doesn't explain undefined references. > > I looked for "undefined references" in this forum, and I have > found some tricks, like using managed projects and static > functions, but it doesn't work and I don't know what I must do now. > > Here is an error message: > > > make all > > m68k-palmos-gcc -c src/AppMain.c -Isrc/ -palmos5r4 > -D__PALMOS__=0x05000000 -O0 -g -o Debug/AppMain.o > > ...Linking... > > m68k-palmos-gcc -o Debug/Economico Debug/AppMain.o -g > > Debug/AppMain.o(.text+0x3f6): In function `EncheComExemplos': > > AppMain.c:197: undefined reference to `FldReplaceText' > > collect2: ld returned 1 exit status > > make: *** [Debug/Economico] Error 1 > > Thank's in advance for help. > > Sony Santos > -- > For information on using the Palm Developer Forums, or to > unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
