31
Development / Re: 32 buit SF update
« Last post by Pecan on May 10, 2025, 08:28:01 pm »Do the 32 bit build have the same issues with Clangd a the 64bit versions?
what issues are you referring to?
When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
Do the 32 bit build have the same issues with Clangd a the 64bit versions?
What about the msys2 package : mingw-w64-x86_64-clang-tools-extra in which clangd is included inside msys64\mingw64\bin folder ? For me, msys64\clang64 contains only empty folders.
I don't see many problems with this package (but I can have missed them). Could you tell us more precisely some of those "spurious errors".
LSP diagnostics: ClangLocator.cpp|:|----Time: 12:02:21.037---- (20 diagnostics)|
ClangLocator.cpp|65|error:Use of undeclared identifier 'fileSepChar'|
ClangLocator.cpp|84|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|84|error:Use of undeclared identifier 'clangdexe'; did you mean 'clangdDir'? (fix available) change 'clangdexe' to 'clangdDir'|
ClangLocator.cpp|107|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|149|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|149|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|174|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|174|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|174|remark:'_sleep' is deprecated|
ClangLocator.cpp|186|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|313|error:Use of undeclared identifier 'clangdexe'|
ClangLocator.cpp|317|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|351|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|381|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|396|error:Use of undeclared identifier 'fileSep'|
ClangLocator.cpp|413|error:Use of undeclared identifier 'clangdexe'|
ClangLocator.cpp|456|error:Use of undeclared identifier 'LLVM_Dirmaybe'|
ClangLocator.cpp|599|error:Use of undeclared identifier 'wxFound'; did you mean 'wxRound'? (fix available) change 'wxFound' to 'wxRound'|
ClangLocator.cpp|599|remark:'wxRound<int>' is deprecated: rounding an integer is useless|
ClangLocator.cpp|5|warning:Included header cstdint is not used directly (fix available) remove #include directive|
LSP diagnostics: ccoptionsdlg.cpp|:|----Time: 12:02:24.299---- (4 diagnostics)|
codecompletion\ccoptionsdlg.cpp|575|error:Use of undeclared identifier 'clangdexe'|
codecompletion\ccoptionsdlg.cpp|582|error:Use of undeclared identifier 'LLVM_Dirmaybe'|
codecompletion\ccoptionsdlg.cpp|582|error:Use of undeclared identifier 'clangdexe'|
codecompletion\ccoptionsdlg.cpp|636|error:Use of undeclared identifier 'clangdexe'|
LSP diagnostics: client.cpp|:|----Time: 12:02:25.385---- (22 diagnostics)|
LSPclient\client.cpp|398|error:Use of undeclared identifier 'clangdexe'|
LSPclient\client.cpp|434|error:Use of undeclared identifier 'fileSep'|
LSPclient\client.cpp|434|error:Use of undeclared identifier 'fileSep'|
LSPclient\client.cpp|434|remark:'_sleep' is deprecated|
LSPclient\client.cpp|438|error:Use of undeclared identifier 'fileSep'|
LSPclient\client.cpp|438|error:Use of undeclared identifier 'clangdexe'|
LSPclient\client.cpp|438|remark:'_sleep' is deprecated|
LSPclient\client.cpp|560|error:Use of undeclared identifier 'GetstdUTF8Str'; did you mean 'GetwxUTF8Str'? (fix available) change 'GetstdUTF8Str' to 'GetwxUTF8Str'|
LSPclient\client.cpp|560|error:No viable conversion from 'const wxString' to 'std::string' (aka 'basic_string<char>')|
LSPclient\client.cpp|560|error:Use of undeclared identifier 'GetstdUTF8Str'; did you mean 'GetwxUTF8Str'? (fix available) change 'GetstdUTF8Str' to 'GetwxUTF8Str'|
LSPclient\client.cpp|560|error:No viable conversion from 'const wxString' to 'std::string' (aka 'basic_string<char>')|
LSPclient\client.cpp|741|error:Use of undeclared identifier 'fileSep'|
LSPclient\client.cpp|742|error:Use of undeclared identifier 'fileSep'|
LSPclient\client.cpp|743|error:Use of undeclared identifier 'fileSep'|
LSPclient\client.cpp|744|error:Use of undeclared identifier 'fileSep'|
LSPclient\client.cpp|797|error:Use of undeclared identifier 'StdString_EndsWith'|
LSPclient\client.cpp|817|error:Use of undeclared identifier 'StdString_Contains'|
LSPclient\client.cpp|818|error:Use of undeclared identifier 'StdString_Contains'|
LSPclient\client.cpp|822|error:Use of undeclared identifier 'stdFound'|
LSPclient\client.cpp|1074|error:Use of undeclared identifier 'stdFound'|
LSPclient\client.cpp|1128|error:Use of undeclared identifier 'StdString_Format'|
LSPclient\client.cpp|1|error:Too many errors emitted, stopping now|
LSP diagnostics: codecompletion.cpp|:|----Time: 12:02:26.280---- (25 diagnostics)|
codecompletion\codecompletion.cpp|488|error:Use of undeclared identifier 'ns_DefaultCompilerMasterPath'|
codecompletion\codecompletion.cpp|489|error:Use of undeclared identifier 'ns_DefaultCompilerMasterPath'|
codecompletion\codecompletion.cpp|612|error:Use of undeclared identifier 'ns_DefaultCompilerMasterPath'|
codecompletion\codecompletion.cpp|613|error:Use of undeclared identifier 'ns_DefaultCompilerMasterPath'|
codecompletion\codecompletion.cpp|1031|error:Use of undeclared identifier 'wxFound'; did you mean 'wxRound'? (fix available) change 'wxFound' to 'wxRound'|
codecompletion\codecompletion.cpp|1031|remark:'wxRound<int>' is deprecated: rounding an integer is useless|
codecompletion\codecompletion.cpp|1052|error:Use of undeclared identifier 'wxFound'; did you mean 'wxRound'? (fix available) change 'wxFound' to 'wxRound'|
codecompletion\codecompletion.cpp|1052|remark:'wxRound<int>' is deprecated: rounding an integer is useless|
codecompletion\codecompletion.cpp|1055|error:Use of undeclared identifier 'wxFound'; did you mean 'wxRound'? (fix available) change 'wxFound' to 'wxRound'|
codecompletion\codecompletion.cpp|1055|remark:'wxRound<int>' is deprecated: rounding an integer is useless|
codecompletion\codecompletion.cpp|1063|error:Use of undeclared identifier 'wxFound'; did you mean 'wxRound'? (fix available) change 'wxFound' to 'wxRound'|
codecompletion\codecompletion.cpp|1063|remark:'wxRound<int>' is deprecated: rounding an integer is useless|
codecompletion\codecompletion.cpp|1187|error:Use of undeclared identifier 'ns_DefaultCompilerMasterPath'|
codecompletion\codecompletion.cpp|3078|error:Use of undeclared identifier 'clangdexe'|
codecompletion\codecompletion.cpp|3093|error:Use of undeclared identifier 'clangdexe'|
codecompletion\codecompletion.cpp|3438|error:Use of undeclared identifier 'STXstring'; did you mean 'String'? (fix available) change 'STXstring' to 'String'|
codecompletion\codecompletion.cpp|3446|error:Use of undeclared identifier 'STXstring'; did you mean 'String'? (fix available) change 'STXstring' to 'String'|
codecompletion\codecompletion.cpp|3448|error:Use of undeclared identifier 'STX'|
codecompletion\codecompletion.cpp|3449|error:Use of undeclared identifier 'STXstring'|
codecompletion\codecompletion.cpp|3450|error:Use of undeclared identifier 'STX'|
codecompletion\codecompletion.cpp|3453|error:Use of undeclared identifier 'STXstring'; did you mean 'String'? (fix available) change 'STXstring' to 'String'|
codecompletion\codecompletion.cpp|3521|error:Use of undeclared identifier 'STX'|
codecompletion\codecompletion.cpp|3524|error:Use of undeclared identifier 'STX'|
codecompletion\codecompletion.cpp|1|error:Too many errors emitted, stopping now|
codecompletion\codecompletion.cpp|14|warning:Included header iterator is not used directly (fix available) remove #include directive|
[Edit: A more important related bug is it fails to find the clangd.exe in the MINGW installation folder of an CB installed with Mingw compiler.
How did clangd.exe get installed with MINGW?
None of my Mingw folders contains clang.exe along with any of it's resources.
Do you mean the ...\msys64_18.1.8\mingw64\ folder? (or similar versions)?
On Windows using the CB25.03 installer with MINGW GCC compiler it also has the clangd.exe and other clang stuff installed.
The auto detection does not find it.
Edit:Code$(CodeBlocks)\MinGW\bin\clangd.exe
Tim S.
The installer does not install a clangd.exe that supports Mingw.
The clangd included in those binaries is for the clang compiler only.
Using the clangd.exe included in those binaries with Mingw will cause spurious (incorrect) error messages.
If you're using Mingw, use the Msys2 Mingw64/bin/clangd.exe instead.
Do not mix the clang compiler clangd with the Mingw clangd.