How to create own header file in codewarrior

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to create own header file in codewarrior

ソリューションへジャンプ
4,542件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 解決策
2,908件の閲覧回数
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 件の賞賛
返信
8 返答(返信)
2,908件の閲覧回数
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 件の賞賛
返信
2,908件の閲覧回数
chetu
Contributor I

i want library function

0 件の賞賛
返信
2,909件の閲覧回数
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 件の賞賛
返信
2,908件の閲覧回数
chetu
Contributor I

Thanks for helping me

 

I got it

 

I want to creat  library files using libmaker

 

0 件の賞賛
返信
2,907件の閲覧回数
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 件の賞賛
返信
2,907件の閲覧回数
chetu
Contributor I

Thanks for reply

 

ver no is 5.9.0 & for HCS 12

0 件の賞賛
返信
2,907件の閲覧回数
kef
Specialist I

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

5.9.0 is version of IDE

0 件の賞賛
返信
2,907件の閲覧回数
chetu
Contributor I

HCS 12 3.1

0 件の賞賛
返信