Problem mit gprof unter OS X: [program] gehört nicht zur Host-Architektur
Ich habe Probleme beim Laufengprof
unter OS X. Die Dateitest.c
ist:
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}
und mein terminal sieht so aus:
$ gcc -pg test.c
$ gcc -pg -o test test.c
$ ./test
Hello, World!
$ gprof test
gprof: file: test is not of the host architecture
Bearbeiten: Außerdem wird die Datei nicht generiertgmon.out
.
Was ist denn hier los?