Reputation: 2145
When I want to generate a shared object (.so) in unix os from object files, I simply enter following command:
g++ -shared xxx.o yyy.o zzz.o -o module.so
I am wondering if I can do the same thing in windows in order to generate a .dll file from object files. Is that possible?
Upvotes: 1
Views: 2119
Reputation: 179392
If you have MinGW32 or Cygwin installed, then yes. But you can't do it using Visual Studio directly, since Visual Studio uses the cl
compiler driver which has an entirely different set of options.
Upvotes: 2