over 100 compiler errors when using ANTLR 4.13.2 with the C++ Runtime

So, I’m trying to implement antlr into my program in VS 2022 with the Fortran90 grammars and I went ahead and built the cpp runtime provided in the antlr repo. I cloned the master branch and generated the dll, lib, and included the src files in my program and when I go to build it, and I get a shit ton of errors in the output. Eventually it gives the compiler error error C1003: error count exceeds 100; stopping compilation. I’m using the ISO C++ 20 standard for my project.

As for what I was expecting, I was expecting it to build properly without errors and instead I got over 100. I built the demo included in the cpp runtime to see if it would build and it did and the .exe generated from it works fine as well. I then tried installing it via vcpkg and I got errors from there too.

This is just a snippet of the errors from this:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(17,5): error C2143: syntax error: missing '}' before 'constant'
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(17,5): error C2059: syntax error: 'constant'
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(19,3): error C2143: syntax error: missing ';' before '}'
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(22,1): error C2059: syntax error: '}'
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(22,1): error C2143: syntax error: missing ';' before '}'
</code>
<code>1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(17,5): error C2143: syntax error: missing '}' before 'constant' 1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(17,5): error C2059: syntax error: 'constant' 1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(19,3): error C2143: syntax error: missing ';' before '}' 1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(22,1): error C2059: syntax error: '}' 1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(22,1): error C2143: syntax error: missing ';' before '}' </code>
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(17,5): error C2143: syntax error: missing '}' before 'constant'
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(17,5): error C2059: syntax error: 'constant'
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(19,3): error C2143: syntax error: missing ';' before '}'
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(22,1): error C2059: syntax error: '}'
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrctreeParseTreeType.h(22,1): error C2143: syntax error: missing ';' before '}'

I also have a few different errors like this:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>1>ParserATNSimulator.cpp
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrcatnParserATNSimulator.cpp(57,32): error C2491: 'antlr4::atn::ParserATNSimulator::TURN_OFF_LR_LOOP_ENTRY_BRANCH_OPT': definition of dllimport static data member not allowed
</code>
<code>1>ParserATNSimulator.cpp 1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrcatnParserATNSimulator.cpp(57,32): error C2491: 'antlr4::atn::ParserATNSimulator::TURN_OFF_LR_LOOP_ENTRY_BRANCH_OPT': definition of dllimport static data member not allowed </code>
1>ParserATNSimulator.cpp
1>C:UsersPeytonDocumentsdevFortIDE2vedorantlr-incsrcatnParserATNSimulator.cpp(57,32): error C2491: 'antlr4::atn::ParserATNSimulator::TURN_OFF_LR_LOOP_ENTRY_BRANCH_OPT': definition of dllimport static data member not allowed

has anybody else run into this before or could this be a possible bug?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật