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

06.2.1 - Alertor.c #5

Closed
bitbau opened this issue Sep 15, 2020 · 4 comments
Closed

06.2.1 - Alertor.c #5

bitbau opened this issue Sep 15, 2020 · 4 comments

Comments

@bitbau
Copy link

bitbau commented Sep 15, 2020

Getting Error while building:

/usr/bin/ld: /tmp/ccSgTuXA.o: undefined reference to symbol 'sin@@GLIBC_2.4'
//lib/arm-linux-gnueabihf/libm.so.6: error adding symbols: DSO missing from command line

@SuhaylZhao
Copy link
Member

Hi,

Can you show me a screenshot of where you made a mistake? How did it happen? You give too little information, I can't find the reason accurately.

Thanks.

@Freenove Freenove deleted a comment from lucasrussell Sep 16, 2020
@bitbau
Copy link
Author

bitbau commented Sep 16, 2020

image
The error occurs in Geany, right after hitting F9 for "Build". I didn't change the code in any way

@bitbau
Copy link
Author

bitbau commented Sep 16, 2020

image
I got it working by just adding the -lm parameter to the build command

@SuhaylZhao
Copy link
Member

Hi,

That's right! You're great!

You are missing some compilation options, which can be found in the tutorial.

image

Thanks!

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