[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help needed: pftools: multiple definition of `VectorPosition'



> I intended to upgrade the packaging for pftools[1] in Git but was running into
> ...
> /src/C/../../src/C/include/profile.h:70: multiple definition of `VectorPosition'; pfsearchV3-pfsearch.o:./src/C/../../src/C/include/profile.h:70: first defined here

The code has mistakenly applied the usual pattern for a struct typedef ("typedef struct foo { ... } foo;") to an enum. Fixed by

+++ b/src/C/include/profile.h
   INSERTION_TRANSITIONS_SIZE = 16 
-} VectorPosition ;
+};
 ////////////////////////////// FOR SSE4.1 to WORK //////////////////////////////////////////////

See also https://github.com/sib-swiss/pftools3/blob/master/src/C/include/pfProfile.h#L151-L170 in which this change has already been made in this (somewhat diverged) upstream.

    John

Reply to: