had a static library ive made with gcc, how can i access this functions? Say, my static library filename is libmy123.a. AFAIK, i have to link to my program using {$linklib 'libmy123.a'}. In libmy123.a i have C function that returns the addition of 2 numbers, declared in C as:
int add (int a, int b){return a+b;}
Now, how can i access this "add" function from within freepascal after I've statically linked it with my pascal program?
try this without quotes maybe: {$linklib libmy123.a}
Обсуждают сегодня