Can create a dll, but fails to create the library for the dll

I can create a dll, but the build fails to create the library for the dll, in

debug_dll / win32. In debug / win32 builds just fine, only is static lib. Is there a way to create the lib file by command line Using winxp Pro on AMD64, 2 gig mem, VC++ express 2005.

Rick



Answer this question

Can create a dll, but fails to create the library for the dll

  • Shadow Chaser

    Yes, you can use the tool lib.exe

    Thanks,
    Ayman Shoukry
    VC++ Team


  • StefanPe

    are you exporting any symbols from the dll if you don't export anything, the linker will know that creating a .lib is pointless and won't bother.

    josh

    VC++ project system developer



  • konrad_p

    when I try to use lib.exe I get the following error, mspdb80.dll not found.

    Also setting $(TargetName)lib\Desktopd.lib in the alt+F7 dialog->Linker-> Advance->Import Library, does not create library, however the dll is created.

    Generating Code...

    Compiling resources...

    Compiling manifest to resources...

    Linking...

    LINK : lib/Desktopd.dll not found or not built by the last incremental link; performing full link

    Embedding manifest...

    Copying wxDll Files...

    F:\wxWidgets-2.6.3\lib\vc_dll\wxbase26d_net_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxbase26d_odbc_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxbase26d_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxbase26d_xml_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxbase26_net_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxbase26_odbc_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxbase26_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxbase26_xml_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_adv_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_animate_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_core_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_dbgrid_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_deprecated_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_fl_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_foldbar_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_gizmos_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_gl_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_html_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_media_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_mmedia_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_netutils_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_ogl_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_plot_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_qa_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_stc_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_svg_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26d_xrc_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_adv_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_animate_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_core_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_dbgrid_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_deprecated_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_fl_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_foldbar_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_gizmos_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_gl_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_html_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_media_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_mmedia_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_netutils_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_ogl_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_plot_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_qa_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_stc_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_svg_vc_custom.dll

    F:\wxWidgets-2.6.3\lib\vc_dll\wxmsw26_xrc_vc_custom.dll

    46 file(s) copied.

    Build log was saved at "file://f:\D&R\C++\src\ConMan\ConMan\Desktop\Debug\BuildLog.htm"

    Desktop - 0 error(s), 11 warning(s)

    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

    Rick


  • JohnAmes

    Ayman

    Many thanks, could not remember the command, but I knew there was one. I
    lift a cold brew in your honour. Many thanks

    Rick

  • Can create a dll, but fails to create the library for the dll