Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling C++ DLL from FORTRAN (DVF 6.5)

Status
Not open for further replies.

ccrum

Electrical
Apr 20, 2001
17
I'm trying to call a C++ DLL from my fortran code. I know how to declare the functions in FORTRAN for this, but what I don't know is how to actually link the C++ DLL to my FORTRAN program. In the past I have called C DLL's but they came with a static library ".lib" file that I could but in the linker. The C++ code only has the .h (header file I think) and the DLL. Do I just link the .h file? Or do I need to have a static library? Obviously I'm ont a C++ programmer, so any help would be appreciated.

Regards,

Cameron
 
Replies continue below

Recommended for you

You might try asking Steve Lionel in the comp.lang.fortran newsgroups. He is the DVF man to talk to. Keep in mind that it will depend on who's C++ compiler you are using also.

Dan :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor