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 on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29281 Discussions

unresolved external symbols in cygwin

kuria
Beginner
475 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
475 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