DCAtomicField constructor

Hi,

while trying to build panda, I get these error messages:

dcParser.yxx(491) : error C2661: 'DCAtomicField::DCAtomicField' : no overloaded
function takes 2 arguments
dcParser.yxx(493) : error C2661: 'DCAtomicField::DCAtomicField' : no overloaded
function takes 2 arguments

Now looking into dcAtomicField.h, I find only one public constructors there:

DCAtomicField(const string &name, DCClass *dclass, bool bogus_field);

which takes three arguments.
On the other hand, in panda3d/direct/src/dcparser/dcParser.cxx.prebuilt, lines 1789 and 1791 call the constructor with two arguments:

current_atomic = new DCAtomicField(yyvsp[-1].str, temp_class);
//...
current_atomic = new DCAtomicField(yyvsp[-1].str, current_class);

How could this ever work? Am I missing anything? I’m building directly from CVS and I’ve checked, both files are up-to-date…

Any hint would be extremely welcome as this is a problem I don’t see how I could fix myself.

Thanks,

Max Hajek

Whoops, this is a problem with dcParser.cxx.prebuilt being out-of-date. This happens sometimes, since we have to remember to run a command by hand to regenerate this whenever we change dcParser.yxx (which is the source that generates dcParser.cxx.prebuilt, but only if you have bison installed).

I just re-generated this, and checked it in. When the fix propagates to the anonymous CVS servers, you should be able to pick it up.

David

Cool, thanks!

How long does it usually take for changes to propagate to the anonymous CVS servers?

Thanks a lot,
Max Hajek

It seems propagation is very quick - because I just got an update for the files in question :wink:

Thanks again,

Max Hajek

btw, dclexer.cxx.prebuilt is the next file with mac-lineendings…

I just ran a script to find and fix all the incorrect line endings in the CVS tree. It fixed the following files:

direct/src/dcparser/dcLexer.cxx.prebuilt
direct/src/directdServer/directdCommand
direct/src/doc/howto.DIRECT
direct/src/doc/howto.adjust
direct/src/leveleditor/Configrc
direct/src/leveleditor/run.bat
dtool/src/cppparser/cppPreprocessor.cxx
dtool/src/parser-inc/cv.h
dtool/src/parser-inc/cvtypes.h
dtool/src/parser-inc/cxcore.h
dtool/src/parser-inc/cxerror.h
dtool/src/parser-inc/cxtypes.h
dtool/src/parser-inc/highgui.h
panda/src/doc/howto.multi-texture-in-maya.txt
panda/src/egg/lexer.cxx.prebuilt
panda/src/express/ordered_vector.h
panda/src/framework/rock_floor.rgb.c
panda/src/framework/shuttle_controls.bam.c
panda/src/pgraph/loaderOptions.cxx
pandatool/src/maxegg/maxEgg.cxx
pandatool/src/maxegg/maxEgg.h
pandatool/src/maxegg/maxEgg.rc
pandatool/src/maxegg/maxEggExpOptions.cxx
pandatool/src/maxegg/maxEggLoader.cxx
pandatool/src/maxegg/maxEggLoader.h
pandatool/src/maxegg/maxNodeDesc.cxx
pandatool/src/maxegg/maxNodeTree.cxx
pandatool/src/maxegg/maxResource.h
pandatool/src/maxegg/maxegg_composite1.cxx
pandatool/src/maxeggimport/maxEggImport.cxx
pandatool/src/maxeggimport/maxEggImport.def
pandatool/src/maxeggimport/maxImportRes.h
pandatool/src/maxeggimport/maxImportRes.rc
pandatool/src/maxprogs/maxEggImport.cxx
pandatool/src/maxprogs/maxEggImport.def
pandatool/src/maxprogs/maxImportRes.h
pandatool/src/maxprogs/maxImportRes.rc
pandatool/src/maya/maya_composite1.cxx
pandatool/src/mayaegg/mayaEggLoader.h
pandatool/src/mayaprogs/eggImportOptions.mel
pandatool/src/pstatserver/pstatserver_composite1.cxx
pandatool/src/scripts/MayaPandaTool.mel
pandatool/src/scripts/lastchng.pl
pandatool/src/scripts/wlastchng.pl
pandatool/src/xfile/xLexer.cxx.prebuilt

David

Hi David,

thanks - that’s great!

Max Hajek