[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: g++ / ld / publib linking problem



In message <[🔎] Pine.LNX.3.96.970710180346.10546G-100000@Bunuel.tii.matav.hu>, writ
es:
  >On Thu, 10 Jul 1997, Oliver Elphick wrote:
  >
  >> No-one has attempted an answer to this yet; if you have any ideas,
  >> please let me know!
  >> 
  >Don't know what this publib stuff is (just running  dpkg -S
  >/usr/include/publib [ah see, high-level functions]),  but the problem is
  >shining from your description. The stanza
  >#ifdef __cplusplus
  >extern "C" {
  >#endif
  > from the beginning and the one 
  >#ifdef __cplusplus
  >}
  >#endif
  >from the end of include files which are only C is missing.
  >As publib is a _C_ function library, I would not exactly call it as a bug.
  >You can add the stanzas to your c source around the #include line.
  >It is just C++ and strong type checking.
 
Brilliant!  That was the answer, of course.

I now remember that I had put this change into publib.h before, which
was why it had worked before.  When I upgraded to the new version,
I forgot about that change and thought that it had worked 'out of the box'
before.

Lars, could this be incorporated as a permanent feature in the Debian
package, please?


-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                                  http://lfix.co.uk/oliver

     Make it idiot-proof, and someone will breed a better idiot.


Attachment: pgpqIUhIr3vMn.pgp
Description: PGP signature


Reply to: