Sign in to follow this  

Unable to use AUX

This topic is 4668 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
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

This topic is 4668 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this