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
$(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.
$(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 (http://wiki.codeblocks.org/index.php/FAQ)
And this link; http://wiki.codeblocks.org/index.php/Creating_a_new_project (http://wiki.codeblocks.org/index.php/Creating_a_new_project)
Tim S.
My build logs
-------------- 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))
-------------- 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.