How to include header file path (stdio.h) in codewarrior

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

How to include header file path (stdio.h) in codewarrior

2,715 Views
Sethu123
Contributor I

Hi ,

 

I am using coldfire IDE 5.7.0 version. While compiling a workspace I am getting error "Cannot open stdio.h" .

 

It looks to me , coldfire project , not getting stdio.h file path."C:\Program Files\Freescale\CodeWarrior for ColdFire V6.4\E68K_Support\" . Could you please let me know how I can include this path.I am using MCF 5485 based hardware.For your reference, here I am attching the error log as a jpg file

 

Thanks,

Sethu

Labels (1)
0 Kudos
3 Replies

1,055 Views
CrasyCat
Specialist III

Hello

 

If you create your project using a stationery or the wizard, Access Paths settings should be appropriate.

 

If you need to add the path to your system include files, proceed a follows:

  - Open the Target settings dialog (Press ALT+F7)

  - Go to Target > Access Paths

  - Check System Paths radio button 

  - Then click Add ... The Browse for Folder dialog is opened. 

  - Make sure Compiler Relative is specified as Path Type then browse for the include file directory.

  - Click on OK to close the Browse for Folder dialog.

  - Click on OK to close the Target Settings dialog.

 

Crasycat

0 Kudos

1,055 Views
Sethu123
Contributor I

I am able to compile now. But I am getting following link error.

 

Linker command file not found
Making default command file (see link map)

Link Error   : Undefined : "_start"

 

Could you please guide me how to correct this error.

 

Thanks,

Sethu

0 Kudos

1,055 Views
CrasyCat
Specialist III

Hello

 

You seem to have a big problem with your project.

 

I would recommend you to create a new project using the wizard and then add your own source files to the new project.

 

This will probably save you a lot of time.

 

CrasyCat

0 Kudos