Bug #18919 2013-03-06 01:46

mkaama

Open WATCOM Linker cannot be customized

Out of the box, I can build a DLL with the Open WATCOM compiler.

However, if I copy the WATCOM compiler in Settings>Compiler (planning to customize for my Tcl projects), it no longer links.

Why? The correct command for watcom linker is (in essence):

wlink.exe file module1.obj,module2.obj

After copying configuration, it becomes broken:

wlink.exe module1.obj module2.obj

- spaces instead of commas, and no "file".

In Settings>Compiler>Other settings>Advanced options...>Link object files to dynamic library

we see $link_objects (underscore is misprocessed in the reference list on the right),

but no way to influence, whether separator is a space or a comma.

Should be configurable.

Category
Compiler
Group
Platform:Windows
Status
Closed
Close date
2013-03-18 20:53
Assigned to
alpha0010
alpha0010 2013-03-08 02:01

What version of Code::Blocks do you use? This is customizable in recent trunk builds (but probably not 12.11).

mkaama 2013-03-08 22:05

The separator option is good in the trunk, indeed, and I had 12.11.

But someone with svn commit access could fix

trunk\src\plugins\compilergcc\resources\advanced_compiler_options.xrc

on line 138 all & -s should be replaced with underscore, as that is what the macro names are.

alpha0010 2013-03-18 20:53

This bug is now fixed in HEAD.

Thank you for reporting it.