How to create and link .c and .h file to my existing program

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

How to create and link .c and .h file to my existing program

2,997件の閲覧回数
akr
Contributor I

I am using code warrior for hc12. I want create new .c and .h file so that i can link with my main.c Can some body guide me how to do it.

ラベル(1)
タグ(1)
0 件の賞賛
返信
5 返答(返信)

1,374件の閲覧回数
CrasyCat
Specialist III

Hello

 

If you want to add an existing source file to your project:

  - Start IDE

  - Open your project

  - Click with right mouse button in the .mcp window and select Add File

  - Browse for the source/header file you want to add

  - Click Open to add the file to the project.

     The path to the location of this source file will be automatically added to the project access paths


If you want to create a brand new source file from scratch:

  - Start IDE

  - Open your project

  - Select File -> New Text File

  - Select File -> Save As

  - Browse for the location where you want to place the source file and save it

  - Then make sure you set the focus on the new file and select Project -> Add <fiename> to project (Where <filename> stands for the newly created source file.


CrasyCat

 

0 件の賞賛
返信

1,374件の閲覧回数
thinkchip
Contributor II

Hi, I want to know if codewarrior special edition 6.2 have a number restrictions in add files?

regards

0 件の賞賛
返信

1,374件の閲覧回数
J2MEJediMaster
Specialist I

CodeWarrior Special Editions have a 32-file limit.

 

---Tom

 

0 件の賞賛
返信

1,374件の閲覧回数
stanish
NXP Employee
NXP Employee

Hello,

 

the IDE limitation was removed since v6.1 if I'm not wrong. Special Edition license for CW for MCUs v6.2 does not limit the number of files within project.

 

Stanish

Message Edited by stanish on 2009-06-22 02:18 PM
0 件の賞賛
返信

1,374件の閲覧回数
J2MEJediMaster
Specialist I

I have been battling a lot of old CodeWarrior license problems and keep running into that 32-file limit. However, so there's no mistake, the latest Special Editions of CodeWarrior usually have a 32 KB code size limit.

 

Or, to put it another way: I am wrong on the file limit, and stanish is right.

 

---Tom

0 件の賞賛
返信