Link problem with Profiler in VC++ 6.0 
Author Message
 Link problem with Profiler in VC++ 6.0

I am trying to build a dll file  with options Enable Profiling and
Generate mapfile checked in Project|Settings|Link. However,
the linking fails with:
 Linking...
   Creating library .../Debug/mine.lib and object .../Debug/mine.exp
    external.lib(eobj.obj) : fatal error LNK1202: "...\Debug\vc60.pdb"

     is missing debugging information for referencing module
    Error executing link.exe.
    Creating browse info file...

    mine.dll - 1 error(s), 0 warning(s)

Note that I changed some of the names and put ...\ because they are
not relevant. The problem seems to stem from the fact that my own
mine.dll links to external.lib for which I do not have any source code
just the library itself. It could be created with debug option but
maybe *without* the profiling option.

Consequently, the question is whether it is necessary for the
library (which is being linked to) to be created with profiling option
itself in order for your own dll file (which links to
this library) to be created with profiling option. If this is really
the cause what are the steps to get around the problem because I will
not be able to get a new version of the library any time soon.



Thu, 01 Aug 2002 03:00:00 GMT  
 Link problem with Profiler in VC++ 6.0

I forgot to add that when I create my dll file with  Enable Profiling
*unchecked* (all other things equal), the build/link process completes
just fine.



Quote:

>I am trying to build a dll file  with options Enable Profiling and
>Generate mapfile checked in Project|Settings|Link. However,
>the linking fails with:
> Linking...
>   Creating library .../Debug/mine.lib and object .../Debug/mine.exp
>    external.lib(eobj.obj) : fatal error LNK1202: "...\Debug\vc60.pdb"

>     is missing debugging information for referencing module
>    Error executing link.exe.
>    Creating browse info file...

>    mine.dll - 1 error(s), 0 warning(s)

>Note that I changed some of the names and put ...\ because they are
>not relevant. The problem seems to stem from the fact that my own
>mine.dll links to external.lib for which I do not have any source code
>just the library itself. It could be created with debug option but
>maybe *without* the profiling option.

>Consequently, the question is whether it is necessary for the
>library (which is being linked to) to be created with profiling option
>itself in order for your own dll file (which links to
>this library) to be created with profiling option. If this is really
>the cause what are the steps to get around the problem because I will
>not be able to get a new version of the library any time soon.



Thu, 01 Aug 2002 03:00:00 GMT  
 Link problem with Profiler in VC++ 6.0


Mike,

Take a look at the following article:
http://support.microsoft.com/support/kb/articles/Q109/2/69.asp

Looks like the lib you are linking with, is a debug one, it came without its
own pdbd, and now it tries to pull in missing information from a default pdb
file, which happens to be yours. Rename it by using /Fd:"MyFoo.pdb". You will
gets lots of warnings, but the link will go through.

HTH

Eugene.

Quote:

> I forgot to add that when I create my dll file with  Enable Profiling
> *unchecked* (all other things equal), the build/link process completes
> just fine.



> >I am trying to build a dll file  with options Enable Profiling and
> >Generate mapfile checked in Project|Settings|Link. However,
> >the linking fails with:
> > Linking...
> >   Creating library .../Debug/mine.lib and object .../Debug/mine.exp
> >    external.lib(eobj.obj) : fatal error LNK1202: "...\Debug\vc60.pdb"

> >     is missing debugging information for referencing module
> >    Error executing link.exe.
> >    Creating browse info file...

> >    mine.dll - 1 error(s), 0 warning(s)

> >Note that I changed some of the names and put ...\ because they are
> >not relevant. The problem seems to stem from the fact that my own
> >mine.dll links to external.lib for which I do not have any source code
> >just the library itself. It could be created with debug option but
> >maybe *without* the profiling option.

> >Consequently, the question is whether it is necessary for the
> >library (which is being linked to) to be created with profiling option
> >itself in order for your own dll file (which links to
> >this library) to be created with profiling option. If this is really
> >the cause what are the steps to get around the problem because I will
> >not be able to get a new version of the library any time soon.

Sent via Deja.com http://www.deja.com/
Before you buy.


Sun, 25 Aug 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Link problem with Profiler in VC++ 6.0

2. VC 4.2 link error linking static libraries from VC 6.0

3. VC++ 6.0 profiler

4. Profiler in VC 6.0

5. Profiler in VC 6.0

6. VC++ 6.0 and Profiler

7. MS VC ver 6.0 dynamicly linked mfc libs problem

8. Problem linking with Crystal Reports and MS VC++ 6.0 Professional

9. MS VC ver 6.0 dynamicly linked mfc libs problem

10. vc++ 5.0 to vc++ 6.0 problem

11. Link Errors in VC.net that don't appear in VC 6.0

12. Problem to convert from VC 6.0 to VC 7.1 because of using filebuf::setmode()

 

 
Powered by phpBB® Forum Software