views:

447

answers:

2

I generally build my openssl libs by doing this:

perl Configure VC-WIN32
ms\do_masm 
nmake -f ms\ntdll.mak 
nmake -f ms\ntdll.mak test

For debugging minidumps, I'd like to get a pdb file for the 2 dlls (while still building them in "release" mode). I've added /Zi to the CFLAGS part of ms\ntdll.mak, but I still get "Binary was not built with debug information" when I look at the in-memory modules in the visual studio debugger. Am I missing a step?

Thanks

A: 

Also remove any optimization: no /O options, no /G options

The best way to understand differents between Debug and Release configurations is create new VC++ project in Visual Studio and compare compiler and linker flags.

See more at MSDN: Compiler Options Listed by Category, search by keyword optimization.

HTH

abatishchev
+2  A: 

link needs /DEBUG.

twk