The C examples use sin(), so they need to link with -lm:

diff --git a/examples/c/Makefile.examples.in b/examples/c/Makefile.examples.in
index bc47762..1764c4a 100644
--- a/examples/c/Makefile.examples.in
+++ b/examples/c/Makefile.examples.in
@@ -100,6 +100,6 @@ clean:
 @extcairo_true@        $(shell $(PKG_CONFIG_ENV) pkg-config
@PC_STATIC_OPTION@ --cflags --libs plplot cairo)

 .c$(EXEEXT):
-       $(CC) $< -o $@ $(RPATHCMD) $(shell $(PKG_CONFIG_ENV) pkg-config
@PC_STATIC_OPTION@ --cflags --libs plplot)
+       $(CC) $< -o $@ $(RPATHCMD) $(shell $(PKG_CONFIG_ENV) pkg-config
@PC_STATIC_OPTION@ --cflags --libs plplot) -lm

 .SUFFIXES: .c $(EXEEXT)

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       or...@nwra.com
Boulder, CO 80301                   http://www.nwra.com

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to