Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28495 Discussions

Can 64bit fortran code call 32 bit library routines?

randystonesifer
Beginner
544 Views

We need large arrays so we need 64 bit fortran code. We have been using the 32 bit metis library (C code supplied as a Windows library) and it appears large arrays may not be an issue for these library routines. Can we use the 32 bit library while creating a 64 bit fortran .exe?

0 Kudos
4 Replies
TimP
Honored Contributor III
544 Views
No, all .obj must have matching /machine tags. If you bypass that check some way, your .exe will hang at run time.
0 Kudos
randystonesifer
Beginner
544 Views

That is what I was going to assume, but thought it was worth confirming.

Thanks

0 Kudos
randystonesifer
Beginner
544 Views
I supposethat a DLL mustalso be 64 bit to be called by a 64 bit program?
0 Kudos
Steven_L_Intel1
Employee
544 Views
Correct.
0 Kudos
Reply