Skip to content

Instantly share code, notes, and snippets.

@kvisle
Created November 11, 2012 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kvisle/4054601 to your computer and use it in GitHub Desktop.
Save kvisle/4054601 to your computer and use it in GitHub Desktop.
tv@apu:~/git/varnishapi$ gcc $(pkg-config varnishapi --cflags --libs) test.c
test.c: In function ‘do_stuff_cb’:
test.c:35:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘uint64_t’ [-Wformat]
/tmp/ccuL43xH.o: In function `do_stuff':
test.c:(.text+0x17f): undefined reference to `VSC_Iter'
/tmp/ccuL43xH.o: In function `main':
test.c:(.text+0x195): undefined reference to `VSM_New'
test.c:(.text+0x1a5): undefined reference to `VSC_Setup'
test.c:(.text+0x1b6): undefined reference to `VSC_Open'
test.c:(.text+0x1d0): undefined reference to `VSC_Main'
collect2: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment