PSoC Creator 3.3 SP1 CYBLE-014005-00 Health Thermometer Does not compile with Simulate_Temperature_Sensor equals 1u

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
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
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
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?

0 Likes
Anonymous
Not applicable

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

   

Pls see attached for project file location

0 Likes