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

won't compile under ubuntu 16.04 #1

Closed
laurentbriet opened this issue Nov 23, 2016 · 1 comment
Closed

won't compile under ubuntu 16.04 #1

laurentbriet opened this issue Nov 23, 2016 · 1 comment

Comments

@laurentbriet
Copy link

synaspan.c: In function ‘drawstar’:
synaspan.c:245:19: warning: ‘A’ may be used uninitialized in this function [-Wmaybe-uninitialized]
float k = A * expf(-((xx * xx * c * c) / (s * s) / 2.0f +
^
/usr/bin/ld: /tmp/ccZLH2vj.o: undefined reference to symbol 'expf@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

@rlk
Copy link
Owner

rlk commented Nov 28, 2016

Fixed. Missing initializer and missing math library.

@rlk rlk closed this as completed Nov 28, 2016
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

No branches or pull requests

2 participants