Skip to content

Instantly share code, notes, and snippets.

@leonlee
Created February 11, 2015 07:56
Show Gist options
  • Save leonlee/b3a8ec6a675b5dc11beb to your computer and use it in GitHub Desktop.
Save leonlee/b3a8ec6a675b5dc11beb to your computer and use it in GitHub Desktop.
leon@ws-svr:~/lab/nim4c$ gcc -o m -Inimcache -I/home/leon/opt/nim/lib nimcache/*.c mth.c
nimcache/system.c: In function ‘allocinv_34409’:
nimcache/system.c:7867:10: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘NI’ [-Wformat=]
printf("%ld %p\012", (*it).Zerofield, it);
^
nimcache/system.c: In function ‘writecell_49018’:
nimcache/system.c:8330:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘NI’ [-Wformat=]
fprintf(stdout, "[GC] %s: %p %d rc=%ld; color=%ld\012", msg, c, kind, (NI)((NU64)((*c).Refcount) >> (NU64)(3)), (NI)((*c).Refcount & 3));
^
nimcache/system.c:8330:2: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘long long int’ [-Wformat=]
nimcache/system.c:8330:2: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘NI’ [-Wformat=]
/tmp/ccTDNzzK.o: In function `nimUnloadLibrary':
system.c:(.text+0xffbb): undefined reference to `dlclose'
/tmp/ccTDNzzK.o: In function `nimLoadLibrary':
system.c:(.text+0xffe6): undefined reference to `dlopen'
/tmp/ccTDNzzK.o: In function `nimGetProcAddr':
system.c:(.text+0x1001b): undefined reference to `dlsym'
collect2: error: ld returned 1 exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment