Re: linker warning (further details)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Bonj (Bonj_at_discussions.microsoft.com)
Date: 10/12/04


Date: Tue, 12 Oct 2004 02:07:04 -0700

That's great Igor, it solves that
However it causes:

Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO'
specification
   Creating library Debug/xp_emb.lib and object Debug/xp_emb.exp
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other
libs; use /NODEFAULTLIB:library
msvcrt.lib(cinitexe.obj) : warning LNK4098: defaultlib 'libcmtd.lib'
conflicts with use of other libs; use /NODEFAULTLIB:library

I followed that article and my link command line thingy is now:
/OUT:"Debug/****.dll" /NOLOGO /LIBPATH:"C:\Documents and Settings\taylorb\My
Documents\Visual Studio Projects\Apps\xp_emb\reader\Debug" /DLL
/NODEFAULTLIB:"nochkclr.obj" /INCLUDE:"__DllMainCRTStartup@12" /DEBUG
/PDB:"Debug/xp_emb.pdb" /SUBSYSTEM:WINDOWS /NOENTRY /MACHINE:X86 msvcrt.lib
opends60.lib reader.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib odbccp32.lib ".\reader\Debug\reader.lib"

It is an unmanaged extended stored procedure DLL in VC7.1, and reader.lib is
a managed static library project.

Any ideas?

"Igor Tandetnik" wrote:

> "Bonj" <Bonj@discussions.microsoft.com> wrote in message
> news:E400144A-18F6-46F1-9BD6-1C9A6A8A960B@microsoft.com
> > LINK : warning LNK4243: DLL containing objects compiled with /clr is
> > not linked with /NOENTRY; image may not run correctly
>
> See KB Article KB814472 "PRB: Linker Warnings When You Build Managed
> Extensions for C++ DLL Projects"
> --
> With best wishes,
> Igor Tandetnik
>
> "On two occasions, I have been asked [by members of Parliament], 'Pray,
> Mr. Babbage, if you put into the machine wrong figures, will the right
> answers come out?' I am not able to rightly apprehend the kind of
> confusion of ideas that could provoke such a question." -- Charles
> Babbage
>
>
>



Relevant Pages

  • Re: linker warning (further details)
    ... LINK: warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other ... conflicts with use of other libs; ... > Igor Tandetnik ... > Mr. Babbage, if you put into the machine wrong figures, will the right ...
    (microsoft.public.vc.language)
  • In sane update problems on FC5 x86_64?
    ... So its installing the x86_64 libs to replace the i386 libs? ... sane-backends-1.0.18-2.fc5 conflicts with file from ... package sane-backends-1.0.17-5.fc5.9 ...
    (Fedora)
  • Problems with Unicode Build
    ... libs; use /NODEFAULTLIB:library ... LINK: warning LNK4098: defaultlib 'nafxcwd.lib' conflicts with use of other ...
    (microsoft.public.vc.mfc)
  • Re: SuSE 9.3 and DHCP
    ... Malke wrote: ... conflicts with some libs. ... Linux 2.6.8-24.14-default ...
    (alt.os.linux.suse)