Okay, I believe I have identified the problem. Please try the attached patch and let me know if it works for all target types (console, dll, static lib, ...). (This patch works for me, but I do not use Open Watcom, so my test projects are probably not complex enough to handle all possible situations.)