CW10 - How can I add folders for header files and code files?

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

CW10 - How can I add folders for header files and code files?

跳至解决方案
900 次查看
Anselmo
Contributor I

I tried clicking right on "Project panel" -> New -> Folder and , after creating it I moved a header file, but it didn't work.

I tried also from "File" menu -> New-> Source Folder. But it didn't work

标签 (1)
标记 (1)
0 项奖励
1 解答
412 次查看
BlackNight
NXP Employee
NXP Employee

You need to make sure that the compiler can find the header (and source) files. If you add a new folder, you need to tell this the compiler.

You can find the settings in

Project > Properties > C/C++ Build > Settings > ColdFire Compiler > Input

resp.

Project > Properties > C/C++ Build > Settings > HCS08 Compiler Input

 

There you find settings for include file path (both system and user includes).

 

Hope that helps,

BK

在原帖中查看解决方案

0 项奖励
1 回复
413 次查看
BlackNight
NXP Employee
NXP Employee

You need to make sure that the compiler can find the header (and source) files. If you add a new folder, you need to tell this the compiler.

You can find the settings in

Project > Properties > C/C++ Build > Settings > ColdFire Compiler > Input

resp.

Project > Properties > C/C++ Build > Settings > HCS08 Compiler Input

 

There you find settings for include file path (both system and user includes).

 

Hope that helps,

BK

0 项奖励