NXP controller Structure access from the object file

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

NXP controller Structure access from the object file

425 Views
Nilkanth_Vyas
Contributor I

Hi Community,

I am trying to merge two simple project in to one master project

Project 1 consist of the Addition function with int return.

Project 2 consist of the Structure variable where i want to store the Output.

In the Master Project i will call the Struct with its instance and variable to store the restul for e.g.

Instance.Result = Add(5,5); //execution in Master project

where....

Instance.Result is declared in the Project 2

Add(a,b) is declared in the Pojet 1

 

I am facing the issue of undefined struct is there any way to perform this operation.

 

 

Thanks & Regards

Nilkanth Vyas

0 Kudos
Reply
3 Replies

394 Views
Nilkanth_Vyas
Contributor I

Hi @VaneB ,

Thanks for the response. I merged two library in single project already i am struggling with structure incorporation in library.

want to define structure in library and then same struct want to access from the other project with inclusion of library but its not supporting.

 

Thanks & Regards

Nilkanth Vyas

 

0 Kudos
Reply

383 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Nilkanth_Vyas 

Could you share how the two projects are linked to include the libraries?

0 Kudos
Reply

404 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Nilkanth_Vyas 

Check the following post. It has information related to the topic that might be useful. 

Link to Files and Folders in Eclipse

Managing Project and Library Dependencies with Eclipse CDT

 

B.R.

VaneB