<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
<div>Hi. I just installed openslide for the first time and am having some trouble getting it running in C++. It seemed to install with no problems (on opensuse 13.1) and I just wrote a simple program to test it:</div>
<div><br>
</div>
<div>
<div><br>
</div>
<div><span style="font-size: 10pt;">extern "C" {</span></div>
<div> #include <openslide.h></div>
<div>}</div>
<div>#include <iostream></div>
<div>#include <cstdlib></div>
<div>#include <cmath></div>
<div>#include <ctime></div>
<div>#include <glib.h></div>
<div>using namespace std;</div>
<div>int main (int argc, char * argv[])</div>
<div>{</div>
<div><br>
</div>
<div> cout << "Version: " << openslide_get_version() << endl;</div>
<div><br>
</div>
<div> return 0;</div>
<div>}</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>But when I run this I get the following compiler error:</div>
<div><br>
</div>
<div>
<div>g++ -Wall -I/usr/local/include/openslide -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -L/usr/lib -lm -lglib-2.0 -o AccessSlides AccessSlides.cc</div>
<div>/tmp/cc7Nmv18.o: In function `main':</div>
<div>AccessSlides.cc:(.text+0x11): undefined reference to `openslide_get_version'</div>
<div>collect2: error: ld returned 1 exit status</div>
</div>
<div><br>
</div>
<div>Does anyone know what might be causing this? It seems like it's not finding the openslide functions at all even though I am including the openslide.h file...</div>
<div><br>
</div>
<div>Thanks!</div>
<div>Melanie</div>
<div><br>
</div>
</div>
</body>
</html>