Skip to content

VcfRecordDiscardRules.h:72:18: error: 'unordered_set' in namespace 'std' does not name a template type #8

@mmokrejs

Description

@mmokrejs

Hi,
sometimes I get the following error with various gcc versions (4.9.4 and 7.1.0 tried) when compiling verifyBamID-1.1.3:

g++  -O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize  -I../include -I.   -D__ZLIB_AVAILABLE__ -D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS  -o obj/SamHeaderRecord.o -c SamHeaderRecord.cpp -DVERSION="\"1.0.0\""
In file included from VcfRecord.h:29:0,
                 from VcfFileReader.h:24,
                 from VcfFileReader.cpp:20:
VcfRecordDiscardRules.h:72:18: error: 'unordered_set' in namespace 'std' does not name a template type
     typedef std::unordered_set<vcfIDtype> IDList;
                  ^~~~~~~~~~~~~
VcfRecordDiscardRules.h:80:17: error: 'IDList' has not been declared
     bool setIDs(IDList& idlist, const char* filename);
                 ^~~~~~
VcfRecordDiscardRules.h:82:5: error: 'IDList' does not name a type
     IDList myExcludeIDs;
     ^~~~~~
VcfRecordDiscardRules.h:83:5: error: 'IDList' does not name a type
     IDList myIncludeIDs;
     ^~~~~~
VcfRecordDiscardRules.h: In constructor 'VcfRecordDiscardRules::VcfRecordDiscardRules()':
VcfRecordDiscardRules.h:33:11: error: class 'VcfRecordDiscardRules' does not have any field named 'myExcludeIDs'
         : myExcludeIDs(),
           ^~~~~~~~~~~~
VcfRecordDiscardRules.h:34:11: error: class 'VcfRecordDiscardRules' does not have any field named 'myIncludeIDs'
           myIncludeIDs(),
           ^~~~~~~~~~~~
make[3]: *** [../Makefiles/Makefile.common:81: obj/VcfFileReader.o] Error 1
make[2]: *** [Makefiles/Makefile.base:15: vcf] Error 2
make[2]: *** Waiting for unfinished jobs....

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