how to build the program that generated by MBD toolbox in the S32DS ???

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

how to build the program that generated by MBD toolbox in the S32DS ???

ソリューションへジャンプ
1,381件の閲覧回数
642142357
Contributor III

build the program that generated by MBD toolbox in the S32DS,show errors as follow,how to resolve it???thks

constantinrazvan.chivukhumphriMandardhavalRHinnenjimtrudeau

pastedImage_1.png

ラベル(2)
1 解決策
1,277件の閲覧回数
paulvlase
NXP Employee
NXP Employee

Hi 642142357@qq.com‌,

The S32 Design Studio ProjectInfo.xml importer doesn't recognize the -lm flag from the linker options and thus doesn't add the C standard math library to the imported S32 Design Studio project.

To fix those build errors you have to add the math library by yourself by following the next steps:

1. Right click on your S32 Design Studio project and open the project's Properties.

pastedImage_2.png

2. Go to C/C++ Build > Settings > Standard S32DS C Linker > Libraries.

3. Press the Add button pointed by the yellow arrow to add the standard C math library, called m. Press the OK button at the end to save your changes.

pastedImage_1.png

4, Build the project.

Regards,

Paul

元の投稿で解決策を見る

1 返信
1,278件の閲覧回数
paulvlase
NXP Employee
NXP Employee

Hi 642142357@qq.com‌,

The S32 Design Studio ProjectInfo.xml importer doesn't recognize the -lm flag from the linker options and thus doesn't add the C standard math library to the imported S32 Design Studio project.

To fix those build errors you have to add the math library by yourself by following the next steps:

1. Right click on your S32 Design Studio project and open the project's Properties.

pastedImage_2.png

2. Go to C/C++ Build > Settings > Standard S32DS C Linker > Libraries.

3. Press the Add button pointed by the yellow arrow to add the standard C math library, called m. Press the OK button at the end to save your changes.

pastedImage_1.png

4, Build the project.

Regards,

Paul