Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5000 Discussions

Viewing source with static libs

sadek1
Beginner
423 Views
Howdy,
I've created an application TestDriver.exe which calls Foo.lib. The lib does the bulk of the computation. I would like very much to drill down to the source view in Vtune, however Vtune complains that no source information is available. I assume that this is because Foo.lib does not create a .pdb file.
Using VS2003, how do I give Vtune the information it needs for source view?
Thanks!
-Ramy
0 Kudos
1 Reply
TimP
Honored Contributor III
423 Views
Symbol generation (-Zi or equivalent) would need to be on for compilation of each of the functions involved, for creation of the .lib, and for the final link. As you suggest, there should have been a .pdb for the .lib, as well as one for the final .exe. If you compiled using Microsoft C++, there should be a .pdb for each .obj, and those would be required when building the .lib. If all these .pdb files were present when required during the build, and VTune is unable to find them, it should pop up a window asking you to point them out. Only if you make an error in that window should you have to use the Options, File associations menu, to undo a wrong association.
0 Kudos
Reply