# Unable to use AUX

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

## 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>

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

file=fopen(fileName,"r");

if (file)
{
fclose(file);
}

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 on other sites
Are you sure it shouldn't be

#include <GL/glaux.h>

##### Share on other sites
I feel stupid... That was indeed the error.

Thanks

##### 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 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]

1. 1
Rutin
46
2. 2
3. 3
4. 4
5. 5
JoeJ
19

• 11
• 15
• 9
• 10
• 12
• ### Forum Statistics

• Total Topics
633004
• Total Posts
3009835
• ### Who's Online (See full list)

There are no registered users currently online

×