Take the 2-minute tour ×

I have a Visual C++ dll project. The dll can be created, but the lib isn't generated. Which project propery should I modify to ouput the lib?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Use a Module Defintion File:

  • Add a DEF file to your DLL project, if it does not already have one.
  • Verify that the DEF file is used as "Module Definition File".
  • Add all symbols to be exported to the DEF file.

Alternatively you can use __declspec(dllexport) to define exported symbols.

share|improve this answer
add comment

Do you export some symbol? Without exporting something, lib is not generated.

share|improve this answer
add comment

Your Answer


