python - Adding a library to C -


i'm working python, have basic understanding of packaging c. don't know how build c 'path.' also, google searches seem failing me returning results on c++. or solution?

the objective include qrencode.h, can surly put in same folder i'd know how link instead.

thanks!

ps. always, addition read material relevant appreciated!

you use include directive include *.h file in c/c++ code:

#include "qrencode.h" 

as @ignacio vazquez-abrams says, though, that's header, declares functions; need actual functions, , they'll in *.dylib or *.so file, needs linked executable. compiling turning 1 *.c file *.o file; linking when put *.o files , libraries application. -l option on linker command line tells libraries; -l option tells include library.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -