bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More Compiler Errors: Visual C++ .NET (7.0)


From: Tobias Erbsland
Subject: More Compiler Errors: Visual C++ .NET (7.0)
Date: Fri, 19 Dec 2003 15:24:59 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4


More compile errors here:

file.cpp
d:\commoncpp2\src\file.cpp(1545) : error C2057: expected constant expression
d:\commoncpp2\src\file.cpp(1545) : error C2466: cannot allocate an array
of constant size 0
d:\commoncpp2\src\file.cpp(1545) : error C2133: 'left' : unknown size
d:\commoncpp2\src\file.cpp(1583) : error C2057: expected constant expression
d:\commoncpp2\src\file.cpp(1583) : error C2466: cannot allocate an array
of constant size 0
d:\commoncpp2\src\file.cpp(1583) : error C2133: 'next_token' : unknown size

The expression:

char foo[<size>];

should replaced by char* foo = new char[<size>];

on each "return", a delete foo!


regards
Tobias


Attachment: pgpMFTZ4vibU_.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]