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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
285 Views
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

Labels (2)
1 Solution
181 Views
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

View solution in original post

1 Reply
182 Views
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

View solution in original post