Skip to content

Instantly share code, notes, and snippets.

@Veejay
Created April 28, 2012 16:12
Show Gist options
  • Save Veejay/2520005 to your computer and use it in GitHub Desktop.
Save Veejay/2520005 to your computer and use it in GitHub Desktop.
hash_table.c:165:3: error: expected ')'
assert(code == LL_DELETE_OK);
^
hash_table.c:165:18: note: instantiated from:
assert(code == LL_DELETE_OK);
^
hash_table.c:7:23: note: instantiated from:
#define LL_DELETE_OK 0;
^
hash_table.c:165:3: note: to match this '('
assert(code == LL_DELETE_OK);
^
/usr/include/assert.h:93:24: note: instantiated from:
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
hash_table.c:165:3: error: expected ')'
assert(code == LL_DELETE_OK);
^
hash_table.c:165:18: note: instantiated from:
assert(code == LL_DELETE_OK);
^
hash_table.c:7:23: note: instantiated from:
#define LL_DELETE_OK 0;
^
hash_table.c:165:3: note: to match this '('
assert(code == LL_DELETE_OK);
^
/usr/include/assert.h:93:22: note: instantiated from:
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
hash_table.c:165:3: error: expected expression
assert(code == LL_DELETE_OK);
^
In file included from hash_table.c:4:
/usr/include/assert.h:93:26: note: instantiated from:
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
3 errors generated.
@Veejay
Copy link
Author

Veejay commented Sep 20, 2012

clang -c linked_list.c
clang -c hash_table.c
clang -o main main.c hash_table.o linked_list.o

Et c'est torché.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment