Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

c++/fortran mixed language problem

Dwijendra_Sharma
Beginner
546 Views
I have recently started programming with Fortran,
I have a fortran program created as static library project that is being called from c++,getting the errors as below,I tried a lot but was not able to resolve it hence thought of posting it here.
**************************
c1.cpp(39) : error C2065: '_fcom' : undeclared identifier
c1.cpp(39) : error C2228: left of '.a' must have class/struct/union type
type is ''unknown-type''
c1.cpp(46) : error C2228: left of '.b' must have class/struct/union type
type is ''unknown-type''
c1.cpp(46) : error C3861: '_fcom': identifier not found, even with argument-dependent lookup
c1.cpp(51) : error C2228: left of '.c1' must have class/struct/union type
type is ''unknown-type''
c1.cpp(51) : error C2228: left of '.c2' must have class/struct/union type
type is ''unknown-type''
c1.cpp(51) : error C3861: '_fcom': identifier not found, even with argument-dependent lookup
c1.cpp(51) : error C3861: '_fcom': identifier not found, even with argument-dependent lookup
**************************

I'll appreciate if someone can help me out with this.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
546 Views
All those are errors from the C++ compiler. Perhaps you'd be better off to ask this in the C++ forum?
0 Kudos
Reply