i created the nimrtl dynamic library and also copied it to the project folder. 
then when compiled like so: 
    
    
    nim c --app:lib -d:useNimRtl  module.nim
    

this gets thrown:
    
    
    Hint: used config file '/home/z/Nim/config/nim.cfg' [Conf]
    Hint: system [Processing]
    Hint: module [Processing]
    Hint: asyncdispatch [Processing]
    Hint: os [Processing]
    Hint: strutils [Processing]
    Hint: parseutils [Processing]
    Hint: math [Processing]
    Hint: algorithm [Processing]
    Hint: times [Processing]
    Hint: posix [Processing]
    Hint: ospaths [Processing]
    Hint: tables [Processing]
    Hint: hashes [Processing]
    Hint: heapqueue [Processing]
    Hint: lists [Processing]
    Hint: options [Processing]
    Hint: typetraits [Processing]
    Hint: asyncstreams [Processing]
    Hint: asyncfutures [Processing]
    Hint: deques [Processing]
    Hint: nativesockets [Processing]
    Hint: net [Processing]
    Hint: sets [Processing]
    Hint: selectors [Processing]
    Hint: epoll [Processing]
    Hint: macros [Processing]
    lib/pure/asyncdispatch.nim(1545, 61) template/generic instantiation from 
here
    lib/pure/asyncmacro.nim(301, 55) Error: cannot 'importc' variable at 
compile time
    

This happens also to a one line test file 
    
    
    import asyncdispatch
    

Reply via email to