bcopy error

Hi,

I am trying to use the latest w3 release (pre-5.3.0) from C++ but I am having 
problems with the header files.  So far, I have:

#include <stdlib.h>
#include <stdio.h>
#include <netinet/in.h>         ///// required to avoid HTHstMan.h:94: field  
                                         //// `sock_addr' has incomplete type

extern "C" {
#define HAVE_STRERROR  //// required to avoid conflicting definitions for
                                                ////  sys_errlist

#include "WWWLib.h"
#include "WWWInit.h"
#include "WWWHTML.h"
}

#include <iostream.h>
#include <string>
#include <vector>
#include <strstream.h>


But, now the <string> header introduces the following error:

 
++ -DPACKAGE=\"linksearch\" -DVERSION=\"0.1\" -DHAVE_LIBWWWTRANS=1 
-DHAVE_LIBWWWCORE=1 -DHAVE_LIBWWWUTILS=1 -DHAVE_LIBMD5=1  -I. -I.  -I../lib  
-I/homes/fish/amir/include/w3c-libwww  -g -O2 -c ParseHTML.C
/usr/include/g++-2/std/straits.h: In function `static char * 
string_char_traits<char>::copy(char *, const char *, size_t)':
In file included from /usr/include/g++-2/std/bastring.h:36,
                 from /usr/include/g++-2/string:6,
                 from ParseHTML.C:31:
/usr/include/g++-2/std/straits.h:127: cannot convert `bcopy(const void *, 
void *, size_t)(s2, s1, n)' from type `void' to type `char *'
/usr/include/g++-2/std/straits.h: In function `static char * 
string_char_traits<char>::move(char *, const char *, size_t)':
/usr/include/g++-2/std/straits.h:129: cannot convert `bcopy(const void *, 
void *, size_t)(s2, s1, n)' from type `void' to type `char *'
make: *** [ParseHTML.o] Error 1

if I take out the w3c library headers, then this error doesn't occur.

Any hints?

Amir

Received on Wednesday, 14 June 2000 19:47:25 UTC