[fpc-pascal] trying to use C code in .pas on WIN32

conlin664 conlin664 at yahoo.com
Thu Jan 31 19:00:42 CET 2019


sven,

so I just tried, what I think you said:

procedure HelloC; cdecl; external name 'HelloC';

pcode.pas(19,1) Error: Undefined symbol: _HelloC 


sorry for complaining about windows, but i feel like this is more difficult
on windows.
All of the FPC examples, seem to run without this extra '_' business and i
suspect they are on linux Os macOs.

Here at work I'm on a windows machine, but at home I'm happily running FPC
on a mac




--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/



More information about the fpc-pascal mailing list