View previous topic :: View next topic |
Author |
Message |
yxww
Joined: 04 May 2006 Posts: 5
|
Posted: Fri May 12, 2006 1:47 am Post subject: Link Error |
|
|
What is this link error means?
LINK : error - Attempt to call Void TempFree(Void*) as if it were TempFree(Salford.Fortran.FunctionType*) |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Fri May 12, 2006 2:05 am Post subject: Link Error |
|
|
Do you have a routine called TempFree in your code and, each time you call it, are the arguments consistent?
Fortran does not allow you to overload function names. |
|
Back to top |
|
|
yxww
Joined: 04 May 2006 Posts: 5
|
Posted: Fri May 12, 2006 8:09 am Post subject: Link Error |
|
|
Thank you, Paul
I have found such statements as below cause the link error:
character(len=80) name
name(1:20) = name( 5:25)
It can be linked successfully under CVF or IVF
PS: I call a FTN95 routine in C# and the routine includes some string arguments. Although i know that the string arguments transition is correct,
i fail to query the arguments value in debug mode. why? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Fri May 12, 2006 10:01 am Post subject: Link Error |
|
|
This works OK in Fortran so there must something wrong with the way you are using it in C#.
See "Calling Fortran from other .NET languages" in the Help file and in particular the comment...
Fortran CHARACTERs are mapped to System.String objects and passed by value (this means that changes made to a dummy argument are not passed back to the actual argument at the point of call). |
|
Back to top |
|
|
|