Re: [Doxygen-develop] Visual C++ 6, the latest CVS release, and CodeWarrior integration
Brought to you by:
dimitri
From: Dimitri v. H. <di...@st...> - 2002-08-06 13:57:50
|
On Tue, Aug 06, 2002 at 12:01:23PM +0100, Simon Goodwin wrote: > Hi Doxygenators, > > I just got the new CVS release and tried to compile it with VC++6 > on Windoze2k, and got the following error messages when I ran the > make.bat script: > > c:\dev\doxygen-1.2.17\src\ce_parse.cpp(337) : error C2620: union 'yyalloc' : member 'yyvs' has user-defined constructor or non-trivial default constructor > c:\dev\doxygen-1.2.17\src\ce_parse.cpp(784) : error C2039: 'yyvs' : is not a member of 'yyalloc' > c:\dev\doxygen-1.2.17\src\ce_parse.cpp(335) : see declaration of 'yyalloc' > > I worked around this by copying that source file from the > previous doxygen release: > > cp ../doxygen-1.2.16/src/ce_parse.cpp src/ce_parse.cpp From the manual: Bison problems " Versions 1.31 to 1.34 of bison contain a "bug" that results in a compiler errors like this: ce_parse.cpp:348: member `class CPPValue yyalloc::yyvs' with constructor not allowed in union This problem has been solved in version 1.35 (versions before 1.31 will also work). " i.e. time to upgrade bison. > This got it to build from the command line. I don't know if I have > broken anything by doing so but it seems superficially OK. Maybe > a flex/bison devotee can explain what's going on? The ce_parse.cpp > file is being generated automagically. It's also possible that the > 'problem' is in Risible (sic) C++6. Has anyone else tried this recently? > > In any case, I needed to add the following to the project file to get > it to build from the VC++6 IDE: > > src\docparser.cpp > src\docparser.h > src\doctokeniser.h > src\doctokeniser.cpp > src\cmdmapper.cpp > src\cmdmapper.h For completeness could you please also include: src\docvisitor.h src\printdocvisitor.h > I attach an updated DSP file which encapsulates these additions. Note > that you still need to run 'make msvc' once from the command line > before the IDE build will work. That's because VC++6 does not know > how to parse the flex and bison files that generate some of the C source > that needs to be compiled (and I don't know how to tell it to do so ;-). > Once you've run that make once, you can build variants from the IDE > as long as you have not changed any of the flex and bison data files. > > Cheers > > Simon Goodwin > Technology Programmer, ATD > > P.S. if any of you have to use or support Metrowerks's CodeWarrior you > may like to know a way to integrate Doxygenated helpfile documentation > into their IDE (similar to the MSDNIntegrator for DevStudio - I have had > no replies to my request for an equivalent for VC++7 (aka .NET), sadly). Maybe not too many people are already using VC++ for various reasons (I am one those people). Nice to see you are working on CodeWarrior support though. Regards, Dimitri |