domanda niubba,
come faccio a compilare questo semplice programma:
con Kdevelop ?codice:#include <stdio.h> int main(void) { printf("Hello World\n");
devo per forza aggiungerlo ad un progetto? ma quale soprattutto... Perchè se provo a far un nuovo progetto e seleziono C/CMake based prohects successivamente mi da questo errore:
ho sempre compilato da riga di comando con un gcc ed ora sono spaesato...codice:cmake ./ -GKDevelop3 -- Check for working C compiler: CMAKE_C_COMPILER-NOTFOUND CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name. CMake Error: Internal CMake error, TryCompile configure of cmake failed -- Check for working C compiler: CMAKE_C_COMPILER-NOTFOUND -- broken CMake Error: The C compiler "CMAKE_C_COMPILER-NOTFOUND" is not able to compile a simple test program. It fails with the following output: CMake will not be able to correctly generate this project. CMake Error: your C compiler: "CMAKE_C_COMPILER-NOTFOUND" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name. -- Configuring done *** Uscito con stato: 255 ***
![]()
![]()
![]()