Re: Full path to src in a static library



Hello Oleg

Oleg Starodumov wrote:
In VC6, source file path in debug information depends on the path
to the .cpp file that was passed to the compiler (CL). So you should
try to change the build process so that full path gets passed.

E.g.:

cl /c /Z7 myfile.cpp <-- only myfile.cpp will be in debug info
cl /c /Z7 c:\mydir\myfile.cpp <-- c:\mydir\myfile.cpp will be in debug info

Sorry for the late reply. Your suggestion seems to work great. Thanks.

--
Best Regards
Kovarththanan Rajaratnam
.



Relevant Pages

  • Re: instantiation point discussion
    ... Or buy the full compiler. ... code to a cpp file, compile it with /FAsc, and look at the resulting .cod ... Tim Roberts, timr@xxxxxxxxx ...
    (microsoft.public.vc.language)
  • Re: Very basic question
    ... > Yes, of course, it would be very hard to write programs in seperate files ... one cpp file within the other I got lots of errors because I used the same ... the compiler *guess* that there must be a b.cpp if there is a b.h? ... Regards, ...
    (comp.lang.cpp)
  • Re: GDI+ newbye
    ... I did met the same problem, after comment below lines in the cpp file is ok. ... Regards ... > I'm trying to use GDI+ in a MFC applcation, ... > The compiler tells me: ...
    (microsoft.public.vc.mfc)
  • Re: Internal Complier Error in Visual C++ 1.52
    ... You're using a very old version of both the IDE and the compiler. ... > function declaration for an existing class in a header file and function ... > implementation in the .cpp file i am getting an error as given below ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Preprocessor, nested files etc.
    ... > we have to do this, it takes around 2 hours for a complete recompile). ... > When the compiler compiles a *.cpp file, it starts in a fresh state. ... > it has learned by compiling a previous source code file remains. ...
    (comp.lang.cpp)

Quantcast