Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Apr 20, 2001
Messages
17
Location
US
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
 
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

Back
Top