c++ - ffplay compilation with a custom header -


i re-compile ffplay custom header , library (which libosc)

could tell me how pass library linker in makefile

i following error: http://pastebin.com/1z3sijjq

libosc has been compiled , libosc.a file in libosc source folder

i compile test program implementing testoscheader.h (my custom header) testoscheader.c , compiling gcc

gcc -o testoscheader testoscheader.c  htmsocket.c ../libosc/libosc.a  

the htmsocket.c htmsocket.h can found here http://archive.cnmat.berkeley.edu/osc/src/sendosc/

libosc can found here http://archive.cnmat.berkeley.edu/osc/src/libosc/

could me compile ffplay header

update::

there errors rid of 1 puzzling:

in file included htmsocket.c:40:0,                  testoscheader.h:3,                  ffplay.c:47: /usr/include/netinet/in.h: @ top level: /usr/include/netinet/in.h:368:17: error: expected ‘)’ before ‘__hostlong’ 

there include "netinet/in.h" in ffplay.c , there no errors when compile without custom header. raises error if add custom header

can point out mistake here

the problem fixed including netinet/in.h in htmsocket.c hope helps someone


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -