A23149577
A23149577

Reputation: 2145

Generating dll file from object files

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

Answers (1)

nneonneo
nneonneo

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

Related Questions