Skip to content

Unable to compile with C++17 #10

@cbalen

Description

@cbalen

So I'm using Manjaro Linux 23.0.4 with gcc 13.2.1 and I tried to install OpenFCST with the command:

$ InstallDir="location on my computer"
$ ./openFCST_install --install-dir=$InstallDir --cores=4

but when trying to install cpptest I got an error and checking the cpptest-build-err.log it warns of some deprecations for auto_ptr but also gives the error:

mytest.cpp:145:31: error: ISO C++17 does not allow dynamic exception specifications
145 | void func_throw_int() throw(int) { throw 13; }

So I followed some advice on Stack Overflow and I removed the throw(int) from line 145 and throw() from line 144 and it was able to compile. However I then got errors in COLDAE:

Error: Actual argument contains too few elements for dummy argument ‘integs’ (1/3) at (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions