Skip to content

Instantly share code, notes, and snippets.

@fracek
Created March 18, 2012 13: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 fracek/2072005 to your computer and use it in GitHub Desktop.
Save fracek/2072005 to your computer and use it in GitHub Desktop.
I <3 GCC errors
clang -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bgzf.c -o bgzf.o
In file included from bgzf.c:36:
./bgzf.h:31:10: fatal error: 'knetfile.h' file not found
#include "knetfile.h"
^
1 error generated.
gcc -c -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -D_CURSES_LIB=1 -I. bgzf.c -o bgzf.o
In file included from bgzf.c:36:
bgzf.h:31:22: error: knetfile.h: No such file or directory
In file included from bgzf.c:36:
bgzf.h:42: error: expected specifier-qualifier-list before ‘knetFile’
bgzf.h: In function ‘bgzf_getc’:
bgzf.h:147: warning: implicit declaration of function ‘knet_tell’
bgzf.h:147: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c:38:19: error: khash.h: No such file or directory
bgzf.c: At top level:
bgzf.c:44: error: expected ‘)’ before ‘cache_t’
bgzf.c: In function ‘bgzf_check_bgzf’:
bgzf.c:127: warning: implicit declaration of function ‘knet_read’
bgzf.c:127: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c: In function ‘bgzf_read_init’:
bgzf.c:149: warning: implicit declaration of function ‘kh_init’
bgzf.c:149: error: ‘cache’ undeclared (first use in this function)
bgzf.c:149: error: (Each undeclared identifier is reported only once
bgzf.c:149: error: for each function it appears in.)
bgzf.c:149: warning: assignment makes pointer from integer without a cast
bgzf.c: In function ‘open_read’:
bgzf.c:158: error: ‘knetFile’ undeclared (first use in this function)
bgzf.c:158: error: ‘file’ undeclared (first use in this function)
bgzf.c:158: warning: implicit declaration of function ‘knet_dopen’
bgzf.c:168: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c: In function ‘open_write’:
bgzf.c:189: error: ‘union <anonymous>’ has no member named ‘fpw’
bgzf.c: In function ‘bgzf_open’:
bgzf.c:210: error: ‘knetFile’ undeclared (first use in this function)
bgzf.c:210: error: ‘file’ undeclared (first use in this function)
bgzf.c:210: warning: implicit declaration of function ‘knet_open’
bgzf.c:215: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c: In function ‘free_cache’:
bgzf.c:415: error: ‘khint_t’ undeclared (first use in this function)
bgzf.c:415: error: expected ‘;’ before ‘k’
bgzf.c:416: warning: implicit declaration of function ‘khash_t’
bgzf.c:416: error: ‘cache’ undeclared (first use in this function)
bgzf.c:416: error: ‘h’ undeclared (first use in this function)
bgzf.c:416: error: expected expression before ‘)’ token
bgzf.c:418: error: ‘k’ undeclared (first use in this function)
bgzf.c:418: warning: implicit declaration of function ‘kh_begin’
bgzf.c:418: warning: implicit declaration of function ‘kh_end’
bgzf.c:419: warning: implicit declaration of function ‘kh_exist’
bgzf.c:419: warning: implicit declaration of function ‘kh_val’
bgzf.c:419: error: request for member ‘block’ in something not a structure or union
bgzf.c:420: warning: implicit declaration of function ‘kh_destroy’
bgzf.c: In function ‘load_block_from_cache’:
bgzf.c:425: error: ‘khint_t’ undeclared (first use in this function)
bgzf.c:425: error: expected ‘;’ before ‘k’
bgzf.c:427: error: ‘cache’ undeclared (first use in this function)
bgzf.c:427: error: ‘h’ undeclared (first use in this function)
bgzf.c:427: error: expected expression before ‘)’ token
bgzf.c:428: error: ‘k’ undeclared (first use in this function)
bgzf.c:428: warning: implicit declaration of function ‘kh_get’
bgzf.c:430: error: lvalue required as unary ‘&’ operand
bgzf.c:436: warning: implicit declaration of function ‘knet_seek’
bgzf.c:436: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c: In function ‘cache_block’:
bgzf.c:446: error: ‘khint_t’ undeclared (first use in this function)
bgzf.c:446: error: expected ‘;’ before ‘k’
bgzf.c:448: error: ‘cache’ undeclared (first use in this function)
bgzf.c:448: error: ‘h’ undeclared (first use in this function)
bgzf.c:448: error: expected expression before ‘)’ token
bgzf.c:450: warning: implicit declaration of function ‘kh_size’
bgzf.c:454: error: ‘k’ undeclared (first use in this function)
bgzf.c:457: error: request for member ‘block’ in something not a structure or union
bgzf.c:458: warning: implicit declaration of function ‘kh_del’
bgzf.c:461: warning: implicit declaration of function ‘kh_put’
bgzf.c:463: error: lvalue required as unary ‘&’ operand
bgzf.c:467: error: request for member ‘block’ in something not a structure or union
bgzf.c:467: error: request for member ‘block’ in something not a structure or union
bgzf.c:467: error: request for member ‘block’ in something not a structure or union
bgzf.c:467: error: request for member ‘block’ in something not a structure or union
bgzf.c: In function ‘bgzf_read_block’:
bgzf.c:476: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c:478: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c:502: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c: In function ‘bgzf_read’:
bgzf.c:557: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c: In function ‘bgzf_flush’:
bgzf.c:574: error: ‘union <anonymous>’ has no member named ‘fpw’
bgzf.c: In function ‘bgzf_close’:
bgzf.c:632: error: ‘union <anonymous>’ has no member named ‘fpw’
bgzf.c:638: error: ‘union <anonymous>’ has no member named ‘fpw’
bgzf.c:649: error: ‘union <anonymous>’ has no member named ‘fpw’
bgzf.c:650: warning: implicit declaration of function ‘knet_close’
bgzf.c:650: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c: In function ‘bgzf_check_EOF’:
bgzf.c:674: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c:675: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c:676: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c:677: error: ‘union <anonymous>’ has no member named ‘fpr’
bgzf.c: In function ‘bgzf_seek’:
bgzf.c:703: error: ‘union <anonymous>’ has no member named ‘fpr’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment