D
Deep__Buti
Guest
I'm working on a C++ DLL used on a main program (over which I have no control, developed by some other team).
I have a working DLL generated using CodeBlocks, and I would like to move to VisualStudio as it is my usual development tool. No way. The main program complains about the functions not available on the dll.
So, I started from scratch two identical DLL with just one function with the minimum possible code {return true;} to be sure to isolate the problem.
When the main program uses the CB generated DLL it can find the function.
When the main program uses the VS generated DLL it cannot find the function.
I guess VS standard configuration options for a DLL generates it for some specific environment (.NET ? ), but this is not what I need but no idea which parameter(s) should I change.
Any help will be appreciated.
Thanks
Default VS options:
C/C++
/JMC /permissive- /Yu"pch.h" /GS /analyze- /W3 /Zc:wchar_t /ZI /Gm- /Od /sdl /Fd"Debug\vc142.pdb" /Zc:inline /fprecise /D "WIN32" /D "_DEBUG" /D "DLL1_EXPORTS" /D "_WINDOWS" /D "_USRDLL" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /errorReportrompt /WX- /Zc:forScope /RTC1 /Gd /Oy- /MDd /FC /Fa"Debug\" /EHsc /nologo /Fo"Debug\" /Fp"Debug\Dll1.pch" /diagnostics:column
Link
/OUT:"C:\Users\Myself\source\repos\Dll1\Debug\Dll1.dll" /MANIFEST /NXCOMPAT /PDB:"C:\Users\Myself\source\repos\Dll1\Debug\Dll1.pdb" /DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /IMPLIB:"C:\Users\Myself\source\repos\Dll1\Debug\Dll1.lib" /DEBUG /DLL /MACHINE:X86 /INCREMENTAL /PGD:"C:\Users\Myself\source\repos\Dll1\Debug\Dll1.pgd" /SUBSYSTEM:WINDOWS /MANIFESTUAC:NO /ManifestFile:"Debug\Dll1.dll.intermediate.manifest" /ERRORREPORTROMPT /NOLOGO /TLBID:1
Continue reading...
I have a working DLL generated using CodeBlocks, and I would like to move to VisualStudio as it is my usual development tool. No way. The main program complains about the functions not available on the dll.
So, I started from scratch two identical DLL with just one function with the minimum possible code {return true;} to be sure to isolate the problem.
When the main program uses the CB generated DLL it can find the function.
When the main program uses the VS generated DLL it cannot find the function.
I guess VS standard configuration options for a DLL generates it for some specific environment (.NET ? ), but this is not what I need but no idea which parameter(s) should I change.
Any help will be appreciated.
Thanks
Default VS options:
C/C++
/JMC /permissive- /Yu"pch.h" /GS /analyze- /W3 /Zc:wchar_t /ZI /Gm- /Od /sdl /Fd"Debug\vc142.pdb" /Zc:inline /fprecise /D "WIN32" /D "_DEBUG" /D "DLL1_EXPORTS" /D "_WINDOWS" /D "_USRDLL" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /errorReportrompt /WX- /Zc:forScope /RTC1 /Gd /Oy- /MDd /FC /Fa"Debug\" /EHsc /nologo /Fo"Debug\" /Fp"Debug\Dll1.pch" /diagnostics:column
Link
/OUT:"C:\Users\Myself\source\repos\Dll1\Debug\Dll1.dll" /MANIFEST /NXCOMPAT /PDB:"C:\Users\Myself\source\repos\Dll1\Debug\Dll1.pdb" /DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /IMPLIB:"C:\Users\Myself\source\repos\Dll1\Debug\Dll1.lib" /DEBUG /DLL /MACHINE:X86 /INCREMENTAL /PGD:"C:\Users\Myself\source\repos\Dll1\Debug\Dll1.pgd" /SUBSYSTEM:WINDOWS /MANIFESTUAC:NO /ManifestFile:"Debug\Dll1.dll.intermediate.manifest" /ERRORREPORTROMPT /NOLOGO /TLBID:1
Continue reading...