Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Ask a question about Fortran call C

Dongyong_W_
Beginner
63 Views

Hello,

  Recently I do some work using Fortran call C, but it failed. I want to ask you a question, for example: "real(c_double)",it means "real" in Fortran, "double" in C. And I want use Fortran to call C API, "void C_SOCP( double c[], MSKboundkeye bkc[] )". Therefore "c" can be recognized using "real(c_double)" in Fortran, but I don't know deal with " MSKboundkeye bkc[] ". Here," MSKboundkeye bkc[] " was typedef in C, it was shown as follows:

      typedef enum MSKboundkey_enum        MSKboundkeye;

      MSKrescodee (MSKAPI MSK_putconbound) (

     MSKtask_t task,

     MSKint32t i,

     MSKboundkeye bk,

     MSKrealt bl,

     MSKrealt bu); 

 

  Do you know how to solve the problem?

0 Kudos
0 Replies
Reply