Author Topic: Using the new free Embarcadero C++ Compiler 7.20 (CLANG 3.3/C++ 11) with C::B  (Read 5808 times)

Offline dvoogd

  • Single posting newcomer
  • *
  • Posts: 2
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
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

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

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.

« Last Edit: July 22, 2016, 06:30:04 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
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))

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))

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dvoogd

  • Single posting newcomer
  • *
  • Posts: 2
Hi Tim,

Got a little question:  is there an debugger I can use with the Embarcadero C++ Compiler 7.20?

Greetings,

Don

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Hi Tim,

Got a little question:  is there an debugger I can use with the Embarcadero C++ Compiler 7.20?

Greetings,

Don

I know of NO debugger  that works with that Compiler and works with Code::Blocks.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org