- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a fortran main program that calls a C routine. I have compiled the C routine using gcc and have a .o file. I cant figure out how to get the Build in Visual Studio to link the fortran and to c *.o files? Where do I tell it the name of the *.o and where it is?
thanks,
Mike Hoversten
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This would have to have been built by a gcc targeted for Windows, with no run time library dependency other than on the Windows libraries, such as mingw-gcc. In that case, you should be able to rename as .obj and add to the .obj files of your project. Normally, you would rebuild using the VS compiler for compatibility with ifort.

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