How to create own header file in codewarrior

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

How to create own header file in codewarrior

Jump to solution
2,877 Views
chetu
Contributor I

Hi friends

 

please help me!!!!!!!!!!!

 

1)  I want to create header file (library files)

2) I want to remove sartup and main function

 

 

thanks in advance

Labels (1)
0 Kudos
1 Solution
1,243 Views
CrasyCat
Specialist III

Hello

 

Can you please be more specific and explain what you are looking for?

 

I do not understand the question here.

 

CrasyCat

View solution in original post

0 Kudos
8 Replies
1,243 Views
CrasyCat
Specialist III

Hello

 

  1- In order to create a header file:

      - Click on the first icon to the left (Tooltips shows "New Text File")

      - Select File -> "Save As".

      - Browse for the location where you want to place your header file

      - Specify the file name (for instance my file.h)

      - Select "Project" -> "Add File to Project". This will add your header file to the project.

 

2- Remove startup and main function

    To remove the startup function add an INIT command to your .prm file. For instance

        INIT _myStart

    where function _myStart is your application entry point.

If you specify your own entry point, you do not need a main function any more.

 

If you remove the startup code, make sure all global variables are initialized through assignment in your application.

You should not define global variables with an initializer (like int myGlobal = 2:smileywink:  if you remove startup code.

 

CrasyCat

0 Kudos
1,243 Views
chetu
Contributor I

i want library function

0 Kudos
1,244 Views
CrasyCat
Specialist III

Hello

 

Can you please be more specific and explain what you are looking for?

 

I do not understand the question here.

 

CrasyCat

0 Kudos
1,243 Views
chetu
Contributor I

Thanks for helping me

 

I got it

 

I want to creat  library files using libmaker

 

0 Kudos
1,243 Views
CrasyCat
Specialist III

Hello

 

- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
To retrieve that info:
- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.

 

CrasyCat

0 Kudos
1,243 Views
chetu
Contributor I

Thanks for reply

 

ver no is 5.9.0 & for HCS 12

0 Kudos
1,243 Views
kef
Specialist I

- CodeWarrior version used is displayed on top in the Installed Products dialog.

5.9.0 is version of IDE

0 Kudos
1,243 Views
chetu
Contributor I

HCS 12 3.1

0 Kudos