luascript: Problem with windows build

Hello !

First of all thanks for your work ! I really appreciate your work on binding the LUA language to godot. Now i’m not super familiar with scons et neither with “antlr4” but I keep having this error comming up when I recompile godot using this command :

scons -j4 platform=windows module_luascript_enabled=yes

and I keep getting errors such as :

ConsoleErrorListener.cpp [ 26%] Compiling ==> modules\luascript\lib\antlr4\DefaultErrorStrategy.cpp DefaultErrorStrategy.cpp C:\Users\Lufen\Documents\Godot\godot+lua\godot-3.2.2-stable\modules\luascript\lib\antlr4\IntStream.h(41): warning C4251: 'antlr4::IntStream::UNKNOWN_SOURCE_NAME': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IntStream' C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>

or :

-C4273 (exemple : lib\antlr4\DefaultErrorStrategy.h(19): note: see previous definition of ‘{ctor}’ )

Any ideas of where this is comming from ?

I am on Windows x64 version 20H2.

EDIT : after further research it seems that I have an issue similar to this case?

EDIT 2: I’m trying to build it using WSL2 😃

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 26 (10 by maintainers)

Most upvoted comments

Hi! Sorry for the delay… So I’m still unable to develop on Windows and any issues on this platform will have to wait or have community help. Linux and Mac works great, my problem is I don’t have a Windows machine. So for now I’m afraid I can’t help you sorry. – Perbone

Not that I will blame you haha.

Seems like this error problem is quiet tricky…

[ 26%] Compiling ==> modules\luascript\lib\antlr4\BailErrorStrategy.cpp
[ 26%] Compiling ==> modules\luascript\lib\antlr4\BaseErrorListener.cpp
[ 26%] Compiling ==> modules\luascript\lib\antlr4\BufferedTokenStream.cpp
[ 26%] Compiling ==> modules\luascript\lib\antlr4\CharStream.cpp
cl : Command line warning D9025 : overriding '/std:c++17' with '/std:c++14'
BailErrorStrategy.cpp
cl : Command line warning D9025 : overriding '/std:c++17' with '/std:c++14'
BaseErrorListener.cpp
cl : Command line warning D9025 : overriding '/std:c++17' with '/std:c++14'
BufferedTokenStream.cpp
cl : Command line warning D9025 : overriding '/std:c++17' with '/std:c++14'
CharStream.cpp
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Exceptions.h(15): warning C4251: 'antlr4::RuntimeException::_message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::RuntimeException'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Exceptions.h(15): warning C4251: 'antlr4::RuntimeException::_message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::RuntimeException'

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Exceptions.h(75): warning C4251: 'antlr4::IOException::_message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IOException'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Exceptions.h(75): warning C4251: 'antlr4::IOException::_message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IOException'

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'

modules\luascript\lib\antlr4\BaseErrorListener.cpp(12): warning C4273: 'antlr4::BaseErrorListener::syntaxError': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\tree/ParseTree.h(38): warning C4251: 'antlr4::tree::ParseTree::children': class 'std::vector<antlr4::tree::ParseTree *,std::allocator<antlr4::tree::ParseTree *>>' needs to have dll-interface to be used by clients of class 'antlr4::tree::ParseTree'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BaseErrorListener.h(23): note: see previous definition of 'syntaxError'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\tree/ParseTree.h(38): note: see declaration of 'std::vector<antlr4::tree::ParseTree *,std::allocator<antlr4::tree::ParseTree *>>'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\tree/ParseTree.h(97): warning C4251: 'antlr4::tree::ParseTreeTracker::_allocated': class 'std::vector<antlr4::tree::ParseTree *,std::allocator<antlr4::tree::ParseTree *>>' needs to have dll-interface to be used by clients of class 'antlr4::tree::ParseTreeTracker'modules\luascript\lib\antlr4\BaseErrorListener.cpp(16): warning C4273: 'antlr4::BaseErrorListener::reportAmbiguity': inconsistent dll linkage

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\tree/ParseTree.h(38): note: see declaration of 'std::vector<antlr4::tree::ParseTree *,std::allocator<antlr4::tree::ParseTree *>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BaseErrorListener.h(26): note: see previous definition of 'reportAmbiguity'
modules\luascript\lib\antlr4\BaseErrorListener.cpp(20): warning C4273: 'antlr4::BaseErrorListener::reportAttemptingFullContext': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BaseErrorListener.h(29): note: see previous definition of 'reportAttemptingFullContext'
modules\luascript\lib\antlr4\BaseErrorListener.cpp(24): warning C4273: 'antlr4::BaseErrorListener::reportContextSensitivity': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BaseErrorListener.h(32): note: see previous definition of 'reportContextSensitivity'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\ParserRuleContext.h(66): warning C4251: 'antlr4::ParserRuleContext::exception': class 'std::exception_ptr' needs to have dll-interface to be used by clients of class 'antlr4::ParserRuleContext'

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\exception(214): note: see declaration of 'std::exception_ptr'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\ProxyErrorListener.h(18): warning C4251: 'antlr4::ProxyErrorListener::_delegates': class 'std::set<antlr4::ANTLRErrorListener *,std::less<antlr4::ANTLRErrorListener *>,std::allocator<antlr4::ANTLRErrorListener *>>' needs to have dll-interface to be used by clients of class 'antlr4::ProxyErrorListener'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\ProxyErrorListener.h(18): note: see declaration of 'std::set<antlr4::ANTLRErrorListener *,std::less<antlr4::ANTLRErrorListener *>,std::allocator<antlr4::ANTLRErrorListener *>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(150): warning C4251: 'antlr4::Recognizer::_mutex': class 'std::mutex' needs to have dll-interface to be used by clients of class 'antlr4::Recognizer'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\mutex(87): note: see declaration of 'std::mutex'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(153): warning C4251: 'antlr4::Recognizer::_tokenTypeMapCache': class 'std::map<const antlr4::dfa::Vocabulary *,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<const antlr4::dfa::Vocabulary *>,std::allocator<std::pair<const antlr4::dfa::Vocabulary *const ,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>' needs to have dll-interface to be used by clients of class 'antlr4::Recognizer'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(153): note: see declaration of 'std::map<const antlr4::dfa::Vocabulary *,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<const antlr4::dfa::Vocabulary *>,std::allocator<std::pair<const antlr4::dfa::Vocabulary *const ,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(154): warning C4251: 'antlr4::Recognizer::_ruleIndexMapCache': class 'std::map<std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<std::vector<std::string,std::allocator<std::string>>>,std::allocator<std::pair<const std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>' needs to have dll-interface to be used by clients of class 'antlr4::Recognizer'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(154): note: see declaration of 'std::map<std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<std::vector<std::string,std::allocator<std::string>>>,std::allocator<std::pair<const std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\IntStream.h(41): warning C4251: 'antlr4::IntStream::UNKNOWN_SOURCE_NAME': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IntStream'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\IntStream.h(41): warning C4251: 'antlr4::IntStream::UNKNOWN_SOURCE_NAME': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IntStream'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Exceptions.h(15): warning C4251: 'antlr4::RuntimeException::_message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::RuntimeException'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Exceptions.h(75): warning C4251: 'antlr4::IOException::_message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IOException'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Parser.h(412): warning C4251: 'antlr4::Parser::_errHandler': class 'std::shared_ptr<antlr4::ANTLRErrorStrategy>' needs to have dll-interface to be used by clients of class 'antlr4::Parser'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\antlr4-common.h(137): note: see declaration of 'std::shared_ptr<antlr4::ANTLRErrorStrategy>'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\ProxyErrorListener.h(18): warning C4251: 'antlr4::ProxyErrorListener::_delegates': class 'std::set<antlr4::ANTLRErrorListener *,std::less<antlr4::ANTLRErrorListener *>,std::allocator<antlr4::ANTLRErrorListener *>>' needs to have dll-interface to be used by clients of class 'antlr4::ProxyErrorListener'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\ProxyErrorListener.h(18): note: see declaration of 'std::set<antlr4::ANTLRErrorListener *,std::less<antlr4::ANTLRErrorListener *>,std::allocator<antlr4::ANTLRErrorListener *>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(150): warning C4251: 'antlr4::Recognizer::_mutex': class 'std::mutex' needs to have dll-interface to be used by clients of class 'antlr4::Recognizer'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\mutex(87): note: see declaration of 'std::mutex'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Parser.h(421): warning C4251: 'antlr4::Parser::_precedenceStack': class 'std::vector<int,std::allocator<int>>' needs to have dll-interface to be used by clients of class 'antlr4::Parser'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(153): warning C4251: 'antlr4::Recognizer::_tokenTypeMapCache': class 'std::map<const antlr4::dfa::Vocabulary *,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<const antlr4::dfa::Vocabulary *>,std::allocator<std::pair<const antlr4::dfa::Vocabulary *const ,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>' needs to have dll-interface to be used by clients of class 'antlr4::Recognizer'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Parser.h(421): note: see declaration of 'std::vector<int,std::allocator<int>>'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(153): note: see declaration of 'std::map<const antlr4::dfa::Vocabulary *,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<const antlr4::dfa::Vocabulary *>,std::allocator<std::pair<const antlr4::dfa::Vocabulary *const ,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(154): warning C4251: 'antlr4::Recognizer::_ruleIndexMapCache': class 'std::map<std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<std::vector<std::string,std::allocator<std::string>>>,std::allocator<std::pair<const std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>' needs to have dll-interface to be used by clients of class 'antlr4::Recognizer'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(154): note: see declaration of 'std::map<std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<std::vector<std::string,std::allocator<std::string>>>,std::allocator<std::pair<const std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Parser.h(434): warning C4251: 'antlr4::Parser::_parseListeners': class 'std::vector<antlr4::tree::ParseTreeListener *,std::allocator<antlr4::tree::ParseTreeListener *>>' needs to have dll-interface to be used by clients of class 'antlr4::Parser'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Parser.h(128): note: see declaration of 'std::vector<antlr4::tree::ParseTreeListener *,std::allocator<antlr4::tree::ParseTreeListener *>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Parser.h(455): warning C4251: 'antlr4::Parser::bypassAltsAtnCache': class 'std::map<std::vector<uint16_t,std::allocator<uint16_t>>,antlr4::atn::ATN,std::less<std::vector<uint16_t,std::allocator<uint16_t>>>,std::allocator<std::pair<const std::vector<uint16_t,std::allocator<uint16_t>>,antlr4::atn::ATN>>>' needs to have dll-interface to be used by clients of class 'antlr4::Parser'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Parser.h(455): note: see declaration of 'std::map<std::vector<uint16_t,std::allocator<uint16_t>>,antlr4::atn::ATN,std::less<std::vector<uint16_t,std::allocator<uint16_t>>>,std::allocator<std::pair<const std::vector<uint16_t,std::allocator<uint16_t>>,antlr4::atn::ATN>>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Lexer.h(48): warning C4251: 'antlr4::Lexer::token': class 'std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>' needs to have dll-interface to be used by clients of class 'antlr4::Lexer'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\TokenSource.h(35): note: see declaration of 'std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\misc/IntervalSet.h(33): warning C4251: 'antlr4::misc::IntervalSet::_intervals': class 'std::vector<antlr4::misc::Interval,std::allocator<antlr4::misc::Interval>>' needs to have dll-interface to be used by clients of class 'antlr4::misc::IntervalSet'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\misc/IntervalSet.h(33): note: see declaration of 'std::vector<antlr4::misc::Interval,std::allocator<antlr4::misc::Interval>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Lexer.h(75): warning C4251: 'antlr4::Lexer::modeStack': class 'std::vector<size_t,std::allocator<size_t>>' needs to have dll-interface to be used by clients of class 'antlr4::Lexer'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Lexer.h(75): note: see declaration of 'std::vector<size_t,std::allocator<size_t>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Lexer.h(189): warning C4251: 'antlr4::Lexer::_text': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::Lexer'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\DefaultErrorStrategy.h(462): warning C4251: 'antlr4::DefaultErrorStrategy::_errorSymbols': class 'std::vector<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>,std::allocator<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>>>' needs to have dll-interface to be used by clients of class 'antlr4::DefaultErrorStrategy'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\DefaultErrorStrategy.h(462): note: see declaration of 'std::vector<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>,std::allocator<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\tree/ParseTree.h(38): warning C4251: 'antlr4::tree::ParseTree::children': class 'std::vector<antlr4::tree::ParseTree *,std::allocator<antlr4::tree::ParseTree *>>' needs to have dll-interface to be used by clients of class 'antlr4::tree::ParseTree'
modules\luascript\lib\antlr4\BailErrorStrategy.cpp(15): warning C4273: 'antlr4::BailErrorStrategy::recover': inconsistent dll linkageC:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\tree/ParseTree.h(38): note: see declaration of 'std::vector<antlr4::tree::ParseTree *,std::allocator<antlr4::tree::ParseTree *>>'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BailErrorStrategy.h(48): note: see previous definition of 'recover'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\tree/ParseTree.h(97): warning C4251: 'antlr4::tree::ParseTreeTracker::_allocated': class 'std::vector<antlr4::tree::ParseTree *,std::allocator<antlr4::tree::ParseTree *>>' needs to have dll-interface to be used by clients of class 'antlr4::tree::ParseTreeTracker'
modules\luascript\lib\antlr4\BailErrorStrategy.cpp(36): warning C4273: 'antlr4::BailErrorStrategy::recoverInline': inconsistent dll linkageC:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\tree/ParseTree.h(38): note: see declaration of 'std::vector<antlr4::tree::ParseTree *,std::allocator<antlr4::tree::ParseTree *>>'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BailErrorStrategy.h(52): note: see previous definition of 'recoverInline'
modules\luascript\lib\antlr4\BailErrorStrategy.cpp(60): warning C4273: 'antlr4::BailErrorStrategy::sync': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BailErrorStrategy.h(56): note: see previous definition of 'sync'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(108): warning C4251: 'antlr4::BufferedTokenStream::_tokens': class 'std::vector<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>,std::allocator<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>>>' needs to have dll-interface to be used by clients of class 'antlr4::BufferedTokenStream'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Lexer.h(165): note: see declaration of 'std::vector<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>,std::allocator<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>>>'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(18): warning C4273: 'antlr4::BufferedTokenStream::BufferedTokenStream': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(26): note: see previous definition of '{ctor}'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(22): warning C4273: 'antlr4::BufferedTokenStream::getTokenSource': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(31): note: see previous definition of 'getTokenSource'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\IntStream.h(41): warning C4251: 'antlr4::IntStream::UNKNOWN_SOURCE_NAME': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IntStream'modules\luascript\lib\antlr4\BufferedTokenStream.cpp(26): warning C4273: 'antlr4::BufferedTokenStream::index': inconsistent dll linkage

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(32): note: see previous definition of 'index'

