c - lazarus lazarus / 1-Linux ---------------------------------------------------------------------- nico88desmo · 2007-04-01 13:26 Hello! This is my problem: I'd like to call a function/procedure written in pascal from a C source. I know C has got a directive called EXTERN used to call external function. Can I do the same thing even if the external function is written with pascal? Thank to All! ---------------------------------------------------------------------- nico88desmo · 2007-04-02 13:09 I do it!  :mrgreen: So, i write the code; it may be usefull for somebody; C source. In the definition of functions you must write: EXTERN void function_name (void); Pascal unit source. Under interface section you must write the declaration of the function/procedure: procedure procedure_name; cdecl; export; and then the definition of it: procedure procedure_name; cdecl; export; begin    ... end;