User forums > Using Code::Blocks
Using the new free Embarcadero C++ Compiler 7.20 (CLANG 3.3/C++ 11) with C::B
(1/1)
dvoogd:
Hi,
I want to use the new Embarcadero C++ Free Commandline compiler 7.20 https://www.embarcadero.com/free-tools/ccompiler( which includes CLANG 3.3/C++ 11 support) with CodeBlocks. I looked at compiler_bcc.xml and wondered if I only have to modify the template and save it under a new name or is there more to it?
Greetings,
Don
stahta01:
I would suggest just editing the Code::Blocks (CB) Compiler setting for "Borland C++ Compiler" using the CB Gui.
Note: If you already have an "Borland C++ Compiler" setup using a different version; use the Copy button.
Setting -> Compiler
Select the "Borland C++ Compiler"
Change Compiler name to "bcc32c.exe" under Toolchain settings.
Change the Resource Compiler to "rc.exe"
Delete or correct the "Search Directories"; I deleted them.
I then added these [Linker Search Paths] to the release CB project targets
--- Code: ---$(TARGET_COMPILER_DIR)lib\win32c\release
$(TARGET_COMPILER_DIR)lib\win32c\release\psdk
--- End code ---
And, this to the debugger targets; NOTE: The lack of a debug PSDK implies complex project will NOT build in debug mode.
--- Code: ---$(TARGET_COMPILER_DIR)lib\win32c\debug
--- End code ---
This setup then built "Hello World"
Please read at least some of the CB FAQs. http://wiki.codeblocks.org/index.php/FAQ
And this link; http://wiki.codeblocks.org/index.php/Creating_a_new_project
Tim S.
stahta01:
My build logs
--- Code: ----------------- Build: Release in testbcc (compiler: Borland C++ Compiler (5.5, 5.82))---------------
bcc32c.exe -q -w -x -O2 -oobj\Release\main.obj -c main.cpp
main.cpp:
ilink32.exe -q -ap -LC:\Apps32\BCC101\lib\win32c\release -LC:\Apps32\BCC101\lib\win32c\release\psdk c0x32 obj\Release\main.obj,bin\Release\testbcc.exe,,cw32mt.lib import32.lib,,
Output file is bin\Release\testbcc.exe with size 134.00 KB
Process terminated with status 0 (0 minute(s), 1 second(s))
0 error(s), 0 warning(s) (0 minute(s), 1 second(s))
--- End code ---
--- Code: ----------------- Build: Debug in testbcc (compiler: Borland C++ Compiler (5.5, 5.82))---------------
bcc32c.exe -q -w -x -v -oobj\Debug\main.obj -c main.cpp
main.cpp:
ilink32.exe -q -ap -v -LC:\Apps32\BCC101\lib\win32c\debug c0x32 obj\Debug\main.obj,bin\Debug\testbcc.exe,,cw32mt.lib import32.lib,,
Output file is bin\Debug\testbcc.exe with size 148.00 KB
Process terminated with status 0 (0 minute(s), 1 second(s))
0 error(s), 0 warning(s) (0 minute(s), 1 second(s))
--- End code ---
Tim S.
dvoogd:
Hi Tim,
Got a little question: is there an debugger I can use with the Embarcadero C++ Compiler 7.20?
Greetings,
Don
stahta01:
--- Quote from: dvoogd on July 22, 2016, 09:18:45 pm ---Hi Tim,
Got a little question: is there an debugger I can use with the Embarcadero C++ Compiler 7.20?
Greetings,
Don
--- End quote ---
I know of NO debugger that works with that Compiler and works with Code::Blocks.
Tim S.
Navigation
[0] Message Index
Go to full version