Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7679 Discussions

Breakpoints in a static library using Intel C++ and Microsoft VS 2010


I built a static library using  >Intel(R) C++ Compiler XE 13.1< inside >Microsoft Developer Studio 2010<. The compiler options are:

/I"C:\cpp\MBMLib\MBMLib\Header" /Zi /nologo /W3 /debug:expr-source-pos /Od /D "WIN32" /D "_DEBUG" /D "_LIB" /D "_UNICODE" /D "UNICODE" /EHsc /RTC1 /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fp"x64\Debug\MBMLibD.pch" /Fa"x64\Debug\" /Fo"x64\Debug\" /Fd"x64\Debug\vc100.pdb"

In a next step I included the library into an application. It works fine. Now I would like to test the static library be means of the application. Consequently I would like to set a breakpoint inside the static library. I am doing that via the menu Debugging-->New breakpoint. In the appearing dialog box, a function inside the library can be defined and the program execution should stop there. It works find, when everything (Lib and App) is compiled with the Microsoft C++ Compiler. Using the Intel C++ compiler, the breakpoints are simply ignored. I cannot stop the execution inside the library.

The compiler and linker command for the application are:

/I"C:\cpp\MBMLib\MBMLib\Header" /Zi /nologo /W3 /debug:expr-source-pos /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /EHsc /RTC1 /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fp"x64\Debug\MBMLib_Test.pch" /Fa"x64\Debug\" /Fo"x64\Debug\" /Fd"x64\Debug\vc100.pdb"

/OUT:"C:\cpp\MBMLib_Test\x64\Debug\MBMLib_Test.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\cpp\MBMLib\x64\Debug" "MBMLibD.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" /MANIFEST /ManifestFile:"x64\Debug\MBMLib_Test.exe.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\cpp\MBMLib_Test\x64\Debug\MBMLib_Test.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64

My question is: How to debug a static library via breakpoints using Intel C++ inside MSDS 2010.

Thanks in advance,


0 Kudos
1 Reply

Problem resolved.

I can not use "Debugging-->New breakpoint". I have to open the source file from the *.exe MSDS projekt and I have to set the breakpoint via the mouse .... that works fine