Watcom C++ hang/crash


we are having problems with compiling our QNX4.25 (G) application with
Watcom C++ 10.6 (B).

The compiler hangs when compiling certain modules. Though it generates an
object file of size 0.

We figured out that removing some #includes can solve the problem (this also
implies rearranging our code e.g. to use pointers/forward declarations).
Also changing compiler switch settings from -g2d to g1 can solve the
problem. But both modifications are a pain in larger applications.

Not using pre-compiled headers does not solve the problem.

It’s also not a problem of insufficient RAM. The build PC has 1GB. “sin
freemem” shows only some 7 GB of additional RAM usage during compile.

Any ideas?

Thanks for your help!