Problem z gprof na OS X: [program] nie jest architekturą hosta
Mam problemy z uruchomieniemgprof
na OS X. Pliktest.c
jest:
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}
a mój terminal wygląda tak:
$ gcc -pg test.c
$ gcc -pg -o test test.c
$ ./test
Hello, World!
$ gprof test
gprof: file: test is not of the host architecture
Edytuj: również nie generuje plikugmon.out
.
Co tu się dzieje?