- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All those are errors from the C++ compiler. Perhaps you'd be better off to ask this in the C++ forum?

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