Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I mix my Microsoft-compatible C libraries with Watcom run-time libraries?

Libraries mix run-time watcom
0
Posted

Can I mix my Microsoft-compatible C libraries with Watcom run-time libraries?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123