Skip to content

Graphchi .hpp's cause compilation error #3

@DavidNemeskey

Description

@DavidNemeskey

Hi,

If I want to organize my code in .h and .cpp files, I get compilation errors of the type

/tmp/ccSLfl1Z.o: In function get_dirname':
/home/ndavid/Documents/Research/LTR/graphchi/toolkits/graphchi-ltr/src/../../../src/preprocessing/conversions.hpp:173: multiple definition of graphchi::get_dirname(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)' /tmp/ccqcbsrt.o:/home/ndavid/Documents/Research/LTR/graphchi/toolkits/graphchi-ltr/src/../../../src/preprocessing/conversions.hpp:173: first defined here

, if the code in question #includes anything from Graphchi. I am not a big fan of .hpp files, but I have to use those if I want to get around the problems. It would be great if you guys could somehow address this problem.

Best,
David Nemeskey

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