Function access from old project to new project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Function access from old project to new project

808 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by omprakash on Wed Feb 05 00:26:11 MST 2014
Hi,

I am using LPCXpresso IDE. I have Three C projects i.e. CMSISv2p00_LPC11xx_lib, Project_old & Project_new in same work space.
CMSISv2p00_LPC11xx project acts as a library for Project_old and I am able build  Project_Old project successfully.

Now I have created new C project i.e. Project_new in same work space. Now my main task is to access existing functions from Project_old project to newly created project Project_new without changing Project_old functions.

I tried but not got success, please guide me. waiting for your response.
Thank you.

0 Kudos
Reply
3 Replies

799 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Feb 06 01:29:16 MST 2014
Read...
http://www.lpcware.com/content/faq/lpcxpresso/linker-undefined-reference

and more generally…
http://www.lpcware.com/faq/c-library

Regards,
LPCXpresso Support
0 Kudos
Reply

799 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by omprakash on Wed Feb 05 23:29:08 MST 2014
thank you for quick reply, I have created that project as static library, but now i am getting following error while building...
Please find error which occurs after building the project even though I have included stdio.h file. If I remove the printf then project will build fine
please guide me waiting for your reply. Thank you
0 Kudos
Reply

799 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Feb 05 04:51:22 MST 2014
The way I would do this would be to create a new library project and move the files containing the functions you want to share into the library project.

http://www.lpcware.com/content/faq/lpcxpresso/creating-linking-library-projects

Regards,
LPCXpresso Support
0 Kudos
Reply