>So I guess that it should be something along the lines: >gcc -Wall -I/usr/X11R6/include Xmcheck.c -L/usr/X11R6/lib >.libs/libimp-cygXm-2.a >using whather .libs/libimp-cygXm-2.a points to.
Ok, yeah, that seems to be the problem. bash-2.05b$ gcc -Wall -I/usr/X11R6/include Xmcheck.c -L/usr/X11R6/lib -lXm Info: resolving _xmUseVersion by linking to __imp__xmUseVersion (auto-import) bash-2.05b$ ./a.exe xmUseVersion=2001 XmVersion=2001 bash-2.05b$ gcc -Wall -I/usr/X11R6/include Xmcheck.c -L/usr/X11R6/lib ddd/.libs/libimp-cygXm-2.a bash-2.05b$ ./a.exe xmUseVersion=1089480191 XmVersion=2001 Now, I guess, to try and walk back all of the automatic steps to figure out why ddd ended up linking against that libimp-cygXm-2.a file. But first, I'll run that last g++ linking step for ddd after editing it to remove those .libs links. -Richard Campbell.
