Silverfrost Forums

Welcome to our forums

Link Error

12 May 2006 12:47 #675

What is this link error means?

LINK : error - Attempt to call Void TempFree(Void*) as if it were TempFree(Salford.Fortran.FunctionType*)

12 May 2006 1:05 #676

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.

12 May 2006 7:09 #677

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?

12 May 2006 9:01 #678

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).

Please login to reply.