Creating libraries

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

Creating libraries

1,411 次查看
juliancox
Contributor V

Hi Jennie.

I am having problems following your instructions for creating a library: -

1. I created a new library project, but there is no "main.c" and there is a Debug folder, which is empty.

2. I have been using Windows on a MAC, using a virtual machine for about 10 years without any problems with CW but I do not have any function keys mapped, so what do I do instead of ALT+F7

3. Your library project was created with the name mylib : MC9S08QG8_library, whereas my library project has the name mylib : Debug

In desperation I tried to edit and re-compile your file mylibrary.c, but nothing changed when ran your test project.

Finally, I have about 10 projects that use various members of the S08 family where approximately 50% of the code is common to all. Do I have to copy the .lib and .h files into each of them? This would be a big problem if or when I need to modify a library function. There would probably be about 12 functions in the library

0 项奖励
回复
1 回复

1,397 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

I tested the sample code, I didn't see any issue. see attached video.

you can change the name of "Debug" based on your requirement. see video as well.

For lib, make sure the extension is .lib

 
 

Have a nice day

Jun Zhang

 

0 项奖励
回复