You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by olesita <ol...@yahoo.com> on 2010/01/05 21:31:50 UTC

xalan debug --> drives me crazy

Hi there,
I'm trying to build xalan 1.10 on vc8.0
I got release to work (not without problems) following this instruction:
http://mail-archives.apache.org/mod_mbox/xml-xalan-c-users/200709.mbox/%3c001301c7fc82$047987d0$4001a8c0@estec5syvrnjfw%3e

While debug mode won't build at all.
First trying to build Localizations, the following errors occur:

Q1) any idea what's wrong? 
-------------------------------------
1>------ Build started: Project: Localization, Configuration: Debug Win32
------
1>Performing Makefile project actions
1>Used BITS  = Win32
1>Used CFG  = Debug
1>Used LOCALE  = en_US
1>Used TYPE  = inmem
1>Used XLIFF file: "XalanMsg_en_US.xlf"
1>Finished with BuildMessages.mak
1>Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1> link.exe @C:\DOCUME~1\soukha\LOCALS~1\Temp\nm4E3C.tmp
1>LINK : warning LNK4044: unrecognized option '/pdbtype:sept'; ignored
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other
libs; use /NODEFAULTLIB:library
1>MsgCreator.obj : error LNK2019: unresolved external symbol
__CrtSetReportFile referenced in function _main
1>MsgCreator.obj : error LNK2019: unresolved external symbol
__CrtSetReportMode referenced in function _main
1>MsgCreator.obj : error LNK2019: unresolved external symbol __CrtSetDbgFlag
referenced in function _main
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
__CrtDbgReportW
1>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\bin\link.exe"' : return code '0x460'
1>SAX2Handler.obj : error LNK2019: unresolved external symbol
__CrtDbgReportW referenced in function "public: char & __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::operator[](unsigned int)"
(??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z)
1>Stop.
1>libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol
__CrtDbgReportW
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
__CrtDbgReportW
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol
__CrtDbgReportW
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
__malloc_dbg referenced in function "void * __cdecl operator new(unsigned
int,struct std::_DebugHeapTag_t const &,char *,int)"
(??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
__malloc_dbg
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
__free_dbg referenced in function "void __cdecl operator delete(void
*,struct std::_DebugHeapTag_t const &,char *,int)"
(??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
__free_dbg
1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol
__calloc_dbg referenced in function __Getctype
1>..\..\..\..\..\Build\Win32\VC8.0\Debug\MsgCreator.exe : fatal error
LNK1120: 7 unresolved externals
1>NMAKE : fatal error U1077: 'if' : return code '0x2'
1>Stop.
1>Project : error PRJ0019: A tool returned an error code from "Performing
Makefile project actions"
1>Build log was saved at
"file://e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\Projects\Win32\VC8.0\Utils\Localization\BuildLog.htm"
1>Localization - 17 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
-----------------------------------------

Q2)
Next trying to build "AllInOne" of course it cannot be expected to fully
compile due to missing "xalanMessages" but it doesn't even get to that
point.
Here are the errors, all have to do with 'xutility'

------------------------------------------
1>------ Build started: Project: AllInOne, Configuration: Debug Win32 ------
1>Compiling...
1>XalanFileUtility.cpp
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(1398) :
error C2678: binary '<' : no operator found which takes a left-hand operand
of type 'xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>' (or
there is no acceptable conversion)
1>        with
1>        [
1>           
XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
1>           
XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>
1>        ]
1>       
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/PlatformSupport/DOMStringHelper.hpp(2043):
could be 'bool xalanc_1_10::operator <(const xalanc_1_10::CharVectorType
&,const xalanc_1_10::CharVectorType &)' [found using argument-dependent
lookup]
1>       
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/PlatformSupport/DOMStringHelper.hpp(2062):
or 'bool xalanc_1_10::operator <(const xalanc_1_10::XalanDOMString &,const
xalanc_1_10::XalanDOMString &)' [found using argument-dependent lookup]
1>       
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/XPath/XalanQName.hpp(424):
or 'bool xalanc_1_10::operator <(const xalanc_1_10::XalanQName &,const
xalanc_1_10::XalanQName &)' [found using argument-dependent lookup]
1>       
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/XPath/XObject.hpp(589):
or 'bool xalanc_1_10::operator <(const xalanc_1_10::XObjectPtr &,const
xalanc_1_10::XObjectPtr &)' [found using argument-dependent lookup]
1>        while trying to match the argument list
'(xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,
xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>)'
1>        with
1>        [
1>           
XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
1>           
XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>
1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\xutility(1406) : see reference to function template
instantiation 'void std::_Debug_range2<_InIt>(_RanIt,_RanIt,const wchar_t
*,unsigned int,std::random_access_iterator_tag)' being compiled
1>        with
1>        [
1>           
_InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
1>           
_RanIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>
1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\xutility(2264) : see reference to function template
instantiation 'void std::_Debug_range<_InIt>(_InIt,_InIt,const wchar_t
*,unsigned int)' being compiled
1>        with
1>        [
1>           
_InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>
1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\xutility(2357) : see reference to function template
instantiation '_OutIt
std::_Copy_opt<xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,_OutIt,std::_Iter_random_helper<_Cat1,_Cat2>::_Iter_random_cat>(_InIt,_InIt,_OutIt,_InOutItCat,std::_Nonscalar_ptr_iterator_tag,std::_Range_checked_iterator_tag)'
being compiled
1>        with
1>        [
1>           
_OutIt=std::back_insert_iterator<xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
1>           
XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
1>           
XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,
1>           
_Cat1=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>::iterator_category,
1>            _Cat2=std::output_iterator_tag,
1>           
_InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
1>           
_InOutItCat=std::_Iter_random_helper<xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>::iterator_category,std::output_iterator_tag>::_Iter_random_cat
1>        ]
1>       
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/Include/XalanDeque.hpp(391)
: see reference to function template instantiation
'std::back_insert_iterator<_Container>
std::copy<xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,std::back_insert_iterator<_Container>>(_InIt,_InIt,_OutIt)'
being compiled
1>        with
1>        [
1>           
_Container=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,
1>           
XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
1>           
XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,
1>           
_InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
1>           
_OutIt=std::back_insert_iterator<xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>
1>        ]
1>       
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/Include/XalanDeque.hpp(389)
: while compiling class template member function
'xalanc_1_10::XalanDeque<Type,ConstructionTraits>
&xalanc_1_10::XalanDeque<Type,ConstructionTraits>::operator =(const
xalanc_1_10::XalanDeque<Type,ConstructionTraits> &)'
1>        with
1>        [
1>            Type=xalanc_1_10::NameSpace,
1>           
ConstructionTraits=xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>
1>        ]
1>       
e:\olessia\nonpcilibraries\xml-xalan_1_10_0\c\src\xalanc\xslt\Stylesheet.hpp(784)
: see reference to class template instantiation
'xalanc_1_10::XalanDeque<Type,ConstructionTraits>' being compiled
1>        with
1>        [
1>            Type=xalanc_1_10::NameSpace,
1>           
ConstructionTraits=xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>
1>        ]
1>XPathFactoryDefault.cpp
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
error C2039: 'iterator_category' : is not a member of
'xalanc_1_10::XalanSetIterator<Value,MapIterator>'
1>        with
1>        [
1>            Value=const xalanc_1_10::XPath *const ,
1>           
MapIterator=xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>
1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\xutility(1406) : see reference to class template instantiation
'std::iterator_traits<_Iter>' being compiled
1>        with
1>        [
1>            _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\algorithm(24) : see reference to function template
instantiation 'void std::_Debug_range<_InIt>(_InIt,_InIt,const wchar_t
*,unsigned int)' being compiled
1>        with
1>        [
1>            _InIt=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
1>        ..\..\..\..\src\xalanc\XPath\XPathFactoryDefault.cpp(70) : see
reference to function template instantiation '_Fn1
std::for_each<xalanc_1_10::XalanSetIterator<Value,MapIterator>,xalanc_1_10::XPathFactory::DeleteXPathFunctor>(_InIt,_InIt,_Fn1)'
being compiled
1>        with
1>        [
1>            _Fn1=xalanc_1_10::XPathFactory::DeleteXPathFunctor,
1>            Value=const xalanc_1_10::XPath *const ,
1>           
MapIterator=xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>,
1>            _InIt=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
error C2146: syntax error : missing ';' before identifier
'iterator_category'
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
error C2602: 'std::iterator_traits<_Iter>::iterator_category' is not a
member of a base class of 'std::iterator_traits<_Iter>'
1>        with
1>        [
1>            _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\xutility(610) : see declaration of
'std::iterator_traits<_Iter>::iterator_category'
1>        with
1>        [
1>            _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
error C2868: 'std::iterator_traits<_Iter>::iterator_category' : illegal
syntax for using-declaration; expected qualified-name
1>        with
1>        [
1>            _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
--------------------------------------------------------------

Q3) Release Xalan
For release I could build Xalan's "Localization" the xerces library was set
to wchar_t=YES
While to build Xalan's "AllInOne" I set it to wchar_t=NO 
(if it's set to YES there would be tons of errors with regards to wchar
conversion)
and xerces library would have to be build with wchar_t=NO (which makes
sense).
Any ideas why "Localization" wouldn't build with xerces wchar_t=NO?

Any help is great appreciated!!!! Seriously

-- 
View this message in context: http://old.nabble.com/xalan-debug---%3E-drives-me-crazy-tp27026712p27026712.html
Sent from the Xalan - C - Users mailing list archive at Nabble.com.


Re: xalan debug --> drives me crazy

Posted by olesita <ol...@yahoo.com>.


David Bertoni wrote:
> 
> On 1/5/2010 12:31 PM, olesita wrote:
>>
>> Hi there,
>> I'm trying to build xalan 1.10 on vc8.0
>> I got release to work (not without problems) following this instruction:
>> http://mail-archives.apache.org/mod_mbox/xml-xalan-c-users/200709.mbox/%3c001301c7fc82$047987d0$4001a8c0@estec5syvrnjfw%3e
>>
>> While debug mode won't build at all.
>> First trying to build Localizations, the following errors occur:
>>
>> Q1) any idea what's wrong?
>> -------------------------------------
>> 1>------ Build started: Project: Localization, Configuration: Debug Win32
>> ------
>> 1>Performing Makefile project actions
>> 1>Used BITS  = Win32
>> 1>Used CFG  = Debug
>> 1>Used LOCALE  = en_US
>> 1>Used TYPE  = inmem
>> 1>Used XLIFF file: "XalanMsg_en_US.xlf"
>> 1>Finished with BuildMessages.mak
>> 1>Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
>> 1>Copyright (C) Microsoft Corporation.  All rights reserved.
>> 1>  link.exe @C:\DOCUME~1\soukha\LOCALS~1\Temp\nm4E3C.tmp
>> 1>LINK : warning LNK4044: unrecognized option '/pdbtype:sept'; ignored
>> 1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other
>> libs; use /NODEFAULTLIB:library
> You should not have a defaultlib defined.
> 
>> 1>MsgCreator.obj : error LNK2019: unresolved external symbol
>> __CrtSetReportFile referenced in function _main
>> 1>MsgCreator.obj : error LNK2019: unresolved external symbol
>> __CrtSetReportMode referenced in function _main
>> 1>MsgCreator.obj : error LNK2019: unresolved external symbol
>> __CrtSetDbgFlag
>> referenced in function _main
>> 1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
>> __CrtDbgReportW
>> 1>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
>> 8\VC\bin\link.exe"' : return code '0x460'
>> 1>SAX2Handler.obj : error LNK2019: unresolved external symbol
>> __CrtDbgReportW referenced in function "public: char&  __thiscall
>> std::basic_string<char,struct std::char_traits<char>,class
>> std::allocator<char>  >::operator[](unsigned int)"
>> (??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z)
>> 1>Stop.
>> 1>libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol
>> __CrtDbgReportW
>> 1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
>> __CrtDbgReportW
>> 1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol
>> __CrtDbgReportW
>> 1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
>> __malloc_dbg referenced in function "void * __cdecl operator new(unsigned
>> int,struct std::_DebugHeapTag_t const&,char *,int)"
>> (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
>> 1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
>> __malloc_dbg
>> 1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
>> __free_dbg referenced in function "void __cdecl operator delete(void
>> *,struct std::_DebugHeapTag_t const&,char *,int)"
>> (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
>> 1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
>> __free_dbg
>> 1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol
>> __calloc_dbg referenced in function __Getctype
>> 1>..\..\..\..\..\Build\Win32\VC8.0\Debug\MsgCreator.exe : fatal error
>> LNK1120: 7 unresolved externals
> These are all errors because you shouldn't be linking with libcpmtd.lib. 
> I don't know how your files got modified to add this option.
> 
>> 1>NMAKE : fatal error U1077: 'if' : return code '0x2'
>> 1>Stop.
>> 1>Project : error PRJ0019: A tool returned an error code from "Performing
>> Makefile project actions"
>> 1>Build log was saved at
>> "file://e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\Projects\Win32\VC8.0\Utils\Localization\BuildLog.htm"
>> 1>Localization - 17 error(s), 2 warning(s)
>> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
>> ==========
>> -----------------------------------------
>>
>> Q2)
>> Next trying to build "AllInOne" of course it cannot be expected to fully
>> compile due to missing "xalanMessages" but it doesn't even get to that
>> point.
>> Here are the errors, all have to do with 'xutility'
>>
>> ------------------------------------------
>> 1>------ Build started: Project: AllInOne, Configuration: Debug Win32
>> ------
>> 1>Compiling...
>> 1>XalanFileUtility.cpp
>> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(1398) :
>> error C2678: binary '<' : no operator found which takes a left-hand
>> operand
>> of type 'xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>'
>> (or
>> there is no acceptable conversion)
>> 1>         with
>> 1>         [
>> 1>
>> XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
>> 1>
>> XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>
>> 1>         ]
>> 1>
>> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/PlatformSupport/DOMStringHelper.hpp(2043):
>> could be 'bool xalanc_1_10::operator<(const xalanc_1_10::CharVectorType
>> &,const xalanc_1_10::CharVectorType&)' [found using argument-dependent
>> lookup]
>> 1>
>> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/PlatformSupport/DOMStringHelper.hpp(2062):
>> or 'bool xalanc_1_10::operator<(const xalanc_1_10::XalanDOMString&,const
>> xalanc_1_10::XalanDOMString&)' [found using argument-dependent lookup]
>> 1>
>> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/XPath/XalanQName.hpp(424):
>> or 'bool xalanc_1_10::operator<(const xalanc_1_10::XalanQName&,const
>> xalanc_1_10::XalanQName&)' [found using argument-dependent lookup]
>> 1>
>> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/XPath/XObject.hpp(589):
>> or 'bool xalanc_1_10::operator<(const xalanc_1_10::XObjectPtr&,const
>> xalanc_1_10::XObjectPtr&)' [found using argument-dependent lookup]
>> 1>         while trying to match the argument list
>> '(xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,
>> xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>)'
>> 1>         with
>> 1>         [
>> 1>
>> XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
>> 1>
>> XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>
>> 1>         ]
>> 1>         C:\Program Files\Microsoft Visual Studio
>> 8\VC\include\xutility(1406) : see reference to function template
>> instantiation 'void std::_Debug_range2<_InIt>(_RanIt,_RanIt,const wchar_t
>> *,unsigned int,std::random_access_iterator_tag)' being compiled
>> 1>         with
>> 1>         [
>> 1>
>> _InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
>> 1>
>> _RanIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>
>> 1>         ]
>> 1>         C:\Program Files\Microsoft Visual Studio
>> 8\VC\include\xutility(2264) : see reference to function template
>> instantiation 'void std::_Debug_range<_InIt>(_InIt,_InIt,const wchar_t
>> *,unsigned int)' being compiled
>> 1>         with
>> 1>         [
>> 1>
>> _InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>
>> 1>         ]
>> 1>         C:\Program Files\Microsoft Visual Studio
>> 8\VC\include\xutility(2357) : see reference to function template
>> instantiation '_OutIt
>> std::_Copy_opt<xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,_OutIt,std::_Iter_random_helper<_Cat1,_Cat2>::_Iter_random_cat>(_InIt,_InIt,_OutIt,_InOutItCat,std::_Nonscalar_ptr_iterator_tag,std::_Range_checked_iterator_tag)'
>> being compiled
>> 1>         with
>> 1>         [
>> 1>
>> _OutIt=std::back_insert_iterator<xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
>> 1>
>> XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
>> 1>
>> XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,
>> 1>
>> _Cat1=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>::iterator_category,
>> 1>             _Cat2=std::output_iterator_tag,
>> 1>
>> _InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
>> 1>
>> _InOutItCat=std::_Iter_random_helper<xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>::iterator_category,std::output_iterator_tag>::_Iter_random_cat
>> 1>         ]
>> 1>
>> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/Include/XalanDeque.hpp(391)
>> : see reference to function template instantiation
>> 'std::back_insert_iterator<_Container>
>> std::copy<xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,std::back_insert_iterator<_Container>>(_InIt,_InIt,_OutIt)'
>> being compiled
>> 1>         with
>> 1>         [
>> 1>
>> _Container=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,
>> 1>
>> XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
>> 1>
>> XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,
>> 1>
>> _InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
>> 1>
>> _OutIt=std::back_insert_iterator<xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>
>> 1>         ]
>> 1>
>> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/Include/XalanDeque.hpp(389)
>> : while compiling class template member function
>> 'xalanc_1_10::XalanDeque<Type,ConstructionTraits>
>> &xalanc_1_10::XalanDeque<Type,ConstructionTraits>::operator =(const
>> xalanc_1_10::XalanDeque<Type,ConstructionTraits>  &)'
>> 1>         with
>> 1>         [
>> 1>             Type=xalanc_1_10::NameSpace,
>> 1>
>> ConstructionTraits=xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>
>> 1>         ]
>> 1>
>> e:\olessia\nonpcilibraries\xml-xalan_1_10_0\c\src\xalanc\xslt\Stylesheet.hpp(784)
>> : see reference to class template instantiation
>> 'xalanc_1_10::XalanDeque<Type,ConstructionTraits>' being compiled
>> 1>         with
>> 1>         [
>> 1>             Type=xalanc_1_10::NameSpace,
>> 1>
>> ConstructionTraits=xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>
>> 1>         ]
>> 1>XPathFactoryDefault.cpp
>> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
>> error C2039: 'iterator_category' : is not a member of
>> 'xalanc_1_10::XalanSetIterator<Value,MapIterator>'
>> 1>         with
>> 1>         [
>> 1>             Value=const xalanc_1_10::XPath *const ,
>> 1>
>> MapIterator=xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
>> xalanc_1_10::XPath *const
>> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath
>> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath *,bool>::Entry>::Node>>
>> 1>         ]
>> 1>         C:\Program Files\Microsoft Visual Studio
>> 8\VC\include\xutility(1406) : see reference to class template
>> instantiation
>> 'std::iterator_traits<_Iter>' being compiled
>> 1>         with
>> 1>         [
>> 1>             _Iter=xalanc_1_10::XalanSetIterator<const
>> xalanc_1_10::XPath
>> *const
>> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
>> xalanc_1_10::XPath *const
>> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath
>> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
>> 1>         ]
>> 1>         C:\Program Files\Microsoft Visual Studio
>> 8\VC\include\algorithm(24) : see reference to function template
>> instantiation 'void std::_Debug_range<_InIt>(_InIt,_InIt,const wchar_t
>> *,unsigned int)' being compiled
>> 1>         with
>> 1>         [
>> 1>             _InIt=xalanc_1_10::XalanSetIterator<const
>> xalanc_1_10::XPath
>> *const
>> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
>> xalanc_1_10::XPath *const
>> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath
>> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
>> 1>         ]
>> 1>         ..\..\..\..\src\xalanc\XPath\XPathFactoryDefault.cpp(70) : see
>> reference to function template instantiation '_Fn1
>> std::for_each<xalanc_1_10::XalanSetIterator<Value,MapIterator>,xalanc_1_10::XPathFactory::DeleteXPathFunctor>(_InIt,_InIt,_Fn1)'
>> being compiled
>> 1>         with
>> 1>         [
>> 1>             _Fn1=xalanc_1_10::XPathFactory::DeleteXPathFunctor,
>> 1>             Value=const xalanc_1_10::XPath *const ,
>> 1>
>> MapIterator=xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
>> xalanc_1_10::XPath *const
>> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath
>> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath *,bool>::Entry>::Node>>,
>> 1>             _InIt=xalanc_1_10::XalanSetIterator<const
>> xalanc_1_10::XPath
>> *const
>> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
>> xalanc_1_10::XPath *const
>> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath
>> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
>> 1>         ]
>> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
>> error C2146: syntax error : missing ';' before identifier
>> 'iterator_category'
>> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
>> error C4430: missing type specifier - int assumed. Note: C++ does not
>> support default-int
>> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
>> error C2602: 'std::iterator_traits<_Iter>::iterator_category' is not a
>> member of a base class of 'std::iterator_traits<_Iter>'
>> 1>         with
>> 1>         [
>> 1>             _Iter=xalanc_1_10::XalanSetIterator<const
>> xalanc_1_10::XPath
>> *const
>> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
>> xalanc_1_10::XPath *const
>> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath
>> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
>> 1>         ]
>> 1>         C:\Program Files\Microsoft Visual Studio
>> 8\VC\include\xutility(610) : see declaration of
>> 'std::iterator_traits<_Iter>::iterator_category'
>> 1>         with
>> 1>         [
>> 1>             _Iter=xalanc_1_10::XalanSetIterator<const
>> xalanc_1_10::XPath
>> *const
>> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
>> xalanc_1_10::XPath *const
>> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath
>> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
>> 1>         ]
>> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
>> error C2868: 'std::iterator_traits<_Iter>::iterator_category' : illegal
>> syntax for using-declaration; expected qualified-name
>> 1>         with
>> 1>         [
>> 1>             _Iter=xalanc_1_10::XalanSetIterator<const
>> xalanc_1_10::XPath
>> *const
>> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
>> xalanc_1_10::XPath *const
>> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath
>> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
>> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
>> 1>         ]
>> --------------------------------------------------------------
>>
>> Q3) Release Xalan
>> For release I could build Xalan's "Localization" the xerces library was
>> set
>> to wchar_t=YES
>> While to build Xalan's "AllInOne" I set it to wchar_t=NO
>> (if it's set to YES there would be tons of errors with regards to wchar
>> conversion)
>> and xerces library would have to be build with wchar_t=NO (which makes
>> sense).
>> Any ideas why "Localization" wouldn't build with xerces wchar_t=NO?
> There should never be a mismatch between the two libraries with the 
> option. If there is a mismatch, you'll get tons of linker errors.
> 
>>
>> Any help is great appreciated!!!! Seriously
> You should just get the latest source code from the Subversion 
> repository and use that. It works fine with MSVC8 and MSVC9.
> 
> If you need help getting the code from the repository, you can search 
> the archives of the mailing list for detailed instructions.
> 
> Dave
> 
> 

No don't need help getting code, that's not the issue.
But i did go over the complier flags and that seem to fix the issue for now.

So thanks!
-- 
View this message in context: http://old.nabble.com/xalan-debug---%3E-drives-me-crazy-tp27026712p27358530.html
Sent from the Xalan - C - Users mailing list archive at Nabble.com.


Re: xalan debug --> drives me crazy

Posted by David Bertoni <db...@apache.org>.
On 1/5/2010 12:31 PM, olesita wrote:
>
> Hi there,
> I'm trying to build xalan 1.10 on vc8.0
> I got release to work (not without problems) following this instruction:
> http://mail-archives.apache.org/mod_mbox/xml-xalan-c-users/200709.mbox/%3c001301c7fc82$047987d0$4001a8c0@estec5syvrnjfw%3e
>
> While debug mode won't build at all.
> First trying to build Localizations, the following errors occur:
>
> Q1) any idea what's wrong?
> -------------------------------------
> 1>------ Build started: Project: Localization, Configuration: Debug Win32
> ------
> 1>Performing Makefile project actions
> 1>Used BITS  = Win32
> 1>Used CFG  = Debug
> 1>Used LOCALE  = en_US
> 1>Used TYPE  = inmem
> 1>Used XLIFF file: "XalanMsg_en_US.xlf"
> 1>Finished with BuildMessages.mak
> 1>Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
> 1>Copyright (C) Microsoft Corporation.  All rights reserved.
> 1>  link.exe @C:\DOCUME~1\soukha\LOCALS~1\Temp\nm4E3C.tmp
> 1>LINK : warning LNK4044: unrecognized option '/pdbtype:sept'; ignored
> 1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other
> libs; use /NODEFAULTLIB:library
You should not have a defaultlib defined.

> 1>MsgCreator.obj : error LNK2019: unresolved external symbol
> __CrtSetReportFile referenced in function _main
> 1>MsgCreator.obj : error LNK2019: unresolved external symbol
> __CrtSetReportMode referenced in function _main
> 1>MsgCreator.obj : error LNK2019: unresolved external symbol __CrtSetDbgFlag
> referenced in function _main
> 1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
> __CrtDbgReportW
> 1>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 8\VC\bin\link.exe"' : return code '0x460'
> 1>SAX2Handler.obj : error LNK2019: unresolved external symbol
> __CrtDbgReportW referenced in function "public: char&  __thiscall
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char>  >::operator[](unsigned int)"
> (??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z)
> 1>Stop.
> 1>libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol
> __CrtDbgReportW
> 1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
> __CrtDbgReportW
> 1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol
> __CrtDbgReportW
> 1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
> __malloc_dbg referenced in function "void * __cdecl operator new(unsigned
> int,struct std::_DebugHeapTag_t const&,char *,int)"
> (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
> 1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
> __malloc_dbg
> 1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
> __free_dbg referenced in function "void __cdecl operator delete(void
> *,struct std::_DebugHeapTag_t const&,char *,int)"
> (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
> 1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
> __free_dbg
> 1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol
> __calloc_dbg referenced in function __Getctype
> 1>..\..\..\..\..\Build\Win32\VC8.0\Debug\MsgCreator.exe : fatal error
> LNK1120: 7 unresolved externals
These are all errors because you shouldn't be linking with libcpmtd.lib. 
I don't know how your files got modified to add this option.

> 1>NMAKE : fatal error U1077: 'if' : return code '0x2'
> 1>Stop.
> 1>Project : error PRJ0019: A tool returned an error code from "Performing
> Makefile project actions"
> 1>Build log was saved at
> "file://e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\Projects\Win32\VC8.0\Utils\Localization\BuildLog.htm"
> 1>Localization - 17 error(s), 2 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
> -----------------------------------------
>
> Q2)
> Next trying to build "AllInOne" of course it cannot be expected to fully
> compile due to missing "xalanMessages" but it doesn't even get to that
> point.
> Here are the errors, all have to do with 'xutility'
>
> ------------------------------------------
> 1>------ Build started: Project: AllInOne, Configuration: Debug Win32 ------
> 1>Compiling...
> 1>XalanFileUtility.cpp
> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(1398) :
> error C2678: binary '<' : no operator found which takes a left-hand operand
> of type 'xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>' (or
> there is no acceptable conversion)
> 1>         with
> 1>         [
> 1>
> XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
> 1>
> XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>
> 1>         ]
> 1>
> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/PlatformSupport/DOMStringHelper.hpp(2043):
> could be 'bool xalanc_1_10::operator<(const xalanc_1_10::CharVectorType
> &,const xalanc_1_10::CharVectorType&)' [found using argument-dependent
> lookup]
> 1>
> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/PlatformSupport/DOMStringHelper.hpp(2062):
> or 'bool xalanc_1_10::operator<(const xalanc_1_10::XalanDOMString&,const
> xalanc_1_10::XalanDOMString&)' [found using argument-dependent lookup]
> 1>
> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/XPath/XalanQName.hpp(424):
> or 'bool xalanc_1_10::operator<(const xalanc_1_10::XalanQName&,const
> xalanc_1_10::XalanQName&)' [found using argument-dependent lookup]
> 1>
> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/XPath/XObject.hpp(589):
> or 'bool xalanc_1_10::operator<(const xalanc_1_10::XObjectPtr&,const
> xalanc_1_10::XObjectPtr&)' [found using argument-dependent lookup]
> 1>         while trying to match the argument list
> '(xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,
> xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>)'
> 1>         with
> 1>         [
> 1>
> XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
> 1>
> XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>
> 1>         ]
> 1>         C:\Program Files\Microsoft Visual Studio
> 8\VC\include\xutility(1406) : see reference to function template
> instantiation 'void std::_Debug_range2<_InIt>(_RanIt,_RanIt,const wchar_t
> *,unsigned int,std::random_access_iterator_tag)' being compiled
> 1>         with
> 1>         [
> 1>
> _InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
> 1>
> _RanIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>
> 1>         ]
> 1>         C:\Program Files\Microsoft Visual Studio
> 8\VC\include\xutility(2264) : see reference to function template
> instantiation 'void std::_Debug_range<_InIt>(_InIt,_InIt,const wchar_t
> *,unsigned int)' being compiled
> 1>         with
> 1>         [
> 1>
> _InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>
> 1>         ]
> 1>         C:\Program Files\Microsoft Visual Studio
> 8\VC\include\xutility(2357) : see reference to function template
> instantiation '_OutIt
> std::_Copy_opt<xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,_OutIt,std::_Iter_random_helper<_Cat1,_Cat2>::_Iter_random_cat>(_InIt,_InIt,_OutIt,_InOutItCat,std::_Nonscalar_ptr_iterator_tag,std::_Range_checked_iterator_tag)'
> being compiled
> 1>         with
> 1>         [
> 1>
> _OutIt=std::back_insert_iterator<xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
> 1>
> XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
> 1>
> XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,
> 1>
> _Cat1=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>::iterator_category,
> 1>             _Cat2=std::output_iterator_tag,
> 1>
> _InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
> 1>
> _InOutItCat=std::_Iter_random_helper<xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>::iterator_category,std::output_iterator_tag>::_Iter_random_cat
> 1>         ]
> 1>
> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/Include/XalanDeque.hpp(391)
> : see reference to function template instantiation
> 'std::back_insert_iterator<_Container>
> std::copy<xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,std::back_insert_iterator<_Container>>(_InIt,_InIt,_OutIt)'
> being compiled
> 1>         with
> 1>         [
> 1>
> _Container=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,
> 1>
> XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,
> 1>
> XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,
> 1>
> _InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,
> 1>
> _OutIt=std::back_insert_iterator<xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>
> 1>         ]
> 1>
> e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/Include/XalanDeque.hpp(389)
> : while compiling class template member function
> 'xalanc_1_10::XalanDeque<Type,ConstructionTraits>
> &xalanc_1_10::XalanDeque<Type,ConstructionTraits>::operator =(const
> xalanc_1_10::XalanDeque<Type,ConstructionTraits>  &)'
> 1>         with
> 1>         [
> 1>             Type=xalanc_1_10::NameSpace,
> 1>
> ConstructionTraits=xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>
> 1>         ]
> 1>
> e:\olessia\nonpcilibraries\xml-xalan_1_10_0\c\src\xalanc\xslt\Stylesheet.hpp(784)
> : see reference to class template instantiation
> 'xalanc_1_10::XalanDeque<Type,ConstructionTraits>' being compiled
> 1>         with
> 1>         [
> 1>             Type=xalanc_1_10::NameSpace,
> 1>
> ConstructionTraits=xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>
> 1>         ]
> 1>XPathFactoryDefault.cpp
> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
> error C2039: 'iterator_category' : is not a member of
> 'xalanc_1_10::XalanSetIterator<Value,MapIterator>'
> 1>         with
> 1>         [
> 1>             Value=const xalanc_1_10::XPath *const ,
> 1>
> MapIterator=xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
> xalanc_1_10::XPath *const
> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath
> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath *,bool>::Entry>::Node>>
> 1>         ]
> 1>         C:\Program Files\Microsoft Visual Studio
> 8\VC\include\xutility(1406) : see reference to class template instantiation
> 'std::iterator_traits<_Iter>' being compiled
> 1>         with
> 1>         [
> 1>             _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
> *const
> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
> xalanc_1_10::XPath *const
> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath
> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
> 1>         ]
> 1>         C:\Program Files\Microsoft Visual Studio
> 8\VC\include\algorithm(24) : see reference to function template
> instantiation 'void std::_Debug_range<_InIt>(_InIt,_InIt,const wchar_t
> *,unsigned int)' being compiled
> 1>         with
> 1>         [
> 1>             _InIt=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
> *const
> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
> xalanc_1_10::XPath *const
> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath
> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
> 1>         ]
> 1>         ..\..\..\..\src\xalanc\XPath\XPathFactoryDefault.cpp(70) : see
> reference to function template instantiation '_Fn1
> std::for_each<xalanc_1_10::XalanSetIterator<Value,MapIterator>,xalanc_1_10::XPathFactory::DeleteXPathFunctor>(_InIt,_InIt,_Fn1)'
> being compiled
> 1>         with
> 1>         [
> 1>             _Fn1=xalanc_1_10::XPathFactory::DeleteXPathFunctor,
> 1>             Value=const xalanc_1_10::XPath *const ,
> 1>
> MapIterator=xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
> xalanc_1_10::XPath *const
> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath
> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath *,bool>::Entry>::Node>>,
> 1>             _InIt=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
> *const
> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
> xalanc_1_10::XPath *const
> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath
> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
> 1>         ]
> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
> error C2146: syntax error : missing ';' before identifier
> 'iterator_category'
> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
> error C4430: missing type specifier - int assumed. Note: C++ does not
> support default-int
> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
> error C2602: 'std::iterator_traits<_Iter>::iterator_category' is not a
> member of a base class of 'std::iterator_traits<_Iter>'
> 1>         with
> 1>         [
> 1>             _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
> *const
> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
> xalanc_1_10::XPath *const
> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath
> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
> 1>         ]
> 1>         C:\Program Files\Microsoft Visual Studio
> 8\VC\include\xutility(610) : see declaration of
> 'std::iterator_traits<_Iter>::iterator_category'
> 1>         with
> 1>         [
> 1>             _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
> *const
> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
> xalanc_1_10::XPath *const
> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath
> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
> 1>         ]
> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
> error C2868: 'std::iterator_traits<_Iter>::iterator_category' : illegal
> syntax for using-declaration; expected qualified-name
> 1>         with
> 1>         [
> 1>             _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
> *const
> ,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const
> xalanc_1_10::XPath *const
> ,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath
> *,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
> xalanc_1_10::XPath *,bool>::Entry>::Node>>>
> 1>         ]
> --------------------------------------------------------------
>
> Q3) Release Xalan
> For release I could build Xalan's "Localization" the xerces library was set
> to wchar_t=YES
> While to build Xalan's "AllInOne" I set it to wchar_t=NO
> (if it's set to YES there would be tons of errors with regards to wchar
> conversion)
> and xerces library would have to be build with wchar_t=NO (which makes
> sense).
> Any ideas why "Localization" wouldn't build with xerces wchar_t=NO?
There should never be a mismatch between the two libraries with the 
option. If there is a mismatch, you'll get tons of linker errors.

>
> Any help is great appreciated!!!! Seriously
You should just get the latest source code from the Subversion 
repository and use that. It works fine with MSVC8 and MSVC9.

If you need help getting the code from the repository, you can search 
the archives of the mailing list for detailed instructions.

Dave

Re: xalan debug --> drives me crazy

Posted by gp...@desknetinc.com.
The newer v1.11 code base compiles and links OK in debug configuration with
VC9, FWIW - probably with VC8 too. Here's how to get it...

   I don't believe there has ever been an official
   1.11 release- so I pulled the source on its way to 1.11 from the
   Subversion
   repository.

   With any command line Subversion client, use a line like this...

       svn co http://svn.apache.org/repos/asf/xalan/c/trunk .

   ...to check out the source tree into the current folder. I used the
   CollabNet client. There are GUI clients out there too.

   What builds from such a checkout is versioned as 1.11 .


---------------------------
Glenn Picher
Senior Software Engineer
DeskNet, Inc.




                                                                           
             olesita                                                       
             <olesitamail@yaho                                             
             o.com>                                                     To 
                                       xalan-c-users@xml.apache.org        
             01/05/2010 03:32                                           cc 
             PM                                                            
                                                                   Subject 
                                       xalan debug --> drives me crazy     
             Please respond to                                             
             xalan-c-users@xml                                             
                .apache.org                                                
                                                                           
                                                                           
                                                                           





Hi there,
I'm trying to build xalan 1.10 on vc8.0
I got release to work (not without problems) following this instruction:
http://mail-archives.apache.org/mod_mbox/xml-xalan-c-users/200709.mbox/%3c001301c7fc82$047987d0$4001a8c0@estec5syvrnjfw%3e


While debug mode won't build at all.
First trying to build Localizations, the following errors occur:

Q1) any idea what's wrong?
-------------------------------------
1>------ Build started: Project: Localization, Configuration: Debug Win32
------
1>Performing Makefile project actions
1>Used BITS  = Win32
1>Used CFG  = Debug
1>Used LOCALE  = en_US
1>Used TYPE  = inmem
1>Used XLIFF file: "XalanMsg_en_US.xlf"
1>Finished with BuildMessages.mak
1>Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1> link.exe @C:\DOCUME~1\soukha\LOCALS~1\Temp\nm4E3C.tmp
1>LINK : warning LNK4044: unrecognized option '/pdbtype:sept'; ignored
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other
libs; use /NODEFAULTLIB:library
1>MsgCreator.obj : error LNK2019: unresolved external symbol
__CrtSetReportFile referenced in function _main
1>MsgCreator.obj : error LNK2019: unresolved external symbol
__CrtSetReportMode referenced in function _main
1>MsgCreator.obj : error LNK2019: unresolved external symbol
__CrtSetDbgFlag
referenced in function _main
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
__CrtDbgReportW
1>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\bin\link.exe"' : return code '0x460'
1>SAX2Handler.obj : error LNK2019: unresolved external symbol
__CrtDbgReportW referenced in function "public: char & __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::operator[](unsigned int)"
(??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAADI@Z)
1>Stop.
1>libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol
__CrtDbgReportW
1>libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol
__CrtDbgReportW
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol
__CrtDbgReportW
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
__malloc_dbg referenced in function "void * __cdecl operator new(unsigned
int,struct std::_DebugHeapTag_t const &,char *,int)"
(??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
__malloc_dbg
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol
__free_dbg referenced in function "void __cdecl operator delete(void
*,struct std::_DebugHeapTag_t const &,char *,int)"
(??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol
__free_dbg
1>libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol
__calloc_dbg referenced in function __Getctype
1>..\..\..\..\..\Build\Win32\VC8.0\Debug\MsgCreator.exe : fatal error
LNK1120: 7 unresolved externals
1>NMAKE : fatal error U1077: 'if' : return code '0x2'
1>Stop.
1>Project : error PRJ0019: A tool returned an error code from "Performing
Makefile project actions"
1>Build log was saved at
"
file://e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\Projects\Win32\VC8.0\Utils\Localization\BuildLog.htm
"
1>Localization - 17 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
-----------------------------------------

Q2)
Next trying to build "AllInOne" of course it cannot be expected to fully
compile due to missing "xalanMessages" but it doesn't even get to that
point.
Here are the errors, all have to do with 'xutility'

------------------------------------------
1>------ Build started: Project: AllInOne, Configuration: Debug Win32
------
1>Compiling...
1>XalanFileUtility.cpp
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(1398) :
error C2678: binary '<' : no operator found which takes a left-hand operand
of type 'xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>' (or
there is no acceptable conversion)
1>        with
1>        [
1>
XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,

1>
XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>

1>        ]
1>
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/PlatformSupport/DOMStringHelper.hpp(2043):

could be 'bool xalanc_1_10::operator <(const xalanc_1_10::CharVectorType
&,const xalanc_1_10::CharVectorType &)' [found using argument-dependent
lookup]
1>
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/PlatformSupport/DOMStringHelper.hpp(2062):

or 'bool xalanc_1_10::operator <(const xalanc_1_10::XalanDOMString &,const
xalanc_1_10::XalanDOMString &)' [found using argument-dependent lookup]
1>
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/XPath/XalanQName.hpp(424):

or 'bool xalanc_1_10::operator <(const xalanc_1_10::XalanQName &,const
xalanc_1_10::XalanQName &)' [found using argument-dependent lookup]
1>
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/XPath/XObject.hpp(589):

or 'bool xalanc_1_10::operator <(const xalanc_1_10::XObjectPtr &,const
xalanc_1_10::XObjectPtr &)' [found using argument-dependent lookup]
1>        while trying to match the argument list
'(xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,
xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>)'
1>        with
1>        [
1>
XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,

1>
XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>

1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\xutility(1406) : see reference to function template
instantiation 'void std::_Debug_range2<_InIt>(_RanIt,_RanIt,const wchar_t
*,unsigned int,std::random_access_iterator_tag)' being compiled
1>        with
1>        [
1>
_InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,

1>
_RanIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>

1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\xutility(2264) : see reference to function template
instantiation 'void std::_Debug_range<_InIt>(_InIt,_InIt,const wchar_t
*,unsigned int)' being compiled
1>        with
1>        [
1>
_InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>

1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\xutility(2357) : see reference to function template
instantiation '_OutIt
std::_Copy_opt<xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,_OutIt,std::_Iter_random_helper<_Cat1,_Cat2>::_Iter_random_cat>(_InIt,_InIt,_OutIt,_InOutItCat,std::_Nonscalar_ptr_iterator_tag,std::_Range_checked_iterator_tag)'

being compiled
1>        with
1>        [
1>
_OutIt=std::back_insert_iterator<xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,

1>
XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,

1>
XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,

1>
_Cat1=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>::iterator_category,

1>            _Cat2=std::output_iterator_tag,
1>
_InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,

1>
_InOutItCat=std::_Iter_random_helper<xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>::iterator_category,std::output_iterator_tag>::_Iter_random_cat

1>        ]
1>
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/Include/XalanDeque.hpp(391)

: see reference to function template instantiation
'std::back_insert_iterator<_Container>
std::copy<xalanc_1_10::XalanDequeIterator<XalanDequeTraits,XalanDeque>,std::back_insert_iterator<_Container>>(_InIt,_InIt,_OutIt)'

being compiled
1>        with
1>        [
1>
_Container=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,

1>
XalanDequeTraits=xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,

1>
XalanDeque=xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>,

1>
_InIt=xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::NameSpace>,xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>,

1>
_OutIt=std::back_insert_iterator<xalanc_1_10::XalanDeque<xalanc_1_10::NameSpace,xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>>>

1>        ]
1>
e:\olessia\nonPciLibraries\xml-xalan_1_10_0\c\src\xalanc/Include/XalanDeque.hpp(389)

: while compiling class template member function
'xalanc_1_10::XalanDeque<Type,ConstructionTraits>
&xalanc_1_10::XalanDeque<Type,ConstructionTraits>::operator =(const
xalanc_1_10::XalanDeque<Type,ConstructionTraits> &)'
1>        with
1>        [
1>            Type=xalanc_1_10::NameSpace,
1>
ConstructionTraits=xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>

1>        ]
1>
e:\olessia\nonpcilibraries\xml-xalan_1_10_0\c\src\xalanc\xslt\Stylesheet.hpp(784)

: see reference to class template instantiation
'xalanc_1_10::XalanDeque<Type,ConstructionTraits>' being compiled
1>        with
1>        [
1>            Type=xalanc_1_10::NameSpace,
1>
ConstructionTraits=xalanc_1_10::ConstructWithMemoryManagerTraits<xalanc_1_10::NameSpace>

1>        ]
1>XPathFactoryDefault.cpp
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
error C2039: 'iterator_category' : is not a member of
'xalanc_1_10::XalanSetIterator<Value,MapIterator>'
1>        with
1>        [
1>            Value=const xalanc_1_10::XPath *const ,
1>
MapIterator=xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const

xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const

xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>
1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\xutility(1406) : see reference to class template instantiation
'std::iterator_traits<_Iter>' being compiled
1>        with
1>        [
1>            _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const

xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const

xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\algorithm(24) : see reference to function template
instantiation 'void std::_Debug_range<_InIt>(_InIt,_InIt,const wchar_t
*,unsigned int)' being compiled
1>        with
1>        [
1>            _InIt=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const

xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const

xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
1>        ..\..\..\..\src\xalanc\XPath\XPathFactoryDefault.cpp(70) : see
reference to function template instantiation '_Fn1
std::for_each<xalanc_1_10::XalanSetIterator<Value,MapIterator>,xalanc_1_10::XPathFactory::DeleteXPathFunctor>(_InIt,_InIt,_Fn1)'

being compiled
1>        with
1>        [
1>            _Fn1=xalanc_1_10::XPathFactory::DeleteXPathFunctor,
1>            Value=const xalanc_1_10::XPath *const ,
1>
MapIterator=xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const

xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const

xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>,
1>            _InIt=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const

xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const

xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
error C2146: syntax error : missing ';' before identifier
'iterator_category'
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
error C2602: 'std::iterator_traits<_Iter>::iterator_category' is not a
member of a base class of 'std::iterator_traits<_Iter>'
1>        with
1>        [
1>            _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const

xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const

xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
1>        C:\Program Files\Microsoft Visual Studio
8\VC\include\xutility(610) : see declaration of
'std::iterator_traits<_Iter>::iterator_category'
1>        with
1>        [
1>            _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const

xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const

xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(610) :
error C2868: 'std::iterator_traits<_Iter>::iterator_category' : illegal
syntax for using-declaration; expected qualified-name
1>        with
1>        [
1>            _Iter=xalanc_1_10::XalanSetIterator<const xalanc_1_10::XPath
*const
,xalanc_1_10::XalanMapIterator<xalanc_1_10::XalanMapConstIteratorTraits<std::pair<const

xalanc_1_10::XPath *const
,bool>>,xalanc_1_10::XalanListIteratorBase<xalanc_1_10::XalanListIteratorTraits<xalanc_1_10::XalanMap<const

xalanc_1_10::XPath
*,bool>::Entry>,xalanc_1_10::XalanList<xalanc_1_10::XalanMap<const
xalanc_1_10::XPath *,bool>::Entry>::Node>>>
1>        ]
--------------------------------------------------------------

Q3) Release Xalan
For release I could build Xalan's "Localization" the xerces library was set
to wchar_t=YES
While to build Xalan's "AllInOne" I set it to wchar_t=NO
(if it's set to YES there would be tons of errors with regards to wchar
conversion)
and xerces library would have to be build with wchar_t=NO (which makes
sense).
Any ideas why "Localization" wouldn't build with xerces wchar_t=NO?

Any help is great appreciated!!!! Seriously

--
View this message in context:
http://old.nabble.com/xalan-debug---%3E-drives-me-crazy-tp27026712p27026712.html

Sent from the Xalan - C - Users mailing list archive at Nabble.com.