Problem linking in c code

BlitzMax Forums/BlitzMax Programming/Problem linking in c code

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi. I did some C code, and used an extern block + import to get it into max.

It works, but I get the following error:

Warning: resolving _TestFunction@0 by linking to _TestFunction
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups

C function

// Test function
int TestFunction(void)
{
  return 10;
}


BlitzMax import code
' Include externs
Extern 

	Function TestFunction:Int()

End Extern


What gives?