- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's is a fortran function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Is this Fortran procedure in your project?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, thanks! I'll try it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

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