Jump to content

Visual Studio creating .exp and .lib files for the executable


photo

Recommended Posts

Posted

While building a project in Visual Studio, it is creating project.lib and project.exp along with my project.exe file.

This seems to be because of the following in UnigineBase.h:

...
#ifdef _WIN32
#define UNIGINE_API	__declspec(dllexport)
...

 

If I change the above code to

...
#ifdef _WIN32
#define UNIGINE_API	__declspec(dllimport)
...

VS doesn't create those two files and the program works fine.

Although the two files don't cause any trouble, its kind of annoying in the output folder. Is the definition of UNIGINE_API as __declspec(dllexport) for some other specific reasons?

  • 1 month later...
Posted

__declspec(dllexport) should be specified there. Take a look here.

×
×
  • Create New...