Come posso verificare, in Code :: Blocks, quale versione del compilatore GCC sto usando?
Come posso verificare, in Code :: Blocks, quale versione del compilatore GCC sto usando?
Risposte:
Esegui gcc --version, il risultato sarà qualcosa del genere:
gcc (GCC) 4.4.0
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Se questo non funziona potresti non avere PATHcorrettamente configurato il compilatore (credo che questo sia comune se usi MinGW su Windows), nel qual caso puoi prima controllare dove si trova il compilatore procedendo come segue in Code :: Blocks :
Settings->Compiler and DebuggerGNU GCC CompilerToolchain executablesschedaQuindi, utilizzando una riga di comando, passa alla directory indicata, quindi nella binsottodirectory, quindi prova a eseguire gcc --versionda lì.
Esegui tipicamente il comando
gcc --version
e dovrebbe darti un risultato come questo:
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.