From: Scott E. <sco...@gm...> - 2011-05-02 09:01:35
|
google 'extern C' On 5/2/11, joe joe <joe...@qi...> wrote: > > > I built a shared library for some API functions (C files) and compiled them > with gcc. Now I'm writing a c++ application (compiling with g++) and want > to link my C API shared library and be able to use it from my application. > Is this possible? At first instance, it's not quite working for me. I was > able to link my shared lib just fine with a C application but got an > "undefined reference to `apiFunction()'" error when attempting to do it with > g++. Just want to see if anyone has any insight on this subject and make > sure this mixi is even is allowed. > -- > View this message in context: > http://old.nabble.com/gcc-shared-library-for-g%2B%2B-application-tp31520725p31520725.html > Sent from the Gumstix mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |