Code::Blocks

User forums => Using Code::Blocks => Topic started by: computerlion on December 17, 2019, 03:32:21 am

Title: about the using fortran in code blocks
Post by: computerlion on December 17, 2019, 03:32:21 am
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.)
Title: Re: about the using fortran in code blocks
Post by: BlueHazzard on December 17, 2019, 12:37:05 pm
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Title: Re: about the using fortran in code blocks
Post by: BlueHazzard on December 17, 2019, 12:38:09 pm
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