Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for compiling on newer versions of gcc #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bahamat
Copy link

@bahamat bahamat commented Jan 28, 2013

Compiling on Ubuntu 12.04 I get the following:

$ make
gcc -lm -o heatmap heatmap.c
/tmp/cc1kQt5n.o: In function `loglinear_buckets':
heatmap.c:(.text+0x267): undefined reference to `pow'
collect2: ld returned 1 exit status
make: *** [heatmap] Error 1
$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

This change will resolve the error, and appears to still work on Mac OS X 10.8, Solaris 11.1 and Debian 6, each of which has a gcc version older than 4.6.

My reference for this fix is this Stack Overflow question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant