On Fri, Mar 27, 2015 at 3:39 PM, Asma Dab <asmad...@yahoo.fr> wrote: > Hello, > > I try to compile perf-examples in libpfm4.6 with the GCC compiler in Linux > 3.5.0-23-generic, But i've got this error message: > > asma@asma-Inspiron-N4050:~/Bureau/PMM/libpfm-4.6.0/perf_examples$ gcc > -fopenmp self.c > /tmp/ccCwfEbh.o: In function `main': > self.c:(.text+0x3d1): undefined reference to `pfm_initialize' > self.c:(.text+0x3e4): undefined reference to `pfm_strerror' > self.c:(.text+0x423): undefined reference to `perf_setup_argv_events' > self.c:(.text+0x670): undefined reference to `perf_free_fds' > self.c:(.text+0x675): undefined reference to `pfm_terminate' > collect2: ld a retourné 1 code d'état d'exécution > > Can you please tell me what to do? > You need to edit the perf_examples/Makefile to add the -fopenmp to the rule to make self. Otherwise you have to explicitly link with libpfm4 (-lpfm)
> Thank you. > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > perfmon2-devel mailing list > perfmon2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel