Date: Fri, 27 Sep 2019 09:00:16 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 240856] sqrt problem Message-ID: <bug-240856-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240856 Bug ID: 240856 Summary: sqrt problem Product: Base System Version: 12.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: heinrich.adam@iml.unibe.ch if I compile : #include <math.h> double Summx2 =3D 2.0; double StandardDeviation; int main (int argc, char **argv) { StandardDeviation =3D sqrt(Summx2); return 0; } with : gcc `pkg-config --cflags gtk+-3.0` -o "test" "test.c" `pkg-config --libs gtk+-3.0` I receive /usr/local/bin/ld: /tmp//ccQtgX7c.o: undefined reference to symbol 'sqrt@@FBSD_1.0' /usr/local/bin/ld: /lib/libm.so.5: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Its only the problem part I need gtk for display the GUI, the full programm= ist to long. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240856-227>