Just by looking at linker invocation:
    
    
     g++   -o /mnt/c/OpenCVNim/OpenCVNim  
/mnt/c/OpenCVNim/extern/opencv-install/lib/libopencv_world.so 
/home/echopouet/.cache/nim/OpenCVNim_d/stdlib_digitsutils.nim.cpp.o 
/home/echopouet/.cache/nim/OpenCVNim_d/stdlib_dollars.nim.cpp.o 
/home/echopouet/.cache/nim/OpenCVNim_d/stdlib_system.nim.cpp.o 
/home/echopouet/.cache/nim/OpenCVNim_d/@mOpenCVNim.nim.cpp.o    -ldl
    
    Run

I can tell you that linking order is incorrect - you need to first specify 
object files and then their dependencies, not the other way around. Try this:
    
    
    {.passc: "-I/mnt/c/OpenCVNim/extern/opencv-install/include/opencv4", passL: 
"/mnt/c/OpenCVNim/extern/opencv-install/lib/libopencv_world.so".}
    
    Run

Reply via email to