Skip to content

Tests build with installed version of DAGMC if present #877

@pshriwise

Description

@pshriwise

Describe the Bug

With the merge of #876 I noticed after pulling those changes that I couldn't rebuild DagMC successfully due to missing symbols at the linking stage of building our test programs. The error was a missing symbol to the DagMC constructor with signature

DagMC::DagMC(std::shared_ptr<Interface>, double, double)

We of course now have an extra int argument at the end of our constructors. The problem turned out to be that the test program is using the installed DagMC.hpp header instead of the one in the build directory. The installed header came from before I pulled the recent changes in that PR and contains the old constructor signature. When that test program tries to link to the DAGMC library compiled in the build directory, it then throws an error for a missing symbol.

To Reproduce

For an existing build of DAGMC (w/ PATH env var set to include the current DAGMC installation), pull the changes from #876 and attempt to rebuild DAGMC.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions