Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Linker Warning

Author
Message
Andrew123
19
Years of Service
User Offline
Joined: 9th Jan 2005
Location:
Posted: 16th Jan 2005 04:38
Has anyone seen a linker warning like the following:

"LIBCD.lib(crt0init.obj) : warning LNK4098: defaultlib 'libc.lib' conflicts with use of other libs; use /NODEFAULTLIB:library"

Im using DGSDK and Visual Studio .NET 2003. The Project compiles and links ok.

My Code is as follows



The dbfix header file includes the following code which fixes a DX linker error.


I've managed to find the option in VS 2003 to turn on "/NODEFAULTLIB" but when that is turned on I get a further 3 linker errors as a result.
Does anyone know if this linker warning is a problem?

Andrew
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 16th Jan 2005 05:29
Sounds like your not using a Win32 Project.

Andrew123
19
Years of Service
User Offline
Joined: 9th Jan 2005
Location:
Posted: 16th Jan 2005 05:47
I thought that libc was a GNU library so not sure why it is being linked in a VS project.
When I created the project I selected a Generic Win32 project and removed the stuff I didnt need (WinMain, Stdafx.cpp etc...)

Andrew
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 16th Jan 2005 22:27
It won´t work like that. I had the same problem (I think). Instead of making a new Win32 project and deleting all the unnesasary files , make a blank win32 project and it should work.


¿Como estas you el dia de today?
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 16th Jan 2005 22:34
Quote: " I thought that libc was a GNU library so not sure why it is being linked in a VS projec"

No, LIBC is a Microsoft library...

zao420
21
Years of Service
User Offline
Joined: 5th Aug 2003
Location: Canada
Posted: 17th Jan 2005 02:31
all you need to do is add libc to ignore specific library it is in the linker tab and under input

http://cavesoft.no-ip.com
WIP Version of my site. Usally it is offline.
http://dev-cavesoft.no-ip.com
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Jan 2005 20:28
According to your original error, there is a conflict between the LIBCD and the LIBC libraries. LIBCD is the debug version of LIBC. There is a very good reason for this link error.

Switch to release mode and recompile and your errors should disappear.

You shouldn't use the NODEFAULTLIB option to link unless you really know what you are doing. You are almost guaranteed to end up with non-compatible libraries being used.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
Andrew123
19
Years of Service
User Offline
Joined: 9th Jan 2005
Location:
Posted: 17th Jan 2005 21:23
Thanks for your help

Andrew

Login to post a reply

Server time is: 2024-11-18 23:32:15
Your offset time is: 2024-11-18 23:32:15