You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Simon Rowland <sr...@gmail.com> on 2007/01/09 17:43:26 UTC

CygWin .configure using Win32TransService

Hi All,

I am using the latest (and full) cygwin install on Windows. I have the
latest Xerces source checked out.

I run configure from the root directory, followed by make in the src
directory. Most of the build (including some additions I am prototyping)
runs fine, but then the build tries to build the Win32TransService instead
of the CygWinTransService. I tried hacking the makefile but didn't get it
right.

How can I override configure to use the CygWinTransService, or better still,
ensure that configure picks up the right service in the first place?

Many thanks in advance,
Simon

Re: CygWin .configure using Win32TransService

Posted by Simon Rowland <sr...@gmail.com>.
Fantastic - new version built to completion fine!

Thanks Alberto I really appreciate it!

On 1/10/07, Alberto Massari <am...@datadirect.com> wrote:
>
> At 17.53 10/01/2007 +0000, Simon Rowland wrote:
>
>
> >On 1/10/07, Alberto Massari
> ><<m...@datadirect.com> wrote:
> >At 17.35 10/01/2007 +0000, Simon Rowland wrote:
> > >Hi Alberto,
> > >
> > >Same error with the non underscore names:
> > >
> > >[..]
> > >does this mean there is something missing from my env?
> >
> >No, it's just Cygwin that is missing these C-runtime functions; the
> >CygwinTranscoder.cpp is the same code of Win32Transcoder but with
> >those functions replaced with others.
> >
> >
> >Uh-oh - what can I do to get it building and running? Am happy to
> >replace them all with something suitable if you can point me in the
> >right direction!
>
> Try refreshing now, and let me know if it works.
>
> Alberto
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail: c-dev-help@xerces.apache.org
>
>

Re: CygWin .configure using Win32TransService

Posted by Alberto Massari <am...@datadirect.com>.
At 17.53 10/01/2007 +0000, Simon Rowland wrote:


>On 1/10/07, Alberto Massari 
><<m...@datadirect.com> wrote:
>At 17.35 10/01/2007 +0000, Simon Rowland wrote:
> >Hi Alberto,
> >
> >Same error with the non underscore names:
> >
> >[..]
> >does this mean there is something missing from my env?
>
>No, it's just Cygwin that is missing these C-runtime functions; the
>CygwinTranscoder.cpp is the same code of Win32Transcoder but with
>those functions replaced with others.
>
>
>Uh-oh - what can I do to get it building and running? Am happy to 
>replace them all with something suitable if you can point me in the 
>right direction!

Try refreshing now, and let me know if it works.

Alberto 


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: CygWin .configure using Win32TransService

Posted by Simon Rowland <sr...@gmail.com>.
On 1/10/07, Alberto Massari <am...@datadirect.com> wrote:
>
> At 17.35 10/01/2007 +0000, Simon Rowland wrote:
> >Hi Alberto,
> >
> >Same error with the non underscore names:
> >
> >[..]
> >does this mean there is something missing from my env?
>
> No, it's just Cygwin that is missing these C-runtime functions; the
> CygwinTranscoder.cpp is the same code of Win32Transcoder but with
> those functions replaced with others.


Uh-oh - what can I do to get it building and running? Am happy to replace
them all with something suitable if you can point me in the right direction!

Thanks!

> Alberto
>
>
>

Re: CygWin .configure using Win32TransService

Posted by Alberto Massari <am...@datadirect.com>.
At 17.35 10/01/2007 +0000, Simon Rowland wrote:
>Hi Alberto,
>
>Same error with the non underscore names:
>
>[..]
>does this mean there is something missing from my env?

No, it's just Cygwin that is missing these C-runtime functions; the 
CygwinTranscoder.cpp is the same code of Win32Transcoder but with 
those functions replaced with others.

Alberto


