Hi!
I have 2 projects, in which I would like to use the floor
function from AsMath
library. While it works as intended for one project, as soon as I import the library to the another project, I get errors as attached in the screenshot. The previous declarations seem to be system-wide, but somehow only one of the projects is affected by it. Any clues to what’s happening and what’s the solution?
If you are using C tasks and using standard C functions there is a namespace collision. You should use the AsBrMath library instead.
For new applications, functions/function blocks from the AsBrMath library should be used. The AsMath library is only available to ensure compatibility.
The range of functions in the AsMath library have been migrated to the AsBrMath library.
The migration should be painless with the Find and Replace in files function to replace all the calls with AsBrMath versions, which have brm prefixes
for example:
floor → brmfloor
Thanks @tommi.piiparinen . That solves the issue.
But just wondering why no error is shown when building the other project.