Skip to content

Compiler error on Windows #3

Open
@dirk-zimoch

Description

@dirk-zimoch

When compiling for Windows (actually cross-compiling using cl in wine), I get the following error:

z:\git\adpandablocks\adpandablocksapp\src\adpandablocks.cpp(1044): error C2131: expression did not evaluate to a constant
z:\git\adpandablocks\adpandablocksapp\src\adpandablocks.cpp(1044): note: failure was caused by a read of a variable outside its lifetime
z:\git\adpandablocks\adpandablocksapp\src\adpandablocks.cpp(1044): note: see usage of 'readBytes'

Not all compilers allow variable length arrays on the stack. It is probably more portable to use malloc().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions