I'm getting this common link error : 

MyApp.cpp : foo() referenced from AppHandleEvent() is
undefined

Most of the posts and resolutions I've found on it
state that problem is the function not found is being
defined as static. However, my function is already not
defined as static, and is properly prototyped in the
header file which is included in the file where the
link error is occurring.

I'm using the pattern of having a FormName.c file for
each form, a main MyApp.cpp file where the app starts,
and a MyApp.h file with function prototypes for all
the form files. The MyApp.h is included in all the
FormFoo.c files and the MyApp.cpp file. This worked
fine for my first project.

However, for my 2nd project, I created it as a
Standard C++ project, so my MyApp.cpp is (obviously) a
.cpp file instead of a .c file. Could this have an
impact on this link error?

Thanks,

Brian


        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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

Reply via email to