C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 15th, 2005, 08:42 AM
jaro jaro is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 35 jaro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 16 m 44 sec
Reputation Power: 13
Send a message via Yahoo to jaro
LINK : warning LNK4098: defaultlib "LIBCMT"

hi all,

i'm recieving this message below and I don't how to resolve the warning.


Quote:
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library



can anyone explain to me what does this message mean? and how to resolve this. I've try googling it but the result ( for me ) did not explain to me clearly.

my app is a win32 console application. i've added a wsock32.lib and made it Multithreaded ( by changing Code Generation ) and also I've added msvcrt.lib ( through Project Setting and select Linker tab ). I was instructed to do this and I don't know why and now I have to find a way to clear the warning mention above.

Any help that would shed light to this will be much appreciated..

btw: I'm using MVC 6 and my os is win2k

-jaro

Reply With Quote
  #2  
Old December 16th, 2005, 12:06 AM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 14
Send a message via AIM to Geo.Garnett
Well, all I can tell by that is that your libraries and include are conflicing in some way. Is your program a single file or do you have multiple files, other than the standard includes and the extra libraries? Just as a far chance guess Im am assuming that you are writing a code to use sockets, I would try to add the file winsock2.h(should be in your standard include files) to your includes and see if that does the trick. I am a novice when it comes to network programming but its worth a try eh. I once tried to do exactly what a book sez in its examples and rarely do they function properly do to the difference in machines, compilers and the age of the libraries being used but good luck.
__________________
---Official Member Of The Itsacon Fan Club---
Give a man a fish and he will eat for a day. Teach a man to fish and he will sit in a boat all day drinking beer.

Reply With Quote
  #3  
Old December 18th, 2005, 12:40 AM
marmo marmo is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 37 marmo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 20 sec
Reputation Power: 14
Hey Jaro, I'm not sure if you read the msdn article about this error so check out this link it may help you out.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/lnk4098.asp
It basically states that you have to ignore certain libraries when using different types of builds. i.e. Single-Threaded, Multi-Threaded etc.

Reply With Quote
  #4  
Old December 20th, 2005, 09:37 AM
jaro jaro is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 35 jaro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 6 h 16 m 44 sec
Reputation Power: 13
Send a message via Yahoo to jaro
RE: LINK : warning LNK4098: defaultlib "LIBCMT"

Quote:
Originally Posted by marmo
Hey Jaro, I'm not sure if you read the msdn article about this error so check out this link it may help you out.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/lnk4098.asp
It basically states that you have to ignore certain libraries when using different types of builds. i.e. Single-Threaded, Multi-Threaded etc.



thank marmo this link did the trick...
-jaro

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > LINK : warning LNK4098: defaultlib "LIBCMT"


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap