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

Missing match lib. Undefined reference to symbol (Debian GNU/Linux) #2

Open
blogdron opened this issue Dec 13, 2022 · 0 comments
Open

Comments

@blogdron
Copy link

gcc src/*.c `pkg-config --cflags --libs SDL2_ttf`  -o blockamok
/usr/bin/ld: /tmp/user/1000/ccMOfFUx.o: undefined reference to symbol 'tan@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Makefile:15: compile] Error 1

For fix need add -lm in https://github.com/carltheperson/blockamok/blob/main/Makefile

compile:
-	gcc src/*.c `pkg-config --cflags --libs SDL2_ttf` -o blockamok
+	gcc src/*.c `pkg-config --cflags --libs SDL2_ttf` -lm -o blockamok
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

1 participant