modules\luascript\lib\antlr4\CharStream.cpp(10): warning C4273: 'antlr4::CharStream::~CharStream': inconsistent dll linkagemodules\luascript\lib\antlr4\BufferedTokenStream.cpp(30): warning C4273: 'antlr4::BufferedTokenStream::mark': inconsistent dll linkage

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CharStream.h(16): note: see previous definition of '{dtor}'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(33): note: see previous definition of 'mark'

modules\luascript\lib\antlr4\BufferedTokenStream.cpp(34): warning C4273: 'antlr4::BufferedTokenStream::release': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(35): note: see previous definition of 'release'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(38): warning C4273: 'antlr4::BufferedTokenStream::reset': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(36): note: see previous definition of 'reset'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(42): warning C4273: 'antlr4::BufferedTokenStream::seek': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(37): note: see previous definition of 'seek'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(47): warning C4273: 'antlr4::BufferedTokenStream::size': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(39): note: see previous definition of 'size'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(51): warning C4273: 'antlr4::BufferedTokenStream::consume': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(40): note: see previous definition of 'consume'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(76): warning C4273: 'antlr4::BufferedTokenStream::sync': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(146): note: see previous definition of 'sync'
[ 26%] modules\luascript\lib\antlr4\BufferedTokenStream.cpp(89): warning C4273: 'antlr4::BufferedTokenStream::fetch': inconsistent dll linkage
[ 26%] C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(152): note: see previous definition of 'fetch'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(114): warning C4273: 'antlr4::BufferedTokenStream::get': inconsiste[ 26%] linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(42): note: see previous definition of 'get'
Compiling ==> modules\luascript\lib\antlr4\CommonToken.cpp
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(124): warning C4273: 'antlr4::BufferedTokenStream::get': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(45): note: see previous definition of 'get'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(146): warning C4273: 'antlr4::BufferedTokenStream::LA': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(47): note: see previous definition of 'LA'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(150): warning C4273: 'antlr4::BufferedTokenStream::LB': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(154): note: see previous definition of 'LB'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(157): warning C4273: 'antlr4::BufferedTokenStream::LT': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(48): note: see previous definition of 'LT'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(176): warning C4273: 'antlr4::BufferedTokenStream::adjustSeekIndex': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(167): note: see previous definition of 'adjustSeekIndex'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(180): warning C4273: 'antlr4::BufferedTokenStream::lazyInit': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(168): note: see previous definition of 'lazyInit'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(186): warning C4273: 'antlr4::BufferedTokenStream::setup': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(169): note: see previous definition of 'setup'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(192): warning C4273: 'antlr4::BufferedTokenStream::setTokenSource': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(51): note: see previous definition of 'setTokenSource'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(199): warning C4273: 'antlr4::BufferedTokenStream::getTokens': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(52): note: see previous definition of 'getTokens'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(206): warning C4273: 'antlr4::BufferedTokenStream::getTokens': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(53): note: see previous definition of 'getTokens'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(210): warning C4273: 'antlr4::BufferedTokenStream::getTokens': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(60): note: see previous definition of 'getTokens'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(237): warning C4273: 'antlr4::BufferedTokenStream::getTokens': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(61): note: see previous definition of 'getTokens'
cl : Command line warning D9025 : overriding '/std:c++17' with '/std:c++14'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(243): warning C4273: 'antlr4::BufferedTokenStream::nextTokenOnChannel': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(177): note: see previous definition of 'nextTokenOnChannel'CommonToken.cpp

modules\luascript\lib\antlr4\BufferedTokenStream.cpp(261): warning C4273: 'antlr4::BufferedTokenStream::previousTokenOnChannel': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(189): note: see previous definition of 'previousTokenOnChannel'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(281): warning C4273: 'antlr4::BufferedTokenStream::getHiddenTokensToRight': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(66): note: see previous definition of 'getHiddenTokensToRight'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(300): warning C4273: 'antlr4::BufferedTokenStream::getHiddenTokensToRight': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(73): note: see previous definition of 'getHiddenTokensToRight'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(304): warning C4273: 'antlr4::BufferedTokenStream::getHiddenTokensToLeft': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(80): note: see previous definition of 'getHiddenTokensToLeft'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(326): warning C4273: 'antlr4::BufferedTokenStream::getHiddenTokensToLeft': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(86): note: see previous definition of 'getHiddenTokensToLeft'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(330): warning C4273: 'antlr4::BufferedTokenStream::filterForChannel': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(191): note: see previous definition of 'filterForChannel'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(348): warning C4273: 'antlr4::BufferedTokenStream::isInitialized': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(193): note: see previous definition of 'isInitialized'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(356): warning C4273: 'antlr4::BufferedTokenStream::getSourceName': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(88): note: see previous definition of 'getSourceName'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(360): warning C4273: 'antlr4::BufferedTokenStream::getText': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(89): note: see previous definition of 'getText'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(365): warning C4273: 'antlr4::BufferedTokenStream::getText': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(90): note: see previous definition of 'getText'
[ 26%] modules\luascript\lib\antlr4\BufferedTokenStream.cpp(388): warning C4273: 'antlr4::BufferedTokenStream::getText': inconsistent dll linkage
[ 26%] C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(91): note: see previous definition of 'getText'
Compiling ==> modules\luascript\lib\antlr4\CommonTokenFactory.cpp
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(392): warning C4273: 'antlr4::BufferedTokenStream::getText': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(92): note: see previous definition of 'getText'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(400): warning C4273: 'antlr4::BufferedTokenStream::fill': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(95): note: see previous definition of 'fill'
modules\luascript\lib\antlr4\BufferedTokenStream.cpp(411): warning C4273: 'antlr4::BufferedTokenStream::InitializeInstanceFields': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(197): note: see previous definition of 'InitializeInstanceFields'
[ 26%] Compiling ==> modules\luascript\lib\antlr4\CommonTokenStream.cpp
cl : Command line warning D9025 : overriding '/std:c++17' with '/std:c++14'
CommonTokenFactory.cpp
cl : Command line warning D9025 : overriding '/std:c++17' with '/std:c++14'
CommonTokenStream.cpp
[ 26%] Compiling ==> modules\luascript\lib\antlr4\ConsoleErrorListener.cpp
cl : Command line warning D9025 : overriding '/std:c++17' with '/std:c++14'
ConsoleErrorListener.cpp
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\IntStream.h(41): warning C4251: 'antlr4::IntStream::UNKNOWN_SOURCE_NAME': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IntStream'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Exceptions.h(15): warning C4251: 'antlr4::RuntimeException::_message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::RuntimeException'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Exceptions.h(75): warning C4251: 'antlr4::IOException::_message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IOException'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\ProxyErrorListener.h(18): warning C4251: 'antlr4::ProxyErrorListener::_delegates': class 'std::set<antlr4::ANTLRErrorListener *,std::less<antlr4::ANTLRErrorListener *>,std::allocator<antlr4::ANTLRErrorListener *>>' needs to have dll-interface to be used by clients of class 'antlr4::ProxyErrorListener'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\ProxyErrorListener.h(18): note: see declaration of 'std::set<antlr4::ANTLRErrorListener *,std::less<antlr4::ANTLRErrorListener *>,std::allocator<antlr4::ANTLRErrorListener *>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(150): warning C4251: 'antlr4::Recognizer::_mutex': class 'std::mutex' needs to have dll-interface to be used by clients of class 'antlr4::Recognizer'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\mutex(87): note: see declaration of 'std::mutex'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(153): warning C4251: 'antlr4::Recognizer::_tokenTypeMapCache': class 'std::map<const antlr4::dfa::Vocabulary *,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<const antlr4::dfa::Vocabulary *>,std::allocator<std::pair<const antlr4::dfa::Vocabulary *const ,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>' needs to have dll-interface to be used by clients of class 'antlr4::Recognizer'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(153): note: see declaration of 'std::map<const antlr4::dfa::Vocabulary *,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<const antlr4::dfa::Vocabulary *>,std::allocator<std::pair<const antlr4::dfa::Vocabulary *const ,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(154): warning C4251: 'antlr4::Recognizer::_ruleIndexMapCache': class 'std::map<std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<std::vector<std::string,std::allocator<std::string>>>,std::allocator<std::pair<const std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>' needs to have dll-interface to be used by clients of class 'antlr4::Recognizer'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(154): note: see declaration of 'std::map<std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>,std::less<std::vector<std::string,std::allocator<std::string>>>,std::allocator<std::pair<const std::vector<std::string,std::allocator<std::string>>,std::map<std::string,size_t,std::less<std::string>,std::allocator<std::pair<const std::string,size_t>>>>>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Vocabulary.h(186): warning C4251: 'antlr4::dfa::Vocabulary::_literalNames': class 'std::vector<std::string,std::allocator<std::string>>' needs to have dll-interface to be used by clients of class 'antlr4::dfa::Vocabulary'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(28): note: see declaration of 'std::vector<std::string,std::allocator<std::string>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Vocabulary.h(187): warning C4251: 'antlr4::dfa::Vocabulary::_symbolicNames': class 'std::vector<std::string,std::allocator<std::string>>' needs to have dll-interface to be used by clients of class 'antlr4::dfa::Vocabulary'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(28): note: see declaration of 'std::vector<std::string,std::allocator<std::string>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Vocabulary.h(188): warning C4251: 'antlr4::dfa::Vocabulary::_displayNames': class 'std::vector<std::string,std::allocator<std::string>>' needs to have dll-interface to be used by clients of class 'antlr4::dfa::Vocabulary'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Recognizer.h(28): note: see declaration of 'std::vector<std::string,std::allocator<std::string>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(18): warning C4251: 'antlr4::CommonToken::EMPTY_SOURCE': struct 'std::pair<antlr4::TokenSource *,antlr4::CharStream *>' needs to have dll-interface to be used by clients of class 'antlr4::CommonToken'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\TokenFactory.h(23): note: see declaration of 'std::pair<antlr4::TokenSource *,antlr4::CharStream *>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(53): warning C4251: 'antlr4::CommonToken::_source': struct 'std::pair<antlr4::TokenSource *,antlr4::CharStream *>' needs to have dll-interface to be used by clients of class 'antlr4::CommonToken'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\TokenFactory.h(23): note: see declaration of 'std::pair<antlr4::TokenSource *,antlr4::CharStream *>'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\IntStream.h(41): warning C4251: 'antlr4::IntStream::UNKNOWN_SOURCE_NAME': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IntStream'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(61): warning C4251: 'antlr4::CommonToken::_text': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::CommonToken'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(18): warning C4251: 'antlr4::CommonToken::EMPTY_SOURCE': struct 'std::pair<antlr4::TokenSource *,antlr4::CharStream *>' needs to have dll-interface to be used by clients of class 'antlr4::CommonToken'

