i'm trying a new opengl project, but I'm getting the same issue.
opengl_test fatal error LNK1104: cannot open file 'opengl32.dll'
Code:
#include<windows.h>
#include<conio.h>
#include<gl/gl.h>
#include<gl/glaux.h>
void main()
{
auxInitDisplayMode(AUX_SINGLE|AUX_RGBA);
auxInitPosition(100,100,250,250);
auxInitWindow("Work Sucks");
glClearColor(0.0f,0.0f,1.0f,0.0f);
glClear(GL_COLOR_BUFFER_BIT);
glFlush();
cprintf("program is completed\n");
getch();
}
I'm using this code from the opengl Bible.
I used the prior suggestion in this, but it doesn't work.
On VC++ .NET, do the following:
Go to the solution explorer (the pane that has all your source files listed; use View->Solution Explorer if you don't see it).
You should see a tree view with your solution. The root of the tree is the solution, and the thing directly under the solution is your project (typically, if your solution contains only one project, it will have the same name as the solution itself).
Right click on the project, and select the "Properties" option from the menu that pops up.
In the new window that appears, click on "linker" then "input". Make sure, at the top, you select Configuration: All Configurations. Add your libraries (separated with spaces if there are multiple libraries) to the box saying "Additional Dependencies"
I have also checked to make sure opengl32.dll was located in my system/win32 folder, and it is there?
I'm confused.
Am I writing the code incorrectly?