Home My Page Projects PaStiX
Summary Activity Forums Lists Docs News Files

Forum: open-discussion

Monitor Forum | Start New Thread Start New Thread
struct definitions in pastix.h cause linker errors for C++ [ Reply ]
By: Garth Wells on 2012-06-16 09:42
[forum:109791]
pastix.h contains definitions of the structs

ComplexFloat_
ComplexDouble_

rather than just declarations. If pastix.h is included in a library in two or more places, this leads to multiple definitions of ComplexFloat_ and ComplexDouble_, which in turn leads to errors at linkage.

The structs should be declared in pastix.h, but defined in a foo.c file. This would fix the problem.

Garth