Msvc compilation errors

"srinidhi" <srinidhi-jK/j0ei38UVWk0Htik3J/[email protected]> Wed, 08 Sep 2004 12:24:12 +0530
Newsgroups gmane.comp.parsers.hapy.user
Message-ID <[email protected]>
Hi
  I am trying to build the hapy parser library under MSVC windows. 

  I am getting the following errors: 

Compiling...
Algorithm.cpp
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(98 
) : error C2027: use of undefined type 'PreeKidsIterator<class Hapy::Pree>'
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(98 
) : error C2146: syntax error : missing ';' before identifier 
'iterator_category'
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(98 
) : error C2868: 'iterator_category' : illegal syntax for using-declaration; 
expected qualified-name
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(99 
) : error C2027: use of undefined type 'PreeKidsIterator<class Hapy::Pree>'
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(99 
) : error C2146: syntax error : missing ';' before identifier 'value_type'
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(99 
) : error C2868: 'value_type' : illegal syntax for using-declaration; 
expected qualified-name
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(10 
0) : error C2027: use of undefined type 'PreeKidsIterator<class Hapy::Pree>'
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(10 
0) : error C2146: syntax error : missing ';' before identifier 
'difference_type'
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(10 
0) : error C2868: 'difference_type' : illegal syntax for using-declaration; 
expected qualified-name
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(10 
1) : error C2027: use of undefined type 'PreeKidsIterator<class Hapy::Pree>'
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(10 
1) : error C2146: syntax error : missing ';' before identifier 'pointer'
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(10 
1) : error C2868: 'pointer' : illegal syntax for using-declaration; expected 
qualified-name
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(10 
2) : error C2027: use of undefined type 'PreeKidsIterator<class Hapy::Pree>'
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(10 
2) : error C2146: syntax error : missing ';' before identifier 'reference'
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
c:\mmp3\master\base\external\c\stlport-4.6.2\stlport\stl\_iterator_base.h(10 
2) : error C2868: 'reference' : illegal syntax for using-declaration; 
expected qualified-name
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(17) : see 
reference to class template instantiation '_STL::iterator_traits<class 
Hapy::PreeKidsIterator<class Hapy::Pree> >' being compiled
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\preekids.h(32) : warning C4284: 
return type for 'Hapy::PreeKidsIterator<class Hapy::Pree>::operator ->' is 
'int' (ie; not a UDT or reference to a UDT.  Will produce errors if applied 
using infix notation)
       d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(113) : see 
reference to class template instantiation 'Hapy::PreeKidsIterator<class 
Hapy::Pree>' being compiled
d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(114) : error C2839: 
invalid return type 'int' for overloaded 'operator ->'
d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(114) : error C2227: left 
of '->rid' must point to class/struct/union
d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(115) : error C2102: '&' 
requires l-value
d:\ozone3\hapy\hapy-0.0.6\src\include\hapy\pree.h(116) : error C2664: 
'find_first' : cannot convert parameter 1 from 'int' to 'const class 
Hapy::Pree &'
       Reason: cannot convert from 'int' to 'const class Hapy::Pree'
       No constructor could take the source type, or constructor overload 
resolution was ambiguous
Error executing cl.exe. 


What is the fix for this?? 

regards
Srinidhi 


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click