<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to support-requests</title><link href="https://sourceforge.net/p/pslib/support-requests/" rel="alternate"/><link href="https://sourceforge.net/p/pslib/support-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/pslib/support-requests/</id><updated>2004-11-13T18:25:14Z</updated><subtitle>Recent changes to support-requests</subtitle><entry><title>C++ linking issue</title><link href="https://sourceforge.net/p/pslib/support-requests/1/" rel="alternate"/><published>2004-11-13T18:25:14Z</published><updated>2004-11-13T18:25:14Z</updated><author><name>Thomas Ruschival</name><uri>https://sourceforge.net/u/ruschi/</uri></author><id>https://sourceforge.net62c8172e4371246c656e5c4f775d40d940738b9b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, as far as I know I can link all C libraries in C++ as &lt;br /&gt;
well. but I can't get it done with pslib. the exactly same &lt;br /&gt;
code compiles and links with C and it doesn't when I &lt;br /&gt;
use C++. &lt;br /&gt;
This is my linking command: &lt;br /&gt;
gcc -o test  -L/usr/lib/ -lps -lstdc++ test.cpp &lt;/p&gt;
&lt;p&gt;and in /usr/lib is definitely the file&lt;br /&gt;
/usr/lib/libps.so -&amp;gt; libps.so.0.2.4 &lt;/p&gt;
&lt;p&gt;it all works fine when I compile my file as test.c as C &lt;br /&gt;
code. but with test.cpp I get these errors: &lt;/p&gt;
&lt;p&gt;/tmp/ccSuItDe.o(.text+0x11): In function `main': &lt;br /&gt;
: undefined reference to `PS_boot()' &lt;br /&gt;
/tmp/ccSuItDe.o(.text+0x16): In function `main': &lt;br /&gt;
: undefined reference to `PS_new()' &lt;br /&gt;
[bla bla bla and so on......................] &lt;br /&gt;
collect2: ld returned 1 exit status &lt;/p&gt;
&lt;p&gt;this is the stupid little piece of code I wrote after the &lt;br /&gt;
bigger project didn't compile:&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;#include &amp;lt;libps/pslib.h&amp;gt; &lt;br /&gt;
main(int argc, char *argv[]) { &lt;br /&gt;
PSDoc* sheet; &lt;br /&gt;
PS_boot(); &lt;br /&gt;
sheet = PS_new(); &lt;br /&gt;
PS_open_file(sheet,"test.ps"); &lt;br /&gt;
PS_set_info(sheet,"Title","HelloWorld"); &lt;br /&gt;
PS_begin_page(sheet,841.9,595.3); &lt;br /&gt;
PS_end_page(sheet); &lt;br /&gt;
PS_shutdown(); &lt;br /&gt;
}; &lt;/p&gt;
&lt;p&gt;what do I do wrong. BTW, I have  debian [sid] running. &lt;/p&gt;
&lt;p&gt;desperately asking &lt;br /&gt;
Thomas Ruschival &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>