Re: Could not debug the code using visual studio

Tech-Archive recommends: Fix windows errors by optimizing your registry




I have a VC project for my tool which is using Makefle for compilation of
code .Make file using cl.exe for compiling the code. I can successfully
compiled tool's code using Makefile. While linking using link.exe i am
getting following warning

"mylib.lib(mywrapper.obj) : warning LNK4204:
'C:\ntregres_raj_sln\Acess\tools\src\np_sync\vc70.pdb' is missing debugging
information for referencing module; linking object as if no debug info"

Note: My current configuration of the project is DEBUG and during compiling
the tool i am using /Zi, /Z7 and /FD options.


Here the problem is with the library mylib.lib. Probably it was compiled with /Zi option,
but the resulting .pdb file is not available at the moment of linking.

When compiling this library, either use /Z7 option, or use /Zi and /Fd to change
the default name of the .pdb file to something library-specific (e.g. mylib.pdb).

After this warning my executable is prepared but i could not debug this
executable. Debug window showing following
'np_sync.exe': Loaded
'C:\ntregres_raj_sln\Acess\tools\src\np_sync\np_sync.exe', Symbols loaded.

Symbols for the executable are loaded, so it should be possible to debug it
(unless most of its code is located in mylib.lib).

What happens if you start debugging with F10? Will you be able to step
through the source code?
If you set a breakpoint in the entry point function, will it be hit?

--
Oleg
[VC++ MVP http://www.debuginfo.com/]





.



Relevant Pages

  • Re: DDK W2k3 bug? WNET and WXP build ok, W2k doesnt work
    ... > Linking Executable - ...
    (microsoft.public.development.device.drivers)
  • DDK W2k3 bug? WNET and WXP build ok, W2k doesnt work
    ... W2k does only work for executables and some of the libraries. ... Compiling message file - src\input\kbdclass\kbdlog.mc for all platforms ...
    (microsoft.public.development.device.drivers)
  • Re: linking issue
    ... mapped into the WinCE API's. ... this library it is giving me linking issues. ... which i have to include while compiling or any flags issue. ... Please do tell me all the paths and flags needed to compile code on ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Fun with CLISP FFI
    ... compiling and custom linking at all. ... mem image, and generate the script to invoke clisp with that mem image. ...
    (comp.lang.lisp)
  • Re: linking error (using interbase 6.0 API library)
    ... > I'm compiling a C program that is using Interbase 6.0 APIS. ... > the following errors at the time of linking. ... > If I set the option not to generate the underscore (function prefixed ... > Linker Error: Undefined symbol strlen in module TEST.C ...
    (comp.lang.c)