Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vs2005 won't write .lib or .exp files when building my .dll

4 views
Skip to first unread message

pete

unread,
Feb 1, 2008, 5:13:31 AM2/1/08
to
I can't get vs2005 to produce .lib and .exp files when I build my DLL.
What do I have to do to persuade vs2005 to write these files?

I have seen that the project was set up with:

Import Library $(TargetDir)$(TargetName).lib

And I have tried adding to the linker command line:

/IMPLIB:"c:\TPCAgent\Debug\TPCAgent.lib"

What else must I do to generate .lib and .exp files for this DLL?

I have what I believe is an identical project elsewhere that /does/
produce the .lib and .exp files I want.

Thanks!

Sam of California

unread,
Feb 1, 2008, 12:39:33 PM2/1/08
to
There are various options needed and I don't know what they all are. The
options are set properly when the project is created by VS if you create a
Win32 DLL. Are you sure the project is a DLL project?

The next thing to check is that functions are exported; if there are no
exported functions then there might not be a lib and dll file created.

Of course, the output won't be created if there are link errors, but you
probably know that.


"pete" <pet...@yahoo.com> wrote in message
news:04510950-896d-46b2...@s13g2000prd.googlegroups.com...

0 new messages