NXP controller Structure access from the object file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

NXP controller Structure access from the object file

530 次查看
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 项奖励
回复
3 回复数

499 次查看
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 项奖励
回复

488 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @Nilkanth_Vyas 

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

0 项奖励
回复

509 次查看
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