Loading...
 
Skip to main content

System Workbench for STM32


Invalid conversion and -fpermissive flag

I am getting bunch of errors of type "invalid conversion from int to XXX" -fpermissive

so can I remove this error by using that -fpermissive flag? and if yes where should I enter it in IDE?

Hi r2com,

Here the documentation about the permissive flag:
-fpermissive
Downgrade some diagnostics about nonconformant code from errors to warnings. Thus, using -fpermissive will allow some nonconforming code to compile.

I advise you to fix the bunch of errors instead of using the fpermissive flag.
If you really want to use it, go to the build property of your project -> Settings -> "Tool Settings" tab -> MCU GCC Compiler -> Miscellaneous -> Other flags

BR,
Elliot


hm ok, i'll fix other stuff then before coming back here to this error