×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Calling C++ DLL from FORTRAN (DVF 6.5)

Calling C++ DLL from FORTRAN (DVF 6.5)

Calling C++ DLL from FORTRAN (DVF 6.5)

(OP)
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

RE: Calling C++ DLL from FORTRAN (DVF 6.5)

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   
www.dtware.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources