cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

Anonymous
Not applicable

Health Thermometer compiles ok with Simulate_Temperature_Sensor is set to 0u. When its changed to 1u there are compile errors. See screen shot attached.

0 Likes
Reply
1 Solution
Anonymous
Not applicable

Frederick,

   

The project seems to be missing the link to math.c/.h files, where the above functions in questions are defined. Check if your project has the custom flag set to enable linking to math functions. For this, go to your project name in Workspace -> Right Click on the project name -> Select Build Settings -> Go to Linker -> Command Line -> Add <-lm> to custom flags -> Select OK -> Rebuild project.

   

Where is this project located?

View solution in original post

0 Likes
Reply
2 Replies
Anonymous
Not applicable

Frederick,

   

The project seems to be missing the link to math.c/.h files, where the above functions in questions are defined. Check if your project has the custom flag set to enable linking to math functions. For this, go to your project name in Workspace -> Right Click on the project name -> Select Build Settings -> Go to Linker -> Command Line -> Add <-lm> to custom flags -> Select OK -> Rebuild project.

   

Where is this project located?

View solution in original post

0 Likes
Reply
Anonymous
Not applicable

thank you! i added '-lm' as you suggested and the build completed.

   

Pls see attached for project file location

0 Likes
Reply