First problem are solved, but... main function of libraries written in NIM 
wasn't called. I use -l="-Lpath_relative_to_main_project_dir -llib_name" (Of 
course, I skip extension and lib prefix). What I must said: When using --clib, 
NIM append directory path of file currently compiled, so in result I've got 
/home/slawomir/postep/src/executables/path_realtive_to_main_dir/lib_name

I decided to create function called a just like this:
    proc a {.exportc, cdecl.} = echo "a"
And import it just like this:
    proc a {.importc, cdecl.}
But have this error, when calling
    /home/postep/src/executables/postep.nim(8, 12) Error: expression 'a()' has 
no type (or is ambiguous)|   
---|---  
I call this function in this way:
    discard a()

Reply via email to