Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  mv mylib.h mylib.c
  gcc -c mylib.c -o mylib.o
Then link it as a .so/.dll or in a .a library. Done you can use it like any other library.


I still need to parse the header. For 90% of libraries you can just parse the subset of C that's required for function declarations.





Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: