dll project does not produce library (.lib)
-
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 -
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:septAnswer: 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
-
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
: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