- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
With 11.1.054 on WinXP64 with VS2005, I am seeing that the import library is not generated if I use project type as "DLL with sample code". Using "DLL" as project type and then adding a file by Add existing item or adding a new file does generate the corresponding .LIB.
I can see that under Project --> Properties --> Linker --> Advanced --> Import Library is set to $(TargetDir)$(TargetName).lib and that the command line and the build-log show /IMPORTLIB:complete file path in all cases. Yet, the import library is NOT generated when project type is "DLL with sample code".
Has this happened to anyone else or it is just my computer/settings?
Abhi
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Generating the .LIB requires a DLLEXPORT directive in the routine to be exported. If you don't have this, or it is incorrect, you won't get the .LIB. The options you mention have no effect on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am quite sure that the DLLEXPORT is there since the "sample code" automatically puts it.
Abhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I restarted the Visual Studio and I see the .LIB generated. To check, I used the same project (which indeed had DLLEXPORT in it) and also created a new project from scratch. Both are creating .LIB as expected. May be I had messed up the /IMPORTLIB: path when I touched that switch and changed the default $(Targetlib).. etc.
This would make it put the library in the other path, wouldn't it?. What happens if this path does not exist (although I don't think it was the issue in this case)?
Abhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page