Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29307 Discussions

unresolved external symbols in cygwin

kuria
Beginner
516 Views
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
0 Kudos
1 Reply
Steven_L_Intel1
Employee
516 Views
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.
0 Kudos
Reply