News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

about the using fortran in code blocks

Started by computerlion, December 17, 2019, 03:32:21 AM

Previous topic - Next topic

computerlion

when I use "sind" function in gfortran, and build the program in codeblocks, the build messages shows undefined reference to "sind". I found that "sind" function is a GNU extension, should be enabled with "-fdec-math", how can I set "-fdec-math" in code blocks? I added a compiler flag in "setting"->"compiler", but it still does not work. (I use gcc v8.1.0.)


BlueHazzard

Quote"setting"->"compiler"
This is the wrong place. This is the place for global compiler flags. The right place would be
Project->Build options->Select the project name on the left->Compiler settings