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.