>Thanks again, Simon
>
>On 1/10/07, Alberto Massari 
><<m...@datadirect.com> wrote:
>Hi Simon,
>can you try removing the _ from the function names? e.g. change
>_wcsupr into wcsupr and so on. If that doesn't work, I have written a
>fallback implementation for them to be used under Cygwin.
>
>Alberto
>
>At 20.34 09/01/2007 +0000, Simon Rowland wrote:
> >Hi Alberto,
> >
> >I was under the impression that the Win32 should work with cygwin (as
> >it does for MinGW), as the old CygwinTransService was using the same
> >registry keys and MultiByteToWideChar API. What error do you get?
> >
> >In case you want to use a different transcoder (like iconv), you can
> >disable the Win32 transcoder by running ./configure
> >--disable-transcoder-windows
> >
> >
> >Thanks for the reply and the info, looks like I ought to be using
> >the Win32 service after all ... I guess I'm doing something dumb, or
> >have something wrong with my env.
> >
> >Error is as follows:
> >
> >$ make
> >make[1]: Entering directory `/cygdrive/c/XercesDec/XercesDec/src'
> >Compiling xercesc/util/Transcoders/Win32/Win32TransService.cpp
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
> >`xercesc_3_0::CPMapEntry::CPMapEntry(const char*, unsigned int,
> >unsigned int)':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:145: error:
> >`_wcsupr' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:145: error:
> >(Each undeclared identifier is reported only once for each function
> >it appears in.)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
> >`xercesc_3_0::CPMapEntry::CPMapEntry(const XMLCh*, unsigned int,
> >unsigned int)':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:163: error:
> >`_wcsupr' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
> >`xercesc_3_0::Win32TransService::Win32TransService()':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:380: error:
> >`_wcsupr' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member
> >function `virtua
> >l int xercesc_3_0::Win32TransService::compareIString(const XMLCh*,
> >const XMLCh*)
> >':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:436: error:
> >`_wcsicmp' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member
> >function `virtual int
> >xercesc_3_0::Win32TransService::compareNIString(const XMLCh*, const
> >XMLCh*, unsigned int)':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:444: error:
> >`_wcsnicmp' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member
> >function `virtual void
> >xercesc_3_0::Win32TransService::upperCase(XMLCh*) const':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:473: error:
> >`_wcsupr' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member
> >function `virtual void
> >xercesc_3_0::Win32TransService::lowerCase(XMLCh*) const':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:478: error:
> >`_wcslwr' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member
> >function `virtual xercesc_3_0::XMLTranscoder*
> >xercesc_3_0::Win32TransService::makeNewXMLTranscoder(const XMLCh*,
> >xercesc_3_0::XMLTransService::Codes&, unsigned int,
> >xercesc_3_0::MemoryManager*)':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:514: error:
> >`_wcsupr' undeclared (first use this function)
> >make[1]: *** [xercesc/util/Transcoders/Win32/Win32TransService.lo] Error 1
> >make[1]: Leaving directory `/cygdrive/c/XercesDec/XercesDec/src'
> >make: *** [all-recursive] Error 1
> >
> >There are no missing include errors form the compiler, could this be
> >something to do with the wrong string.h being included?
> >
> >Thanks again,
> >Simon
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: 
><ma...@xerces.apache.org>c-dev-unsubscribe@xerces.apache.org
>For additional commands, e-mail: 
><ma...@xerces.apache.org>c-dev-help@xerces.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: CygWin .configure using Win32TransService

Posted by Simon Rowland <sr...@gmail.com>.
Hi Alberto,

Same error with the non underscore names:

$ make
make[1]: Entering directory `/cygdrive/c/XercesDec/XercesDec/src'
Compiling xercesc/util/Transcoders/Win32/Win32TransService.cpp
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
`xercesc_3_
0::CPMapEntry::CPMapEntry(const char*, unsigned int, unsigned int)':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:145: error: `wcsupr'
undecl
ared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp:145: error: (Each
undeclare
d identifier is reported only once for each function it appears in.)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
`xercesc_3_
0::CPMapEntry::CPMapEntry(const XMLCh*, unsigned int, unsigned int)':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:163: error: `wcsupr'
undecl
ared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
`xercesc_3_
0::Win32TransService::Win32TransService()':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:380: error: `wcsupr'
undecl
ared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member function
`virtua
l int xercesc_3_0::Win32TransService::compareIString(const XMLCh*, const
XMLCh*)
':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:436: error: `wcsicmp'
undec
lared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member function
`virtua
l int xercesc_3_0::Win32TransService::compareNIString(const XMLCh*, const
XMLCh*
, unsigned int)':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:444: error: `wcsnicmp'
unde
clared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member function
`virtua
l void xercesc_3_0::Win32TransService::upperCase(XMLCh*) const':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:473: error: `wcsupr'
undecl
ared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member function
`virtua
l void xercesc_3_0::Win32TransService::lowerCase(XMLCh*) const':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:478: error: `wcslwr'
undecl
ared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member function
`virtua
l xercesc_3_0::XMLTranscoder*
xercesc_3_0::Win32TransService::makeNewXMLTranscod
er(const XMLCh*, xercesc_3_0::XMLTransService::Codes&, unsigned int,
xercesc_3_0
::MemoryManager*)':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:514: error: `wcsupr'
undecl
ared (first use this function)
make[1]: *** [xercesc/util/Transcoders/Win32/Win32TransService.lo] Error 1
make[1]: Leaving directory `/cygdrive/c/XercesDec/XercesDec/src'
make: *** [all-recursive] Error 1

does this mean there is something missing from my env?

Thanks again, Simon

On 1/10/07, Alberto Massari <am...@datadirect.com> wrote:
>
> Hi Simon,
> can you try removing the _ from the function names? e.g. change
> _wcsupr into wcsupr and so on. If that doesn't work, I have written a
> fallback implementation for them to be used under Cygwin.
>
> Alberto
>
> At 20.34 09/01/2007 +0000, Simon Rowland wrote:
> >Hi Alberto,
> >
> >I was under the impression that the Win32 should work with cygwin (as
> >it does for MinGW), as the old CygwinTransService was using the same
> >registry keys and MultiByteToWideChar API. What error do you get?
> >
> >In case you want to use a different transcoder (like iconv), you can
> >disable the Win32 transcoder by running ./configure
> >--disable-transcoder-windows
> >
> >
> >Thanks for the reply and the info, looks like I ought to be using
> >the Win32 service after all ... I guess I'm doing something dumb, or
> >have something wrong with my env.
> >
> >Error is as follows:
> >
> >$ make
> >make[1]: Entering directory `/cygdrive/c/XercesDec/XercesDec/src'
> >Compiling xercesc/util/Transcoders/Win32/Win32TransService.cpp
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
> >`xercesc_3_0::CPMapEntry::CPMapEntry(const char*, unsigned int,
> >unsigned int)':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:145: error:
> >`_wcsupr' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:145: error:
> >(Each undeclared identifier is reported only once for each function
> >it appears in.)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
> >`xercesc_3_0::CPMapEntry::CPMapEntry(const XMLCh*, unsigned int,
> >unsigned int)':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:163: error:
> >`_wcsupr' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
> >`xercesc_3_0::Win32TransService::Win32TransService()':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:380: error:
> >`_wcsupr' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member
> >function `virtua
> >l int xercesc_3_0::Win32TransService::compareIString(const XMLCh*,
> >const XMLCh*)
> >':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:436: error:
> >`_wcsicmp' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member
> >function `virtual int
> >xercesc_3_0::Win32TransService::compareNIString(const XMLCh*, const
> >XMLCh*, unsigned int)':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:444: error:
> >`_wcsnicmp' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member
> >function `virtual void
> >xercesc_3_0::Win32TransService::upperCase(XMLCh*) const':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:473: error:
> >`_wcsupr' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member
> >function `virtual void
> >xercesc_3_0::Win32TransService::lowerCase(XMLCh*) const':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:478: error:
> >`_wcslwr' undeclared (first use this function)
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member
> >function `virtual xercesc_3_0::XMLTranscoder*
> >xercesc_3_0::Win32TransService::makeNewXMLTranscoder(const XMLCh*,
> >xercesc_3_0::XMLTransService::Codes&, unsigned int,
> >xercesc_3_0::MemoryManager*)':
> >xercesc/util/Transcoders/Win32/Win32TransService.cpp:514: error:
> >`_wcsupr' undeclared (first use this function)
> >make[1]: *** [xercesc/util/Transcoders/Win32/Win32TransService.lo] Error
> 1
> >make[1]: Leaving directory `/cygdrive/c/XercesDec/XercesDec/src'
> >make: *** [all-recursive] Error 1
> >
> >There are no missing include errors form the compiler, could this be
> >something to do with the wrong string.h being included?
> >
> >Thanks again,
> >Simon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail: c-dev-help@xerces.apache.org
>
>

Re: CygWin .configure using Win32TransService

Posted by Alberto Massari <am...@datadirect.com>.
Hi Simon,
can you try removing the _ from the function names? e.g. change 
_wcsupr into wcsupr and so on. If that doesn't work, I have written a 
fallback implementation for them to be used under Cygwin.

Alberto

At 20.34 09/01/2007 +0000, Simon Rowland wrote:
>Hi Alberto,
>
>I was under the impression that the Win32 should work with cygwin (as
>it does for MinGW), as the old CygwinTransService was using the same
>registry keys and MultiByteToWideChar API. What error do you get?
>
>In case you want to use a different transcoder (like iconv), you can
>disable the Win32 transcoder by running ./configure
>--disable-transcoder-windows
>
>
>Thanks for the reply and the info, looks like I ought to be using 
>the Win32 service after all ... I guess I'm doing something dumb, or 
>have something wrong with my env.
>
>Error is as follows:
>
>$ make
>make[1]: Entering directory `/cygdrive/c/XercesDec/XercesDec/src'
>Compiling xercesc/util/Transcoders/Win32/Win32TransService.cpp
>xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor 
>`xercesc_3_0::CPMapEntry::CPMapEntry(const char*, unsigned int, 
>unsigned int)':
>xercesc/util/Transcoders/Win32/Win32TransService.cpp:145: error: 
>`_wcsupr' undeclared (first use this function)
>xercesc/util/Transcoders/Win32/Win32TransService.cpp:145: error: 
>(Each undeclared identifier is reported only once for each function 
>it appears in.)
>xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor 
>`xercesc_3_0::CPMapEntry::CPMapEntry(const XMLCh*, unsigned int, 
>unsigned int)':
>xercesc/util/Transcoders/Win32/Win32TransService.cpp:163: error: 
>`_wcsupr' undeclared (first use this function)
>xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor 
>`xercesc_3_0::Win32TransService::Win32TransService()':
>xercesc/util/Transcoders/Win32/Win32TransService.cpp:380: error: 
>`_wcsupr' undeclared (first use this function)
>xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member 
>function `virtua
>l int xercesc_3_0::Win32TransService::compareIString(const XMLCh*, 
>const XMLCh*)
>':
>xercesc/util/Transcoders/Win32/Win32TransService.cpp:436: error: 
>`_wcsicmp' undeclared (first use this function)
>xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member 
>function `virtual int 
>xercesc_3_0::Win32TransService::compareNIString(const XMLCh*, const 
>XMLCh*, unsigned int)':
>xercesc/util/Transcoders/Win32/Win32TransService.cpp:444: error: 
>`_wcsnicmp' undeclared (first use this function)
>xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member 
>function `virtual void 
>xercesc_3_0::Win32TransService::upperCase(XMLCh*) const':
>xercesc/util/Transcoders/Win32/Win32TransService.cpp:473: error: 
>`_wcsupr' undeclared (first use this function)
>xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member 
>function `virtual void 
>xercesc_3_0::Win32TransService::lowerCase(XMLCh*) const':
>xercesc/util/Transcoders/Win32/Win32TransService.cpp:478: error: 
>`_wcslwr' undeclared (first use this function)
>xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member 
>function `virtual xercesc_3_0::XMLTranscoder* 
>xercesc_3_0::Win32TransService::makeNewXMLTranscoder(const XMLCh*, 
>xercesc_3_0::XMLTransService::Codes&, unsigned int, 
>xercesc_3_0::MemoryManager*)':
>xercesc/util/Transcoders/Win32/Win32TransService.cpp:514: error: 
>`_wcsupr' undeclared (first use this function)
>make[1]: *** [xercesc/util/Transcoders/Win32/Win32TransService.lo] Error 1
>make[1]: Leaving directory `/cygdrive/c/XercesDec/XercesDec/src'
>make: *** [all-recursive] Error 1
>
>There are no missing include errors form the compiler, could this be 
>something to do with the wrong string.h being included?
>
>Thanks again,
>Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


Re: CygWin .configure using Win32TransService

Posted by Simon Rowland <sr...@gmail.com>.
Hi Alberto,

I was under the impression that the Win32 should work with cygwin (as
> it does for MinGW), as the old CygwinTransService was using the same
> registry keys and MultiByteToWideChar API. What error do you get?

In case you want to use a different transcoder (like iconv), you can
> disable the Win32 transcoder by running ./configure
> --disable-transcoder-windows


Thanks for the reply and the info, looks like I ought to be using the Win32
service after all ... I guess I'm doing something dumb, or have something
wrong with my env.

Error is as follows:

$ make
make[1]: Entering directory `/cygdrive/c/XercesDec/XercesDec/src'
Compiling xercesc/util/Transcoders/Win32/Win32TransService.cpp
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
`xercesc_3_0::CPMapEntry::CPMapEntry(const char*, unsigned int, unsigned
int)':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:145: error: `_wcsupr'
undeclared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp:145: error: (Each
undeclared identifier is reported only once for each function it appears
in.)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
`xercesc_3_0::CPMapEntry::CPMapEntry(const XMLCh*, unsigned int, unsigned
int)':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:163: error: `_wcsupr'
undeclared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In constructor
`xercesc_3_0::Win32TransService::Win32TransService()':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:380: error: `_wcsupr'
undeclared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member function
`virtua
l int xercesc_3_0::Win32TransService::compareIString(const XMLCh*, const
XMLCh*)
':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:436: error: `_wcsicmp'
undeclared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member function
`virtual int xercesc_3_0::Win32TransService::compareNIString(const XMLCh*,
const XMLCh*, unsigned int)':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:444: error: `_wcsnicmp'
undeclared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member function
`virtual void xercesc_3_0::Win32TransService::upperCase(XMLCh*) const':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:473: error: `_wcsupr'
undeclared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member function
`virtual void xercesc_3_0::Win32TransService::lowerCase(XMLCh*) const':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:478: error: `_wcslwr'
undeclared (first use this function)
xercesc/util/Transcoders/Win32/Win32TransService.cpp: In member function
`virtual xercesc_3_0::XMLTranscoder*
xercesc_3_0::Win32TransService::makeNewXMLTranscoder(const XMLCh*,
xercesc_3_0::XMLTransService::Codes&, unsigned int,
xercesc_3_0::MemoryManager*)':
xercesc/util/Transcoders/Win32/Win32TransService.cpp:514: error: `_wcsupr'
undeclared (first use this function)
make[1]: *** [xercesc/util/Transcoders/Win32/Win32TransService.lo] Error 1
make[1]: Leaving directory `/cygdrive/c/XercesDec/XercesDec/src'
make: *** [all-recursive] Error 1

There are no missing include errors form the compiler, could this be
something to do with the wrong string.h being included?

Thanks again,
Simon

Re: CygWin .configure using Win32TransService

Posted by Alberto Massari <am...@datadirect.com>.
Hi Simon,

At 16.43 09/01/2007 +0000, Simon Rowland wrote:
>Hi All,
>
>I am using the latest (and full) cygwin install on Windows. I have 
>the latest Xerces source checked out.
>
>I run configure from the root directory, followed by make in the src 
>directory. Most of the build (including some additions I am 
>prototyping) runs fine, but then the build tries to build the 
>Win32TransService instead of the CygWinTransService. I tried hacking 
>the makefile but didn't get it right.
>
>How can I override configure to use the CygWinTransService, or 
>better still, ensure that configure picks up the right service in 
>the first place?

I was under the impression that the Win32 should work with cygwin (as 
it does for MinGW), as the old CygwinTransService was using the same 
registry keys and MultiByteToWideChar API. What error do you get?
In case you want to use a different transcoder (like iconv), you can 
disable the Win32 transcoder by running ./configure 
--disable-transcoder-windows

Alberto


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org