modules\luascript\lib\antlr4\CommonToken.cpp(23): warning C4273: 'EMPTY_SOURCE': inconsistent dll linkageC:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(18): note: see declaration of 'std::pair<antlr4::TokenSource *,antlr4::CharStream *>'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\IntStream.h(41): warning C4251: 'antlr4::IntStream::UNKNOWN_SOURCE_NAME': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IntStream'


C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(18): note: see previous definition of 'protected: static std::pair<antlr4::TokenSource *,antlr4::CharStream *> const antlr4::CommonToken::EMPTY_SOURCE'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(53): warning C4251: 'antlr4::CommonToken::_source': struct 'std::pair<antlr4::TokenSource *,antlr4::CharStream *>' needs to have dll-interface to be used by clients of class 'antlr4::CommonToken'


modules\luascript\lib\antlr4\CommonToken.cpp(23): error C2491: 'antlr4::CommonToken::EMPTY_SOURCE': definition of dllimport static data member not allowed
modules\luascript\lib\antlr4\CommonToken.cpp(25): warning C4273: 'antlr4::CommonToken::CommonToken': inconsistent dll linkageC:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(108): warning C4251: 'antlr4::BufferedTokenStream::_tokens': class 'std::vector<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>,std::allocator<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>>>' needs to have dll-interface to be used by clients of class 'antlr4::BufferedTokenStream'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(18): note: see declaration of 'std::pair<antlr4::TokenSource *,antlr4::CharStream *>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(87): note: see previous definition of '{ctor}'
modules\luascript\lib\antlr4\CommonToken.cpp(30): warning C4273: 'antlr4::CommonToken::CommonToken': inconsistent dll linkage


C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(88): note: see previous definition of '{ctor}'
modules\luascript\lib\antlr4\CommonToken.cpp(43): warning C4273: 'antlr4::CommonToken::CommonToken': inconsistent dll linkageC:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\BufferedTokenStream.h(108): note: see declaration of 'std::vector<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>,std::allocator<std::unique_ptr<antlr4::Token,std::default_delete<antlr4::Token>>>>'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(61): warning C4251: 'antlr4::CommonToken::_text': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::CommonToken'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(97): note: see previous definition of '{ctor}'
modules\luascript\lib\antlr4\CommonToken.cpp(51): warning C4273: 'antlr4::CommonToken::CommonToken': inconsistent dll linkage


C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(112): note: see previous definition of '{ctor}'
modules\luascript\lib\antlr4\CommonToken.cpp(70): warning C4273: 'antlr4::CommonToken::getType': inconsistent dll linkageC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
modules\luascript\lib\antlr4\CommonTokenStream.cpp(12): warning C4273: 'antlr4::CommonTokenStream::CommonTokenStream': inconsistent dll linkageC:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(114): note: see previous definition of 'getType'
modules\luascript\lib\antlr4\CommonToken.cpp(74): warning C4273: 'antlr4::CommonToken::setLine': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(128): note: see previous definition of 'setLine'
modules\luascript\lib\antlr4\CommonToken.cpp(78): warning C4273: 'antlr4::CommonToken::getText': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(126): note: see previous definition of 'getText'
modules\luascript\lib\antlr4\CommonToken.cpp(95): warning C4273: 'antlr4::CommonToken::setText': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(125): note: see previous definition of 'setText'
modules\luascript\lib\antlr4\CommonToken.cpp(99): warning C4273: 'antlr4::CommonToken::getLine': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(129): note: see previous definition of 'getLine'
modules\luascript\lib\antlr4\CommonToken.cpp(103): warning C4273: 'antlr4::CommonToken::getCharPositionInLine': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(131): note: see previous definition of 'getCharPositionInLine'
modules\luascript\lib\antlr4\CommonToken.cpp(107): warning C4273: 'antlr4::CommonToken::setCharPositionInLine': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(132): note: see previous definition of 'setCharPositionInLine'
modules\luascript\lib\antlr4\CommonToken.cpp(111): warning C4273: 'antlr4::CommonToken::getChannel': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(134): note: see previous definition of 'getChannel'
modules\luascript\lib\antlr4\CommonToken.cpp(115): warning C4273: 'antlr4::CommonToken::setChannel': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(135): note: see previous definition of 'setChannel'
modules\luascript\lib\antlr4\CommonToken.cpp(119): warning C4273: 'antlr4::CommonToken::setType': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(137): note: see previous definition of 'setType'
modules\luascript\lib\antlr4\CommonToken.cpp(123): warning C4273: 'antlr4::CommonToken::getStartIndex': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(139): note: see previous definition of 'getStartIndex'
modules\luascript\lib\antlr4\CommonToken.cpp(127): warning C4273: 'antlr4::CommonToken::setStartIndex': inconsistent dll linkage

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(140): note: see previous definition of 'setStartIndex'

modules\luascript\lib\antlr4\CommonToken.cpp(131): warning C4273: 'antlr4::CommonToken::getStopIndex': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(142): note: see previous definition of 'getStopIndex'
modules\luascript\lib\antlr4\CommonToken.cpp(135): warning C4273: 'antlr4::CommonToken::setStopIndex': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(143): note: see previous definition of 'setStopIndex'
modules\luascript\lib\antlr4\CommonToken.cpp(139): warning C4273: 'antlr4::CommonToken::getTokenIndex': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(145): note: see previous definition of 'getTokenIndex'
modules\luascript\lib\antlr4\CommonToken.cpp(143): warning C4273: 'antlr4::CommonToken::setTokenIndex': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(146): note: see previous definition of 'setTokenIndex'
modules\luascript\lib\antlr4\CommonToken.cpp(147): warning C4273: 'antlr4::CommonToken::getTokenSource': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(148): note: see previous definition of 'getTokenSource'
modules\luascript\lib\antlr4\CommonToken.cpp(151): warning C4273: 'antlr4::CommonToken::getInputStream': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(149): note: see previous definition of 'getInputStream'
modules\luascript\lib\antlr4\CommonToken.cpp(155): warning C4273: 'antlr4::CommonToken::toString': inconsistent dll linkageC:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenStream.h(44): note: see previous definition of '{ctor}'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(151): note: see previous definition of 'toString'
modules\luascript\lib\antlr4\CommonToken.cpp(159): warning C4273: 'antlr4::CommonToken::toString': inconsistent dll linkage

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenFactory.h(25): warning C4251: 'antlr4::CommonTokenFactory::DEFAULT': class 'std::unique_ptr<antlr4::TokenFactory<antlr4::CommonToken>,std::default_delete<antlr4::TokenFactory<antlr4::CommonToken>>>' needs to have dll-interface to be used by clients of class 'antlr4::CommonTokenFactory'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(153): note: see previous definition of 'toString'
modules\luascript\lib\antlr4\CommonTokenStream.cpp(16): warning C4273: 'antlr4::CommonTokenStream::CommonTokenStream': inconsistent dll linkage

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenFactory.h(25): note: see declaration of 'std::unique_ptr<antlr4::TokenFactory<antlr4::CommonToken>,std::default_delete<antlr4::TokenFactory<antlr4::CommonToken>>>'C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenStream.h(56): note: see previous definition of '{ctor}'

