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 / Link errors (warnings)

Author
Message
Troll Fiddler
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Mayo, Ireland
Posted: 6th Oct 2005 14:29
Hi,

I installed the 1.1.1 beta and am getting the following errors each time I compile a project.
LINK : warning LNK4089: all references to 'DPLAYX.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'SHELL32.dll' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'WININET.dll' discarded by /OPT:REF

The program compiles and links OK and runs fine, but I hate having warnings that I don't understand. Can anyone tell me what they mean and how to get rid of them?

Thanks,

T.
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 6th Oct 2005 15:23 Edited at: 6th Oct 2005 15:24
Its telling you that there are no calls to functions in those DLL's - and thus aren't used.

See http://www.mvps.org/vcfaq/ide/7.htm

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Oct 2005 15:36
Yep, it's normal. Deep within the DX includes are a couple of #pragma directives that tell the compiler these libraries are needed, but the linker has worked out that they aren't really.

You can get rid of the warnings by setting the properties->Linker->Optimisation->References to 'Keep unreferenced data' but your executables will be larger and slower to load ... or you can just ignore these warnings

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Troll Fiddler
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Mayo, Ireland
Posted: 7th Oct 2005 13:10
Much appreciated comrades, I think ignore mode is called for then. Thanks SSS for that FAQ link, it looks very useful. Thanks Ian for the "deep in DX" stuff. That's the sort of stuff that comes with experience and I love it. Wish I knew as much about C++ as Java, but I've got some long years to go before that happens :-(

T

Login to post a reply

Server time is: 2024-04-23 17:48:16
Your offset time is: 2024-04-23 17:48:16