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.
I hope you will go well learning those beatiful languages. > When I try to compile this as C++: > linda:~/cprogs$ g++ main.c -lpub > /tmp/cca132571.o: In function `main': > /tmp/cca132571.o(.text+0x2b): undefined reference to `strtrim(char *)' > /tmp/cca132571.o(.text+0x3a): undefined reference to `strmtrim(char *)' > > but as C, it's fine: > linda:~/cprogs$ gcc main.c -lpub > linda:~/cprogs$ > --- GNU GPL: csak tiszta forrásból -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .