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 bu...@apache.org on 2002/01/14 20:01:36 UTC

DO NOT REPLY [Bug 5847] New: - ICUMsgLoader can't be compiled with gcc 3.0.3 and ICU2

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5847>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5847

ICUMsgLoader can't be compiled with gcc 3.0.3 and ICU2

           Summary: ICUMsgLoader can't be compiled with gcc 3.0.3 and ICU2
           Product: Xerces-C++
           Version: 1.6.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Build
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: artiom@phreaker.net


when compiling default code, class ResourceBundle is not fetched from
unicode/resbund.h, only forward declaration is seen by compiler. it says

ICUMsgLoader.cpp: In constructor `ICUMsgLoader::ICUMsgLoader(const XMLCh*)':
ICUMsgLoader.cpp:122: parse error before `(' token
ICUMsgLoader.cpp: In destructor `virtual ICUMsgLoader::~ICUMsgLoader()':
ICUMsgLoader.cpp:131: invalid use of undefined type `class ResourceBundle'
ICUMsgLoader.hpp:89: forward declaration of `class ResourceBundle'
ICUMsgLoader.cpp: In member function `virtual bool 
   ICUMsgLoader::loadMsg(unsigned int, XMLCh*, unsigned int)':
ICUMsgLoader.cpp:159: invalid use of undefined type `class ResourceBundle'
ICUMsgLoader.hpp:89: forward declaration of `class ResourceBundle'
make: *** [ICUMsgLoader.o] Error 1

switching order of
#include "ICUMsgLoader.hpp"
and 
#include "unicode/resbund.h"
helps. I'm not a c++ guru - maybe it's lamers fix, of course =)

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