User forums > Using Code::Blocks
about the using fortran in code blocks
(1/1)
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:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
BlueHazzard:
--- Quote --- "setting"->"compiler"
--- End quote ---
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
Navigation
[0] Message Index
Go to full version