debug(Release) message

for some reason when working in release mode in VC++ 6.0 I get this strange message :
“LINK : warning LNK4089: all references to “ADVAPI32.dll” discarded by /OPT:REF”
Does anyone knows what causes it , and how to get rid of it ?

This isn’t a bug. If you look at the Link tab under Project/Settings menu, you’ll see that you have the advapi32.lib import lib linked in by default. (Look at the “object/library modules” list; you’ll probably need to scroll along a way.)

The import lib basically declares functions that are implemented in a DLL. However, the linker has noticed that your program doesn’t actually call anything in that DLL, so it leaves out the import declarations to save a bit of space.

As I said, this isn’t a problem, but if it bothers you just remove “advapi32.lib” from the list on the Link tab.

Thanks !!!

It worked . But know I`ve got some new link error messages (errors and not warnings).

Bit short on details - what link errors?

This sounds like a general compiler question rather than an OpenGL question, so maybe we should take it off-list. If you want to contact me by email, feel free.