User forums > Using Code::Blocks
pgf90-Error-Unknown switch: -Wall
(1/1)
simonchang:
Debug in tem3dfdtd (compiler: PGI Fortran ACC)---------------
pgf90.exe -Wall -g -acc -Minfo -Mcuda=cuda8.0 -Minline,reshape -c F:\WorkSpace\tem3d\tem3dfdtd\lib\allocatememory.f90 -o obj\Debug\lib\allocatememory.o
pgf90-Error-Unknown switch: -Wall
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
None of the programs (even very simple ones) can be debugged
stahta01:
Remove the option not supported by your toolchain.
Remember to look in the compiler other/extra setting area.
Tim S.
simonchang:
--- Quote from: stahta01 on January 30, 2018, 06:19:00 am ---Remove the option not supported by your toolchain.
Remember to look in the compiler other/extra setting area.
Tim S.
--- End quote ---
Sorry, I have already tried this. And -wall always appears, and if i select it, there will be two -Wall s in the command lime.
BlueHazzard:
Possible locations for this flag:
1) Global compiler settings: Settings->Compiler->Select the fortran compiler from the drop down menu on the topl->Compiler settings->Compiler flags
2) Global compiler settings: Settings->Compiler->Select the fortran compiler from the drop down menu on the top->Compiler settings->Other compiler options
3) Global project settings: Project->Build options->Select the project name on the left tree control->Compiler settings->Compiler flags
4) Global project settings: Project->Build options->Select the project name on the left tree control->Compiler settings->Other compiler options
5) Build Target settingss: Project->Build options->Select the target name on the left tree control->Compiler settings->Compiler flags
6) Build Target settings: Project->Build options->Select the target name on the left tree control->Compiler settings->Other compiler options
How is the command line generated:
1) Global compiler settings + Project compiler settings + Target compiler settings
If you still get the error: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
And probably post the project file too
simonchang:
--- Quote from: BlueHazzard on January 30, 2018, 12:09:09 pm ---Possible locations for this flag:
1) Global compiler settings: Settings->Compiler->Select the fortran compiler from the drop down menu on the topl->Compiler settings->Compiler flags
2) Global compiler settings: Settings->Compiler->Select the fortran compiler from the drop down menu on the top->Compiler settings->Other compiler options
3) Global project settings: Project->Build options->Select the project name on the left tree control->Compiler settings->Compiler flags
4) Global project settings: Project->Build options->Select the project name on the left tree control->Compiler settings->Other compiler options
5) Build Target settingss: Project->Build options->Select the target name on the left tree control->Compiler settings->Compiler flags
6) Build Target settings: Project->Build options->Select the target name on the left tree control->Compiler settings->Other compiler options
How is the command line generated:
1) Global compiler settings + Project compiler settings + Target compiler settings
If you still get the error: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
And probably post the project file too
--- End quote ---
Problem solved!
Thank you~
Navigation
[0] Message Index
Go to full version