Gwinel / likwid

Automatically exported from code.google.com/p/likwid
GNU General Public License v3.0
0 stars 0 forks source link

Compilation problem with Marker API #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use likwidi-3.0 on a Intel Core IvyBridge (i7-3770K) with GCC cc version 
4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
2. include and enable Marker API
3. compile your application (link with -llikwid)

What is the expected output? What do you see instead?

Expected: successful compilation
Instead:

...
/usr/local/lib/liblikwid.a(power.o): In function `power_init':
power.c:(.text+0x1ec): undefined reference to `pow'
power.c:(.text+0x21a): undefined reference to `pow'
power.c:(.text+0x248): undefined reference to `pow'

What version of the product are you using?

likwidi-3.0 

Please provide any additional information below.

You can fix the issue by linking with: -llikwid -lm 
(order sensitive)

Original issue reported on code.google.com by v.trigon...@gmail.com on 2 Dec 2013 at 10:48

GoogleCodeExporter commented 9 years ago
I guess this is a documentation error in the WIKI. Sorry for that. I hope I 
fixed all occurences. Reopen the ticket if you encounter anything I missed.

Original comment by jan.trei...@gmail.com on 26 Dec 2013 at 11:06

GoogleCodeExporter commented 9 years ago

Original comment by jan.trei...@gmail.com on 26 Dec 2013 at 11:07