Code::Blocks Forums

User forums => Help => Topic started by: dkaip on January 02, 2019, 12:20:22 pm

Title: VVLM Clang Compiler
Post by: dkaip on January 02, 2019, 12:20:22 pm
Hello.
I have download pdfium for building on windows 10. At C:\repo\pdfium\third_party\llvm-build\Release+Asserts\bin\ there are exe files, that ninja uses for compilation.
Where must put all that in Global Compiler Settings for VVML.
When building pdfium in windows with ninja building system, i can not connect with my program in GCC, so i must use VVML Clang compiler.
Quote
clang-cl.exe
lld-link.exe
llvm-pdbutil.exe
llvm-symbolizer.exe
llvm-undname.exe
msdia140.dll
sancov.exe

At the folder C:\repo\pdfium\third_party\llvm-build\Release+Asserts\lib\clang\8.0.0\lib\windows\ we have

Quote
clang_rt.asan-i386.lib
clang_rt.asan-x86_64.lib
clang_rt.asan_cxx-i386.lib
clang_rt.asan_cxx-x86_64.lib
clang_rt.asan_dll_thunk-i386.lib
clang_rt.asan_dll_thunk-x86_64.lib
clang_rt.asan_dynamic-i386.dll
clang_rt.asan_dynamic-i386.lib
clang_rt.asan_dynamic-x86_64.dll
clang_rt.asan_dynamic-x86_64.lib
clang_rt.asan_dynamic_runtime_thunk-i386.lib
clang_rt.asan_dynamic_runtime_thunk-x86_64.lib
clang_rt.fuzzer_no_main-x86_64.lib
clang_rt.profile-i386.lib
clang_rt.profile-x86_64.lib
clang_rt.ubsan_standalone-i386.lib
clang_rt.ubsan_standalone-x86_64.lib
clang_rt.ubsan_standalone_cxx-i386.lib
clang_rt.ubsan_standalone_cxx-x86_64.lib

Thank you
Jim.
Title: Re: VVLM Clang Compiler
Post by: Pecan on January 02, 2019, 07:34:36 pm
What version of CB are you currently using?
The CB nightly built distribution already has a LLVM clang compiler entry built-in.

Look at Settings/compiler/Selected compiler dropdown box and see if there is a LLVM clang compiler entry there.

If not, I'd suggest that you download a nightly build. I know that 15 August 2018 build has an LLVM clang entry built in .
http://forums.codeblocks.org/index.php?board=20.0

From there, you can set up the build chain, and the include directories to point to your installed LLVM folder.
Title: Re: VVLM Clang Compiler
Post by: dkaip on September 28, 2020, 08:45:22 pm
Hello, many time past, now i must set c,c++ compiler, linker for dynamic and static libs, debugger, resource compiler and make probgram from C:\repo\pdfium\third_party\llvm-build\Release+Asserts\bin directory.
As i see i have put for c and c++ compiler the clang-cl.exe
For dynamic libs lld-link.exe.
For static libs C::B has ar.exe.
ar.exe is at C:\Program Files\CodeBlocks\MinGW\bin\ directory 1,055KB
ar.exe is at C:\Program Files\CodeBlocks\MinGW\x86_64-w64-mingw32\bin directory 1,055KB
windres.exe is at C:\Program Files\CodeBlocks\MinGW\bin
mingw32-make.exe is at C:\Program Files\CodeBlocks\MinGW\bin
Running the most simple program i am taking
lld-link: error: could not open 'libcmt.lib': no such file or directory
How i can set vvlm compiler with clang-cl?
Thank you
Jim