Link in files not found problem

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

Link in files not found problem

跳至解决方案
669 次查看
Jim_P
Contributor III

This is driving me up the wall,  I am using CW10.1, Windows 7 64 bit

 

I have a commom monitor that is used in many projects.

so want to reference the Monitor files in a commom refereced directory.

So when I add the files to the project, I select the option to link the files to the project

thus if I need to enhance or correct something in the monitor the changes will flow across all projects

This seems to work just fine with the C files.

 

but linking in the header files for the related C files - - - I can open and edit the file but

when compiling, these header files are not found.

 

This seems to only be a problem with linked C files

Help this is driving me up the wall.

 

Jim P

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
520 次查看
CrasyCat
Specialist III

Hello

 

In order to allow the compiler to find the header files, the paths to the header files needs to be added to the include file paths.

 

If you are building for HCS08 MCU, these are specified in C/C++ Build > Settings > HC08 Compiler > Input > Include File Path edit box.

If you are building for Coldfire MCU these are specified in C/C++ Build > Settings > ColdFilre Compiler > Input > User Path

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
1 回复
521 次查看
CrasyCat
Specialist III

Hello

 

In order to allow the compiler to find the header files, the paths to the header files needs to be added to the include file paths.

 

If you are building for HCS08 MCU, these are specified in C/C++ Build > Settings > HC08 Compiler > Input > Include File Path edit box.

If you are building for Coldfire MCU these are specified in C/C++ Build > Settings > ColdFilre Compiler > Input > User Path

 

CrasyCat

0 项奖励
回复