modules\luascript\lib\antlr4\CommonTokenFactory.cpp(14): warning C4273: 'DEFAULT': inconsistent dll linkagemodules\luascript\lib\antlr4\CommonTokenStream.cpp(19): warning C4273: 'antlr4::CommonTokenStream::adjustSeekIndex': inconsistent dll linkage
modules\luascript\lib\antlr4\CommonToken.cpp(186): warning C4273: 'antlr4::CommonToken::InitializeInstanceFields': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenFactory.h(25): note: see previous definition of 'public: static std::unique_ptr<antlr4::TokenFactory<antlr4::CommonToken>,std::default_delete<antlr4::TokenFactory<antlr4::CommonToken> > > const antlr4::CommonTokenFactory::DEFAULT'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenStream.h(73): note: see previous definition of 'adjustSeekIndex'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonToken.h(155): note: see previous definition of 'InitializeInstanceFields'
modules\luascript\lib\antlr4\CommonTokenFactory.cpp(14): error C2491: 'antlr4::CommonTokenFactory::DEFAULT': definition of dllimport static data member not allowed
modules\luascript\lib\antlr4\CommonTokenStream.cpp(23): warning C4273: 'antlr4::CommonTokenStream::LB': inconsistent dll linkage

modules\luascript\lib\antlr4\CommonTokenFactory.cpp(16): warning C4273: 'antlr4::CommonTokenFactory::CommonTokenFactory': inconsistent dll linkageC:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenStream.h(75): note: see previous definition of 'LB'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenFactory.h(56): note: see previous definition of '{ctor}'
modules\luascript\lib\antlr4\CommonTokenFactory.cpp(19): warning C4273: 'antlr4::CommonTokenFactory::CommonTokenFactory': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenFactory.h(66): note: see previous definition of '{ctor}'
modules\luascript\lib\antlr4\CommonTokenStream.cpp(43): warning C4273: 'antlr4::CommonTokenStream::LT': inconsistent dll linkage
modules\luascript\lib\antlr4\CommonTokenFactory.cpp(23): warning C4273: 'antlr4::CommonTokenFactory::create': inconsistent dll linkageC:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenStream.h(58): note: see previous definition of 'LT'

C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenFactory.h(68): note: see previous definition of 'create'
modules\luascript\lib\antlr4\CommonTokenStream.cpp(65): warning C4273: 'antlr4::CommonTokenStream::getNumberOfOnChannelTokens': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenStream.h(61): note: see previous definition of 'getNumberOfOnChannelTokens'
modules\luascript\lib\antlr4\CommonTokenFactory.cpp(37): warning C4273: 'antlr4::CommonTokenFactory::create': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\CommonTokenFactory.h(71): note: see previous definition of 'create'
scons: *** [modules\luascript\lib\antlr4\CommonToken.windows.tools.64.obj] Error 2
scons: *** [modules\luascript\lib\antlr4\CommonTokenFactory.windows.tools.64.obj] Error 2
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Exceptions.h(15): warning C4251: 'antlr4::RuntimeException::_message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::RuntimeException'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\Exceptions.h(75): warning C4251: 'antlr4::IOException::_message': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'antlr4::IOException'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include\xstring(4564): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
modules\luascript\lib\antlr4\ConsoleErrorListener.cpp(10): warning C4273: 'INSTANCE': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\ConsoleErrorListener.h(17): note: see previous definition of 'public: static antlr4::ConsoleErrorListener antlr4::ConsoleErrorListener::INSTANCE'
modules\luascript\lib\antlr4\ConsoleErrorListener.cpp(10): error C2491: 'antlr4::ConsoleErrorListener::INSTANCE': definition of dllimport static data member not allowed
modules\luascript\lib\antlr4\ConsoleErrorListener.cpp(13): warning C4273: 'antlr4::ConsoleErrorListener::syntaxError': inconsistent dll linkage
C:\Users\Lufen\Documents\godot\godot-3.2.2-stable\modules\luascript\lib\antlr4\ConsoleErrorListener.h(31): note: see previous definition of 'syntaxError'
scons: *** [modules\luascript\lib\antlr4\ConsoleErrorListener.windows.tools.64.obj] Error 2
scons: building terminated because of errors.```

I’m trying to build 3.2x with the latest Lua but still getting the same error that has been mentioned here, any solutions? Platform: Windows

No problem,

I will ask help in my friendlist to see if someone knows anything about scons because my self i’m not any good with it too 😂

It is official scons sucks and I suck hard with scons! Well as I said before, for now I’m done with this issue until I have my own windows build pipeline. Thanks you guys for the effort 'till now. – Perbone

No problem !

I am trying different things too as i’m building now the project from 0 using MinGW.

I let you know what 😃

Interesting all this Antlr4 things are new and I may or may not had create new bugs. I’ll have new commits this week end and I hope this error will be solved. Just one note though is that I don’t have a Windows enviroment so your input will be much appreciated. – Perbone