- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My main program is in Fortran and I need to use libraries written in C. How do I enable my program to read and understand the libraries?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the libraries are already compiled into a .LIB, then you don't need your program to "read" the libraries, just link against them and call them. I suggest you read the chapter on mixed-language programming in the Visual Fortran Programmer's Guide (if you are using Visual Fortran). Then just add the .LIB files to your project as if they were sources, and they'll be automatically linked.
Steve
Steve
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page