enwi / dartzmq

A simple dart zeromq implementation/wrapper around the libzmq C++ library
https://pub.dev/documentation/dartzmq/latest/
MIT License
26 stars 17 forks source link

Issues with library loading on Windows #22

Closed chmoore889 closed 1 year ago

chmoore889 commented 1 year ago

When trying to use any these functions in my own code and the example code provided by this package, I'm having getting errors saying there are errors with loading the DLLs.

[dartzmq] Failed to load library zmq:  Invalid argument(s): Failed to load dynamic library 'zmq.dll': error code 126
[dartzmq] Failed to load library libzmq:  Invalid argument(s): Failed to load dynamic library 'libzmq.dll': error code 126

Based on the docs and what I've seen in other posted issues, I shouldn't need to do anything if I just want to use the default binaries. What am I doing wrong?

chmoore889 commented 1 year ago

Printed errors were unrelated to actual issue

enwi commented 1 year ago

@chmoore889 Just to explain what was happening. Some Failed to load Library errors can just be ignored, because the code will try to load the library with platform dependant names and thus a few errors will be logged, even though the library was loaded correctly.