These are msvc commandline options: /permissive- /MP /ifcOutput…
- User
These are msvc commandline options: /permissive- /MP /ifcOutput "C:\Source\repos\KeyHydra\Project\obj\" /analyze:external- /GS /external:anglebrackets /W4 /Zc:wchar_t /I".\Interfaces\2025" /I"GeneratedFiles\Hybrid" /I".\GeneratedFiles" /I"GeneratedFiles" /I"C:\Source\repos\Qt\6.5.3\msvc2019_64\include" /I"C:\Source\repos\Qt\6.5.3\msvc2019_64\include\QtXml" /I"C:\Source\repos\Qt\6.5.3\msvc2019_64\include\QtWidgets" /I"C:\Source\repos\Qt\6.5.3\msvc2019_64\include\QtOpenGL" /I"C:\Source\repos\Qt\6.5.3\msvc2019_64\include\QtGui" /I"C:\Source\repos\Qt\6.5.3\msvc2019_64\include\QtCore" /I"C:\Source\repos\Qt\6.5.3\msvc2019_64\mkspecs\win32-msvc" /I".\GeneratedFiles\Hybrid" /I"C:\Program Files\Autodesk\3ds Max 2025 SDK\maxsdk\include" /I"C:\Source\repos\KeyHydra\Project" /ZI /Gm- /Od /sdl /Fd"C:\Source\repos\KeyHydra\Project\obj\vc143.pdb" /Zc:inline /fp:precise /external:W0 /D "QT5" /D "_DEBUG" /D "QT_NO_FOREACH" /D "_CRT_NON_CONFORMING_SWPRINTFS" /D "_WINDOWS" /D "UNICODE" /D "_UNICODE" /D "WIN32" /D "_ENABLE_EXTENDED_ALIGNED_STORAGE" /D "WIN64" /D "NDEBUG" /D "QT_NO_DEBUG" /D "QT_XML_LIB" /D "QT_WIDGETS_LIB" /D "QT_OPENGL_LIB" /D "QT_GUI_LIB" /D "QT_CORE_LIB" /D "WIN32_LEAN_AND_MEAN" /D "NOMINMAX" /D "ADESK_3DSMAX_WINDOWS" /D "WINVER=0x0601" /D "_WIN32_WINNT=0x0601" /D "_WIN32_WINDOWS=0x0601" /D "_WIN32_IE=0x0800" /D "_CRT_SECURE_NO_DEPRECATE" /D "_CRT_NONSTDC_NO_DEPRECATE" /D "_SCL_SECURE_NO_DEPRECATE" /D "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1" /D "_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES=1" /D "ISOLATION_AWARE_ENABLED=1" /D "MODULE_NAME=KeyHydra.dll" /D "QT_NO_VERSION_TAGGING" /D "_SILENCE_ALL_MS_EXT_DEPRECATION_WARNINGS" /D "_HYBRID" /D "IS_HYBRID" /D "SECURE_SCL=0" /D "_WINDLL" /errorReport:prompt /Zc:forScope /RTC1 /GR /Gd /MDd /std:c++17 /FC /Fa"C:\Source\repos\KeyHydra\Project\obj\" /EHa /nologo /Fo"C:\Source\repos\KeyHydra\Project\obj\" /Fp"C:\Source\repos\KeyHydra\Project\obj\KeyHydra.pch" /diagnostics:caret and these are linker options: /OUT:"C:\Program Files\Autodesk\3ds Max 2025\Plugins\KeyHydra.dll" /MANIFEST /NXCOMPAT /PDB:"C:\Program Files\Autodesk\3ds Max 2025\Plugins\KeyHydra.pdb" /DYNAMICBASE "gup.lib" "Notificationsystem.lib" "MaxQtBridge.lib" "MouseCursors.lib" "bmm.lib" "assetmanagement.lib" "comctl32.lib" "paramblk2.lib" "core.lib" "geom.lib" "gfx.lib" "maxscrpt.lib" "maxutil.lib" "mesh.lib" "mnmath.lib" "maxnet.lib" "opengl32.lib" "glu32.lib" "ucrtd.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" "C:\Source\repos\Qt\6.5.3\msvc2019_64\lib\Qt6Xml.lib" "C:\Source\repos\Qt\6.5.3\msvc2019_64\lib\Qt6Widgets.lib" "C:\Source\repos\Qt\6.5.3\msvc2019_64\lib\Qt6OpenGL.lib" "C:\Source\repos\Qt\6.5.3\msvc2019_64\lib\Qt6Gui.lib" "C:\Source\repos\Qt\6.5.3\msvc2019_64\lib\Qt6Core.lib" "C:\Source\repos\Qt\6.5.3\msvc2019_64\lib\Qt6EntryPoint.lib" /DEF:".\Keyhydra.def" /IMPLIB:"C:\Source\repos\KeyHydra\Project\obj\\KeyHydra.lib" /DEBUG:FULL /DLL /MACHINE:X64 /PGD:"C:\Program Files\Autodesk\3ds Max 2025\Plugins\KeyHydra.pgd" /SUBSYSTEM:WINDOWS /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"C:\Source\repos\KeyHydra\Project\obj\KeyHydra.dll.intermediate.manifest" /LTCGOUT:"C:\Source\repos\KeyHydra\Project\obj\KeyHydra.iobj" /ERRORREPORT:PROMPT /ILK:"C:\Source\repos\KeyHydra\Project\obj\KeyHydra.ilk" /NOLOGO /LIBPATH:"C:\Program Files\Autodesk\3ds Max 2025 SDK\maxsdk\lib\x64\Release" /LIBPATH:"C:\Program Files\Autodesk\3ds Max 2025 SDK\maxsdk\include" /LIBPATH:"C:\Program Files\3dswin\lib\x64\Release" /TLBID:1 /VERBOSE:LIB /LTCG:OFF Yet when I load this dll and want to attach to the process, I get message that symbols couldn't be loaded and when I further inspect it, it shows 'Binary was not built with debug information.' for my dll.
Assistant
The issue is that despite setting
/ZI(enable debug info) and/DEBUG:FULL(full debug info) in your linker command, your DLL is still being built without debug symbols.Here's a breakdown of the problem and how to fix it:
Why Debug Symbols Are Missing:
- Compiler Flags: While
/ZItells the compiler to generate debug information, it's not enough. You need to ensure that the compiler is actually using this information during the build process.
- Compiler Flags: While
- User
looks like the '/D "MODULE_NAME=KeyHydra.dll"' is wrong, target file extension is confugred to be .dlu - what option in visual studio generates this part of the commandline string?
Assistant
You are absolutely right! The
/D "MODULE_NAME=KeyHydra.dll"is incorrect if your target file extension is.dlu.In Visual Studio, the option that generates the
/D "MODULE_NAME=..."command-line string is "Define" under the "Preprocessor" section of your project's "C/C++" build settings.Here's how to fix it:
-
Open Project Properties: Right-click on your project in the Solution Explorer and select "Properties".
-
Navigate to Preprocessor: In the Property Pages window, expand the "C/C++" category and select "Preprocessor".
-
Edit "Preprocessor Definitions": In the "Preprocessor Definitions" field, you'll likely see
MODULE_NAME=KeyHydra.dllalready defined. Change it toMODULE_NAME=KeyHydra.dlu. -
Rebuild: Save your changes and rebuild your project.
Important Notes:
- Case Sensitivity: Preprocessor definitions are case-sensitive. Make sure "MODULE_NAME" is exactly as you define it.
-