This should do it for you

extern "C" {
#include "mycfile.h"
}

-----Original Message-----
From: Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 12:36 PM
To: Palm Developer Forum
Subject: how to link a "C" file in the project


hi,
  I am facing probelm in adding new .c files to the
project. i have created a project with a multi segment
app. i have created some set of .c and .h files in the
.c files i have written some functions and .h files
have the prototypes of the functions. I have added
this to the project and compiling. when i am
running(making) the application it is giving linker
error saying that "The function is undefined". I have
the prototype of the function in the header file and
including the main file. can any hlp me how to link to
the source file.

thanks
srini

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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

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

Reply via email to