DiscussionsIssue archiveOther usage issues

Archived discussion

help plz

Other usage issuesFri, 02/18/2005 - 19:416 replies

Browse this forum
QuestionAuthor

i'm a new user of OCC5.0 i need help
when i can't compile any one of the simple
i get error such as
------for compilingAISSelect
--------------------Configuration: AISSelect - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
AISSelectApp.cpp
AISSelectDoc.cpp
BoxRadius.cpp
User_Cylinder.cxx
Generating Code...
Linking...
Creating library Debug/AISSelect.lib and object Debug/AISSelect.exp
LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library

AISSelect.exe - 0 error(s), 3 warning(s)

Discussion

6 archived replies

Posts are displayed in their archived order.

01Commenter-1

It's not an error. Just some warnings. You can ingonre this.

regards
PK

02Commenter-1

It's not an error. Just some warnings. You can ignore this.

regards
PK

03Commenter-2

i find the solution thank's

04Commenter-3

How did you resulved the
"LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library"

problem?
thanks.

05Commenter-4

Hi,

I am having the same problem:
LINK : warning LNK4098: defaultlib \"LIBCMTD\" conflicts with use of other libs; u
se /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib \"MSVCRTD\" conflicts with use of other libs; u
se /NODEFAULTLIB:library
GenSecData.exe : fatal error LNK1169: one or more multiply defined symbols found

In my link option I use,
@link -lib /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcd.lib \\
/NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:libc.lib \\
/NODEFAULTLIB:msvcrt.lib

Even then I get the error. Do you have any suggestion?

thanks
Swami.

06Commenter-5

You are trying to link with incompatible libraries.

go to
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore9...

yes its warning in compile time, but you will get errors in run-time

regards,
Commenter-5