- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am compiling an application that uses both c and fortran source code within cygwin. I keep encountering mulitple unresolved external symbols at the linking stage.
I am using ifort for fortran compilation and cc (cygwin) for c compilation. The unresolved symbols are defined in c (which compiles and generates the .o file) When I pass this file to ifort it generates the .obj file. However, linking this .obj file fails and claims the c functions are unavailable (unresolved).
How can I solve this problem?
Thank you
I am using ifort for fortran compilation and cc (cygwin) for c compilation. The unresolved symbols are defined in c (which compiles and generates the .o file) When I pass this file to ifort it generates the .obj file. However, linking this .obj file fails and claims the c functions are unavailable (unresolved).
How can I solve this problem?
Thank you
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Intel Fortran does not support linking with object code from C compilers other than Microsoft Visual C++ or Intel C++. I assume you are using gcc?
Try using MSVC (cl) instead. Or do a "dumpbin -symbols" on the C and Fortran objects and look to see if the desired names match.
Try using MSVC (cl) instead. Or do a "dumpbin -symbols" on the C and Fortran objects and look to see if the desired names match.

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