I can't seem to get Math.floor to work in my code. I have glib-2.0 installed and tried linking it in the build statement.

This is what happens when I build my app:

/usr/bin/ld: /tmp/cc4KsgDT.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line

Here is my valac statement:

valac --pkg gtk+-3.0 --pkg libsoup-2.4 --pkg json-glib-1.0 --pkg glib-2.0 Application.vala -X -lm -GETTEXT_PACKAGE=""

Also, is there a cleaner way to handle all this? What happens if I have like 10 packages? This would be a mess.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.