/cc @jgeralnik|   
---|---  
  
> On second thought - not sure how well this could possibly work. When 
> compiling my stand alone utility I pass in: --passL:"-lpcap" so that my 
> binary will like against pcap, but if I want this code to run in compile time 
> I need to either link the compiler to libpcap or dynamically load the libpcap 
> into the compiler process. > I can see where @Araq's hesitation comes from

that's not needed; since 
[https://github.com/nim-lang/Nim/pull/11635](https://github.com/nim-lang/Nim/pull/11635)
 you can use {.importc, dynlib: "libfoo.dylib".} with CT FFI, see examples in 
that PR,

If it doesn't work for you, please file a minimum reproducing example (or 
better, submit a PR) 

Reply via email to