Cycles as a .dll file

Hi,

Can we build .dll files instead of .lib files?

I want to build a single dll (lets say cycles.dll) which can be used in any application.
I went to the app folder and added a couple of instructions like "add_library(cycles_shared SHARED ${SRC}…).

A dll is generated but when I try to use that in another application, I am getting a compilation error stating that the dll is corrupted.

I am actually trying to write a C++/CLI wrapper over cycles .lib files. I could not do it. I have gone thru the implementation CCsycles but it is very old and outdated. Moreover, I want to implement a managed class on top of every important cycles class.

Any suggestions?

Thanks in advance.

I went to the app folder and added a couple of instructions like "add_library(cycles_shared SHARED ${SRC}…).

cycles does not have any exports declared, so no symbols would be exported from the dll if you were to build/link it that way.

1 Like

Oh. Got it. Thank you. I am new to C++. I have been a C# developer for the last 20 years