Can I mix my Microsoft-compatible C libraries with Watcom run-time libraries?
If the third party library is a static library (.lib) that has dependencies on the run-time system (i.e. calls run-time library routines) of another compiler, then the link will almost definitely fail. The link usually fails because the third party library makes references to the Microsoft run-time, which will not be present. Even if the link succeeds, the application will probably not run properly, since the two run-time systems will be incompatible. If the third party library is a dynamic link library (.dll) or an assembly library that does not have dependencies on any other vendor’s run-time, then #pragma’s can be used to adjust the Watcom compiler’s calling conventions for any given routine. This allows the routines to be called from Watcom compiled code. For more information on #pragma’s, please refer to the Watcom C/C++ User’s Guide. Note that although DLLs written in C can usually be made to work, Microsoft C++ DLLs will not necessarily work with Watcom C++ applications unless y