Re: [fpc-pascal] Linking FPC code to a C program

vtech at vtech at
Mon May 24 14:21:09 CEST 2010

Hi a thank you for quick reply, but I've tried that before:

Fatal: Syntax error, ";" expected but "identifier NAME" found

Could it be mode dependant? (I use -Mobjfpc)


> It's normal name mangling, just like C++ also does.
> To force a
> specific name try something like this:
> function aplusb(a,b:longint):longint;cdecl name '_aplusb';
> -- 
> Felipe Monteiro de Carvalho
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at

More information about the fpc-pascal mailing list