Hi, 
  Sorry to bother you again.
  Could you send me the options you are using with CC
in Solaris? 
  I got the following erros. It complains "mbstate_t"
defined in more than one header file. I guess there
must be some # define or some options I have to
specify to the CC compiler. 
  
  Thanks. 

  Jerry.


CC -g -D_REENTRANT -D_UNIX -DXML_SOLARIS
-I/export/home/liug/xml4c3_3_1-SolCC/include -o tt
testt.c ntfileio.cpp  parsererrorreporter.cpp 
rtfint.cpp rtf.cpp
-L//export/home/liug/xml4c3_3_1-SolCC/lib -licu-uc
-licudata -lxerces-c1_3

"testt.c", line 77: Warning (Anachronism): Formal
argument 3 of type extern "C" void*(*)(void*) in call
to pthread_create(unsigned*, const _pthread_attr*,
extern "C" void*(*)(void*), void*) is being passed
void*(*)(void*).
1 Warning(s) detected.

"/usr/include/iso/wchar_iso.h", line 100: Error:
Multiple declaration for mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 51:
Error: The name mbstate_t is ambiguous, std::mbstate_t
and std::mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/./iosfwd", line 78:
Error: The name mbstate_t is ambiguous, std::mbstate_t
and std::mbstate_t.
"/opt/SUNWspro/SC5.0/include/CC/rw/iotraits", line 56:
Error: The name mbstate_t is ambiguous, std::mbstate_t
and std::mbstate_t.
4 Error(s) detected.




--- [EMAIL PROTECTED] wrote:
> 
> Jerry,
> 
> I've built the Xerces 1.3 parser on Solaris 2.6 with
> the 4.2
> workshop compilers, and everything builds ok for me.
> 
> I think you can also build it using gcc, but you're
> kind of on
> your own, as I don't think it is one of the
> compilers that will
> build 'out-of-the-box'.
> 
> You may have to make some slight changes to the
> include
> files to handle the different compiler, as the
> includes may
> depend on predefined symbols that are automatically
> defined
> by the workshop compiler.
> 
> It wasn't clear if you are actually building the
> xerces lib, or just
> trying to link to them. Whatever compiler you use
> has to be the
> same compiler that was used to build them, so if you
> are just
> linking, you must use the Sun compiler.
> 
> If you rebuild from scratch using gcc/g++, you can
> then link to
> the resulting libraries from any program that also
> was built using
> gcc/g++.
> 
> Apparently, the compilers are too different to use
> each others
> libraries. Why this is so, I do not know, because
> gcc/g++ can
> link to Sun-provided libraries without problems. But
> I have heard
> this information posted to the list, so there must
> be a problem.
> 
> Hope this helps - I'm just another user like
> yourself. Perhaps
> one of the list owners can provide more information.
> 
> Regards,
> --Carl
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to