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

bug of cvf6.6?

truelies
Beginner
965 Views
In cvf6.6, if I use a function as argument,
external :: funname
call aaa(funname,...)
can pass the compile, when doing line, will get this message
error LNK2001: unresolved external symbol _funname
just like the function didn't defined, in fact I already defined this function.
Thank you!

Message Edited by truelies on 11-12-2004 03:15 PM

0 Kudos
7 Replies
Steven_L_Intel1
Employee
965 Views
You must have compiled with the /names:lowercase option selected. Is "funname" a Fortran function? If not, what language is it and what does its declaration look like?
0 Kudos
truelies
Beginner
965 Views
yes! funname means a function, how to add /names:lowercase in ide? You mean I should use command line to compile? Thank you for you answer!
0 Kudos
truelies
Beginner
965 Views
It's is a fortran function.
0 Kudos
Steven_L_Intel1
Employee
965 Views
It looks as if you already did tell the compiler to downcase names, but it's hard to tell for sure. Normally, the name would be in uppercase. This is specified under Projects..Settings..Fortran..External Procedures.

Is this Fortran procedure in your project?
0 Kudos
truelies
Beginner
965 Views
Yes, thanks! I'll try it.
0 Kudos
truelies
Beginner
965 Views
Not this reason, this just use to change identity to lowercase or uppercase.
I changed it and it was same.
I couldn't understand why the external function is there, but the linker can't find it?
0 Kudos
Jugoslav_Dujic
Valued Contributor II
965 Views
Can you show us:
1) The prototype of "funname" (first several lines)
2) Your project settings (Project/Settings/Fortran -> copy&paste all of the "Project options" edit box at the bottom)?
Jugoslav
0 Kudos
Reply