Everytime I specify a dynlib in a proc, the library can never be found and is 
never loaded:

Example:
    
    
    proc fooLoad(file_name: cstring, data: ptr ptr UncheckedArray[cdouble], 
numel: var cint): cint {.importc: "foo_load", dynlib: "libfootest.so".}
    
    
    Run

I always get the error:

> could not load: libofootest.so

  * I have added the library path to LD_LIBRARY_PATH.
  * I have tried having the library in the same directory as the executable.
  * I have tried specifying the library and path with --passL
  * I have tried --clibdir.
  * I have tried --clib.
  * I have tried the combination of --clibdir and --clib.



Everytime, the result is the same:

> could not load: libofootest.so

The only thing that works is me specifying the header instead like so:
    
    
    proc fooLoad(file_name: cstring, data: ptr ptr UncheckedArray[cdouble], 
numel: var cint): cint {.importc, header: "foo_load.h".}
    
    
    Run

While this works, I do not want to have to write headers all the time after 
writing a **.c** or **.cpp** file to wrap some C/C++ functionality.

Any thoughts on why _dynlib_ does not work is appreciated?

Reply via email to