|
From: Chris M. <c.m...@ga...> - 2007-02-20 17:31:32
|
forcefield.cpp will not compile for me. Declaring arrays with a non-constant dimension seeems to be at the root of the difficulty. It may be that g++ can somehow manage to do this but I don't think it's standard. I realise that forcefield is work in progress, but I mention this bug because correcting it may involve a significant change to program structure. (Would std::vector be safer?) Chris ..\..\src\forcefield.cpp(401) : error C2057: expected constant expression ..\..\src\forcefield.cpp(401) : error C2466: cannot allocate an array of constant size 0 ..\..\src\forcefield.cpp(401) : error C2133: 'rotorKey' : unknown size ..\..\src\forcefield.cpp(425) : error C2057: expected constant expression ..\..\src\forcefield.cpp(425) : error C2466: cannot allocate an array of constant size 0 ..\..\src\forcefield.cpp(425) : error C2133: 'energies' : unknown size ..\..\src\forcefield.cpp(1349) : error C3861: 'isnan': identifier not found . |