[fpc-pascal] Using FPC MM in a C program
    Micha Nelissen 
    micha at neli.hopto.org
       
    Tue Jan  6 11:24:10 CET 2009
    
    
  
leledumbo wrote:
> Since it's possible to use libc's MM via cmem unit, would the opposite be
> possible?
I have a "crtl.pas" which defines a few functions (malloc, calloc, free, 
memmove, memcpy) to help in using libraries written in C with fpc 
programs without needing external dependencies (msvcrt.dll on windows, 
for some reason that did not work for me).
However, it's a all-or-nothing situation. A program uses either this 
crtl unit, or it links a C library like msvcrt.dll or something similar; 
using both is asking for trouble.
Micha
    
    
More information about the fpc-pascal
mailing list