Skip to content

compile error 'std::string' invalid type in C file #1854

@dxjones

Description

@dxjones

Trying to follow the instructions for building pxscene.

When trying to compile "dukluv" I get this error, related to the using a C++ type in a C file.

Building C object CMakeFiles/dukluv.dir/src/main.c.o
...pxscene/pxCore/examples/pxScene2d/external/dukluv/src/main.c:44:7: error: expected expression
std::string path2 = "duk_modules/";

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