Build and run specific folder or files in project directory

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

Build and run specific folder or files in project directory

跳至解决方案
1,535 次查看
fireflies_at_night
Contributor II

Hi,
Quite new to MCUExpresso and still learning the ropes.

I want to run a specific directory - in this case the read_accel_value_transfer example code - and not build the rest. Observed two things:

1. This folder does not have the little blue C on the folder icon (meaning this folder is not included in build).

2. Second, when I hash the int main (void) code in source so I can run the int main code in the read_accel_value_transfer folder, I am getting this error. 

fireflies_at_night_1-1659793134525.png

 

fireflies_at_night_0-1659792897961.png 

Could anyone help on this?

Thank you!

 

0 项奖励
回复
1 解答
1,522 次查看
ErichStyger
Senior Contributor V

There are many different ways you could do this in Eclipse. What I recommend is the usage of build configurations with 'Exclude from build':

a) create one or more build configurations (see https://mcuoneclipse.com/2016/05/19/build-configurations-in-eclipse/ )

b) then exclude the files you don't want to be part of the build configuration, see https://mcuoneclipse.com/2014/07/22/exclude-source-files-from-build-in-eclipse/

 

I hope this helps,

Erich

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,523 次查看
ErichStyger
Senior Contributor V

There are many different ways you could do this in Eclipse. What I recommend is the usage of build configurations with 'Exclude from build':

a) create one or more build configurations (see https://mcuoneclipse.com/2016/05/19/build-configurations-in-eclipse/ )

b) then exclude the files you don't want to be part of the build configuration, see https://mcuoneclipse.com/2014/07/22/exclude-source-files-from-build-in-eclipse/

 

I hope this helps,

Erich

0 项奖励
回复
1,503 次查看
fireflies_at_night
Contributor II

Thanks Eric!

Point b) resolved it for me. I'll give a shot to a) as well.

 

Regards,

John

0 项奖励
回复