<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to C++ Bindings: Undefined reference</title><link>https://sourceforge.net/p/plplot/discussion/8607/thread/7dd3f55b/</link><description>Recent posts to C++ Bindings: Undefined reference</description><atom:link href="https://sourceforge.net/p/plplot/discussion/8607/thread/7dd3f55b/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 18 Apr 2015 20:04:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/plplot/discussion/8607/thread/7dd3f55b/feed.rss" rel="self" type="application/rss+xml"/><item><title>C++ Bindings: Undefined reference</title><link>https://sourceforge.net/p/plplot/discussion/8607/thread/7dd3f55b/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I have successfully built plplot and header files are located in /usr/local/include/plplot.&lt;/p&gt;
&lt;p&gt;However, when I do &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;gcc -I /usr/local/include/plplot x00.cc&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;to compile the first C++ example. The compiler gives me &lt;/p&gt;
&lt;pre&gt;&amp;gt; /tmp/ccmWvhuf.o: In function `x00::x00(int, char const**)':
&amp;gt; x00.cc:(.text+0x103): undefined reference to `operator new(unsigned long)'
&amp;gt; x00.cc:(.text+0x10e): undefined reference to `plstream::plstream()'
&amp;gt; x00.cc:(.text+0x13d): undefined reference to `plstream::parseopts(int*, char const**, int)'
&amp;gt; x00.cc:(.text+0x14f): undefined reference to `plstream::init()'
&amp;gt; x00.cc:(.text+0x1c3): undefined reference to `plstream::env(double, double, double, double, int, int)'
&amp;gt; x00.cc:(.text+0x1e4): undefined reference to `plstream::lab(char const*, char const*, char const*)'
&amp;gt; x00.cc:(.text+0x209): undefined reference to `plstream::line(int, double const*, double const*)'
&amp;gt; x00.cc:(.text+0x257): undefined reference to `operator delete(void*)'
&amp;gt; /tmp/ccmWvhuf.o: In function `main':
&amp;gt; x00.cc:(.text+0x28f): undefined reference to `operator new(unsigned long)'
&amp;gt; x00.cc:(.text+0x2b3): undefined reference to `operator delete(void*)'
&amp;gt; x00.cc:(.text+0x2c5): undefined reference to `operator delete(void*)'
&amp;gt; /tmp/ccmWvhuf.o: In function `__static_initialization_and_destruction_0(int, int)':
&amp;gt; x00.cc:(.text+0x300): undefined reference to `std::ios_base::Init::Init()'
&amp;gt; x00.cc:(.text+0x30f): undefined reference to `std::ios_base::Init::~Init()'
&amp;gt;/tmp/ccmWvhuf.o:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0'
&amp;gt; collect2: error: ld returned 1 exit status
&lt;/pre&gt;
&lt;p&gt;I think I am missing some libraries here. Sorry if it's a dumb beginner question. But I am really confused about how C++ bindings work. I will appreciate any help on the problem!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Fred Z</dc:creator><pubDate>Sat, 18 Apr 2015 20:04:23 -0000</pubDate><guid>https://sourceforge.neta708891cbe0d0fe94792c7a46bccb2cee6b0a1ac</guid></item></channel></rss>