[petsc-dev] PETSCXXX_DLLEXPORT usage

Barry Smith bsmith at mcs.anl.gov
Sat Jan 9 14:10:14 CST 2010

    Yes, they can expand to something different. Those are all likely  
cut-and-paste errors.

    We've never used that stuff so like anything that is not used, it  
is broken by definition.


On Jan 9, 2010, at 2:03 PM, Jed Brown wrote:

> Is there a circumstance where PETSCXXX_DLLEXPORT expands to a  
> different
> value from PETSCYYY_DLLEXPORT?  I ask because there are several cases
> that look wrong to me.  E.g. PetscSubcommCreate (in libpetsc) uses
> PETSCMAT_DLLEXPORT, as does MatCreateSchurComplement (in libpetscksp)
> and MatCreateSeqUSFFT (in libpetscdm).  If they always expand to the
> same thing, why bother distinguishing?
> Jed

More information about the petsc-dev mailing list