Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. dll project does not produce library (.lib)

dll project does not produce library (.lib)

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiodebuggingquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AssemblySoft
    wrote on last edited by
    #1

    Hi i've come across this before and had to re-create the project to get it to work. I've created a new win32 dll project with VC++6. (No MFC) It's a simple utils dll with just functions, no DLLMain, Attach etc.. Upon build of the app, no .lib file is being created. I am exporting a function. (__declspec(dllexport) int logEvent(char* logFile,char* event,bool bLog);) Can someone tell me why it isn't producing the .lib file.? Can i use 'lib' to force this creation? thanks in advance Carl below is the linker options from VS:

    kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
    odbccp32.lib /nologo /dll /incremental:yes /pdb:"Debug/assemblyUtils.pdb" /debug /machine:I386 /out:"Debug/assemblyUtils.dll" /implib:"Debug/assemblyUtils.lib" /pdbtype:sept

    A 1 Reply Last reply
    0
    • A AssemblySoft

      Hi i've come across this before and had to re-create the project to get it to work. I've created a new win32 dll project with VC++6. (No MFC) It's a simple utils dll with just functions, no DLLMain, Attach etc.. Upon build of the app, no .lib file is being created. I am exporting a function. (__declspec(dllexport) int logEvent(char* logFile,char* event,bool bLog);) Can someone tell me why it isn't producing the .lib file.? Can i use 'lib' to force this creation? thanks in advance Carl below is the linker options from VS:

      kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
      odbccp32.lib /nologo /dll /incremental:yes /pdb:"Debug/assemblyUtils.pdb" /debug /machine:I386 /out:"Debug/assemblyUtils.dll" /implib:"Debug/assemblyUtils.lib" /pdbtype:sept

      A Offline
      A Offline
      AssemblySoft
      wrote on last edited by
      #2

      Answer: Well it seems i didn't add the header file in the cpp to the exported declaration of the function. Even though it compiled, nothing was being exported. added the header and bobs your aunty betty! thanks to myself ;) Carl

      J 1 Reply Last reply
      0
      • A AssemblySoft

        Answer: Well it seems i didn't add the header file in the cpp to the exported declaration of the function. Even though it compiled, nothing was being exported. added the header and bobs your aunty betty! thanks to myself ;) Carl

        J Offline
        J Offline
        John R Shaw
        wrote on last edited by
        #3

        :laugh:Well what do you know a self answering post. :cool:Very cool! We learn from those too! INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups