xavierleroy / camlidl

Stub code generator for OCaml/C interface
Other
34 stars 8 forks source link

fix linking in bytecode #15

Closed ygrek closed 4 years ago

ygrek commented 4 years ago

after d8f7a3f9a3999c17c6ee61ebbc6051136aed3bb8 it became possible to link libcamlidl.a on linux to bytecode custom binaries, but pure bytecode link will fail with IID_IUnknown unresolved :

 Error: Error on dynamically loaded library: /home/ygrek/example/_opam/lib/stublibs/dllcamlidl.so: /home/ygrek/example/_opam/lib/stublibs/dllcamlidl.so: undefined symbol: IID_IUnknown

(there is also a case of META file tweak required but it is currently maintained in opam-repository and I will fix it there when needed)

This PR removes IID_IUnknown from dllcamlidl.so and libcamlidl.a. My reasoning is that it can only be resolved on windows so the only usage of IID_IUnknown that was affecting build on linux is now also hidden under WIN32 define.