OpenGL again

Sid Kraft 101 Reputation points
2026-07-09T19:53:19.2666667+00:00

Been having difficulty including OpenGL files that were facilitated by vcpkg. When I have a project as follows:

#include <iostream>
#include <Windows.h>
#include <GL/gl.h>
int I = 0;
INT INOW = 20;
float PLOTX[1000], PLOTY[1000], PLOTZ[1000];
float AI = 0.;
int main()
{
	do
	{
		++AI;
		PLOTX[I] = AI;
		PLOTY[I] = AI;
		PLOTZ[I] = AI;
		++I;
	} while (I <= INOW);

The OpenGL files get "linked' to and operate fine.
If I utilized the OpenGL files as follows:

#include <iostream>
#include <windows.h>
#include <GL/gl.h>
#include <cmath>
#include <vector>
#include <memory>
#include <algorithm>
#include <math.h>
using namespace std;
int itemp = 0;
int I = 0;
int IPLOT = 0;
int LL = 500;
int ICOUNT = 0;
int INOW = 0;
int IFIRST = 0;
int IFIRS2 = 0;
vector <float> PT1(3);
vector <float> PT2(3);
vector <float> PT3(3);
....
Cannot load the linked to file c:\vcpkg\installed\x64-windows\lib
The only difference in the two projects is that the last one, larger, has a number of conversion warnings that may lose significance. Other than this, certainly cannot figure out why the simple project works with OpenGL files and the expanded one does not, confused for sure.
 
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.

0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.