Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error: execution of an external compiler program 'gcc -c -w -pthread -I/home/tay/.choosenim/toolchains/nim-1.0.4/lib -I/home/tay -o /home/tay/.cache/nim/locktest_d/stdlib_dollars.nim.c.o /home/tay/.cache/nim/locktest_d/stdlib_dollars.nim.c' failed with exit code: 1
- /home/tay/.cache/nim/locktest_d/stdlib_dollars.nim.c: In function ‘dollar___3Dq1hcGH7a2iNlnh4hnPbg’:
- /home/tay/.cache/nim/locktest_d/stdlib_dollars.nim.c:219:50: error: ‘pthread_mutex_t’ {aka ‘union <anonymous>’} has no member named ‘abi’
- 219 | addQuoted__N56rmvBL9a3xqnKq09cKdb3A((&result), x.abi);
- | ^
- import locks
- import os
- import threadpool
- proc f(x: Lock) {.thread.} =
- echo x
- when isMainModule:
- var thr: Thread[Lock]
- var l: Lock
- initLock(l)
- createThread(thr, f, l)
- joinThread(thr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement