Software Archive
Read-only legacy content
17061 Discussions

Anything special to know about CXML in .DLL's?

Intel_C_Intel
Employee
467 Views
I was contacted by an friend about a problem he is having creating a .dll for a math program known as Matlab. Matlab supplies an API enabling one to write functions in fortran using CVF. He has written a simple function that is suffering from many problems. They seem to be related to linking against CXML. If the CXML statements are commented out, there aren't problems. If they are not, copious badness ensues. Are there any special compiler or linker options that should be chosen when using libs such as CXML? (I've also had problems with the Intel MKL)

Many TIA,
Matt
0 Kudos
2 Replies
Steven_L_Intel1
Employee
467 Views
What are the problems?

I think I would recommend linking against the DLL form of CXML if you are building a DLL - USE CXML_DLL_USE to get that.

Steve
0 Kudos
Steven_L_Intel1
Employee
467 Views
The CXML developers tell me that they prefer you use:


INCLUDE 'CXML_INCLUDE.F90'


which does "the right thing" if you are building a DLL or not. But if you are building an application which links against a Fortran DLL, you should perhaps USE CXML_DLL_USE anyway.

Steve

0 Kudos
Reply