Jump to content
  • Advertisement
Sign in to follow this  
hannibar

Unable to use AUX

This topic is 4884 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to write code to load an image. When I try to compile however, the compiler stops doing anything. When I leave the include aux.h line away, it doesn't get stuch, but gives a few errors (which it should). I use MSVC6, and I have included GLaux.lib in the link settings. Does anyone know what's wrong ? Here is the code :
#include <windows.h>
#include <stdio.h>
#include <gl/gl.h>
#include <gl/aux.h>

AUX_RGBImageRec *loadImage(char *fileName)
{
	FILE *file = NULL;
	if (!fileName)
	{
		return NULL;
	}

	file=fopen(fileName,"r");

	if (file)
	{
		fclose(file);
		return auxDIBImageLoad(fileName);
	}

	return NULL;
}


By the way, if anyone knows another *easy* way to load an image (not using libs except for those that are standard included in MSVC6), feel free to drop a line. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Compiling works now, but I get a link warning :

LINK : warning LNK4089: all references to "ADVAPI32.dll" discarded by /OPT:REF

Does anyone knwo what this means ?

Share this post


Link to post
Share on other sites
From the MSDN entry on LNK4089:
The linker discarded all packaged functions that referenced exports in dynamic-link library. As a result, dynamic-link library is not needed for execution of the image.

In other words, the optimiser has found that you (or a lib you're using) doesn't need to be referencing a dll so it has removed the dependency. Which is a good thing [smile]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!