I was writing the code in c not c++.
I used the default settings and got the error.
No you used what someone set the values to on your computer; not the default settings
The ar.exe links static libraries according to the toolchain menu.
Correct.
But, the Shared/DLL linker is used for linking everything that is not an static library!
Is there an issue with the defaults for CB?
No, the issue is user error and the fact that CB setting can only be manually deleted; so, they stay during an uninstall/install cycle.
Is there an explanation about the problem that I missed?
See the above answer.
Tim S.