Without seeing the code, it's hard to say for sure what's going on, but it
looks like the odbc::ErrorHandler class conflicts with Xerces' SAX
ErrorHandler class.  It's  happening because there is a using directive to
bring odbc::ErrorHandler into the global namespace.

You should look for any statements like:

using namespace odbc;
using odbc::ErrorHandler;

and remove them.  You'll then need to use the fully qualified name to refer
to odbc::ErrorHandler.

Dave



                                                                                
                                                            
                      "Dimitry                                                  
                                                            
                      Chernyshov"              To:      
<[email protected]>                                                  
    
                      <[EMAIL PROTECTED]         cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                                
                      n.ru>                    Subject: A problem compiling an 
app with Xalan-C 1.3 and FreeODBC++                          
                                                                                
                                                            
                      05/13/2002 02:01                                          
                                                            
                      AM                                                        
                                                            
                                                                                
                                                            
                                                                                
                                                            



Hi Xalan users,

Did anybody encounter the following problem?

When compiling an application using both Xalan-C 1.3 and libodbc++ 0.2.2 at
Linux, the following error occurs:

In file included from src/server/IBPublicatorTest.cpp:12:
/home/packages/xalan-c-1_3/xerces-c1_6_0-linux/include/sax/HandlerBase.hpp:1

21: use of `ErrorHandler' is ambiguous
/home/packages/xalan-c-1_3/xerces-c1_6_0-linux/include/sax/ErrorHandler.hpp:

223:   first declared as `class ErrorHandler' here
/usr/local/include/odbc++/errorhandler.h:127:   also declared as `class
::odbc::ErrorHandler' here

Any help would be greatly appreciated!!

Best,
Dimitry Chernyshov,
Technology Group Managing Director,
Polar Design
--------------------------
[EMAIL PROTECTED]
http://www.polardesign.com
phone/fax: +7 (095) 363 0708






Reply via email to