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,199 次查看
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,095 次查看
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,096 次查看
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