pocketlang/tests/native/dl
Thakee Nathees 4f33aa7e25 types hash api implemented
and, or operators supports new line after the first
expression.
2022-06-01 18:31:51 +05:30
..
main.pk extension module implemented 2022-05-30 22:55:22 +05:30
mylib.c extension module implemented 2022-05-30 22:55:22 +05:30
pknative.c types hash api implemented 2022-06-01 18:31:51 +05:30
README.md extension module implemented 2022-05-30 22:55:22 +05:30

Example on how compile a native extension.

MSVC

cl /LD mylib.c pknative.c /I../../../src/include/
rm *.obj *.exp *.lib

GCC

gcc -fPIC -c mylib.c pknative.c -I../../../src/include/
gcc -shared -o mylib.so mylib.o pknative.o
rm *.o