Well, by default $link_options isn't added to the "Link object files to static library" command under advanced options on the OpenWatcom compiler settings. I guess that's required to get c::b to include the "Other linker options" in the link command arguments?
(By the way, it's a bit challenging that the listed command macros in "Advanced compiler options" are different than what you have to enter. In 15.12 RC1 you see Linker flags specified as "$$linkeroptions" but you have to enter "$linker_options". All the command macros in 15.12 seems to have an extra '$' prepended compared to 13.12. But 13.12 also suffers from the missing underscore in the macros. Oh well...)
Back on track. If I add $linker_options I get a "debug all" part added to the linker arguments which is not understood by the OpenWatcom library linker wlib. I cannot see what causes the "debug all" to be added, so for now it's a dead end.
I've tried to add the obj file to the project. It might be the way to go, but I have to place the file twice in the source tree (or setup a prebuild copy job) since the "Objects output dir" is prepended to all obj files including the one I add. So if I add the file in the root of my source tree I get an error because the file wasn't found in obj\Debug\extasm.obj. If I place the file in obj\Debug\ and add it to the project on that location I get an error because the file wasn't found in obj\Debug\obj\Debug\extasm.obj.
However I still get an undefined reference on the methods I try to call from the external obj. It works in the M$ VC++ environment I'm trying to escape from, so the're must be a way. I think I'll try to get it working in the OpenWatcom IDE and see if I can transfer the setup to c::b afterwards.
Thanks for your input. Highly appreciated!
Best regards
Emil