Guest User

Untitled

a guest
May 27th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. The Nim:
  2.  
  3. import os, strutils
  4. import nimterop/[cimport, build, paths]
  5.  
  6. cPlugin:
  7. proc onSymbol*(sym: var Symbol) {.exportc, dynlib.} =
  8. sym.name = sym.name.strip(chars = {'_'})
  9.  
  10. cImport("/usr/include/fitsio.h", recurse=true)
  11.  
  12. The error:
  13.  
  14. /home/liam/.cache/nim/nimterop/cPlugins/nimterop_962481396.nim(5, 22) Error: attempting to call undeclared routine: 'strip'
Add Comment
Please, Sign In to add comment