[petsc-dev] Reminder: *every* symbol with extern linkage *must* be namespaced

Barry Smith bsmith at mcs.anl.gov
Sat Mar 17 16:09:19 CDT 2012


On Mar 17, 2012, at 4:06 PM, Jed Brown wrote:

> On Sat, Mar 17, 2012 at 16:00, Barry Smith <bsmith at mcs.anl.gov> wrote:
>   Note that Jed's tests (below) do not catch enum values and various other things that should also be fixed and will change the API.
> 
> Yes, but enums (and other types) are not symbols, so an application with conflict only has to deal with it for the source files that include the relevant PETSc headers. It's a conflict that should be fixed, but it doesn't prevent that application from being used with PETSc in the way that symbols with extern linkage do.

  I understand there is a difference but we might as well fix everything at the same time in more or less the same way. 

    Barry





More information about the petsc-dev mailing list