antlr4-cpp-runtime-4.9.3-source VS 2017 compile issue

51 views
Skip to first unread message

Chris Schwarz

unread,
Feb 18, 2022, 6:48:43 PM2/18/22
to antlr-discussion
Hi team,
I have tried compiling the windows source in VS 2017 in x64, both from the provided project file and through cmake. Whether I build static or shared library, I get a number of compiler errors. 
I do NOT get these errors building in Win32.

Errors are listed below. Any ideas?
Thank you!

Severity        Code        Description        Project        File        Line        Suppression State
Error        C2668        'antlr4::misc::IntervalSet::contains': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\atn\LL1Analyzer.cpp        49        
Error        C2668        'antlr4::misc::IntervalSet::contains': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\DefaultErrorStrategy.cpp        104        
Error        C2668        'antlr4::misc::IntervalSet::contains': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\atn\ATN.cpp        140        
Error        C2668        'antlr4::misc::IntervalSet::remove': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\atn\ATN.cpp        146        
Error        C2668        'antlr4::misc::IntervalSet::contains': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\atn\ATN.cpp        147        
Error        C2668        'antlr4::misc::IntervalSet::remove': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\atn\ATN.cpp        152        
Error        C2668        'antlr4::misc::IntervalSet::contains': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\atn\ATN.cpp        160        
Error        C2668        'antlr4::misc::IntervalSet::contains': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\atn\ATNSerializer.cpp        160        
Error        C2668        'antlr4::misc::IntervalSet::remove': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\DefaultErrorStrategy.cpp        317        
Error        C2668        'antlr4::misc::IntervalSet::contains': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\Parser.cpp        481        
Error        C2668        'antlr4::misc::IntervalSet::contains': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\Parser.cpp        485        
Error        C2668        'antlr4::misc::IntervalSet::contains': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\Parser.cpp        496        
Error        C2668        'antlr4::misc::IntervalSet::contains': ambiguous call to overloaded function        antlr4_static        E:\NADS_Software\sandbox\antlr-cpp\antlr4-cpp-runtime-4.9.3-source\runtime\src\atn\ParserATNSimulator.cpp        576        

Michal Widera

unread,
Feb 19, 2022, 2:45:37 PM2/19/22
to antlr-discussion
Reply all
Reply to author
Forward
0 new messages