For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

help plz

Anonymous's picture
Forums: 

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)

Pawel's picture

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

regards
PK

Pawel's picture

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

regards
PK

jooo's picture

i find the solution thank's

adin's picture

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

problem?
thanks.

soma swami's picture

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.

Jaber's picture

You are trying to link with incompatible libraries.

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

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

regards,
Jaber

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.