How can I add GLEW/Other includes in Visual Studio

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4

55 Replies - 1613 Views - Last Post: 02 February 2018 - 05:29 PM Rate Topic: -----

#31 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1467
  • View blog
  • Posts: 4,726
  • Joined: 20-March 10

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 11:58 AM

ha ha yes i was going to get to that bit about the difference of include <> and include ""....

but was intrigued by the backup files situation and what happened before.....

lol... 😃
Was This Post Helpful? 0
  • +
  • -

#32 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14248
  • View blog
  • Posts: 57,165
  • Joined: 12-June 08

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:01 PM

@snoopy - with the VS nuget - that's all self contained in the project they were installed on. No stragglers left in 'program files' or where ever.
Was This Post Helpful? 0
  • +
  • -

#33 FlamingBurrito15   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 71
  • Joined: 13-December 17

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:07 PM

1. What happened before was my computer crashed and when I booted up the application I was using, about 70% of the files got corrupt and this happened multiple times from laptop dying, or windows force updating.

2. Yes I did follow your link I did everything it told me to step by step

3. I know somewhat about
#include <file>
and
#include "file"
(not to much though)
Was This Post Helpful? 0
  • +
  • -

#34 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1467
  • View blog
  • Posts: 4,726
  • Joined: 20-March 10

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:10 PM

yes i know that you have to install via the package manager for each project but thats why i was intrigued .... by backup files and what happened before..

anyway i prefer to build my library the old fashioned way and install it into the include and lib folders inside the appropriate compiler directories then you can just use include<> for as many projects as you like.

what are the laptop specs if you dont mind me asking ?
Was This Post Helpful? 0
  • +
  • -

#35 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14248
  • View blog
  • Posts: 57,165
  • Joined: 12-June 08

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:18 PM

@Snoopy - the side benefit is nuget gets the latest and greatest.. which, for OpenGL may not mean much, but when dealing with department code bases and/or with the vermin of crazy javascript frameworks it helps.
Was This Post Helpful? 0
  • +
  • -

#36 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1467
  • View blog
  • Posts: 4,726
  • Joined: 20-March 10

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:21 PM

yes i know i use nuget for c# projects constantly but for c and c++ i build for each compiler MinGW and cl
Was This Post Helpful? 0
  • +
  • -

#37 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14248
  • View blog
  • Posts: 57,165
  • Joined: 12-June 08

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:22 PM

To each their own. :^:
Was This Post Helpful? 0
  • +
  • -

#38 snoopy11   User is offline

  • Engineering ● Software
  • member icon

Reputation: 1467
  • View blog
  • Posts: 4,726
  • Joined: 20-March 10

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:25 PM

yes i know

je suis bizarre !
Was This Post Helpful? 0
  • +
  • -

#39 FlamingBurrito15   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 71
  • Joined: 13-December 17

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:26 PM

Yeah I was also trying to install the files in the include folder but I have no idea where it is (went in program files and %appdata% the only places where anything about VS is and I still can't find it)

Quote

SPECS:

Processor: Pentium® Dual-Core CPU T4300 @ 2.10GHz 2.10 GHz
Installed RAM: 3.00 GB
System type: 64-bit operating system, x64-based processor
Windows Edition: Windows 10 Education
Version: 1709
OS Build: 16299.192
Computer: Lenovo G550


not sure if you need any more specs if so please specify which ones.
Was This Post Helpful? 0
  • +
  • -

#40 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14248
  • View blog
  • Posts: 57,165
  • Joined: 12-June 08

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:28 PM

Stop that, and just use the darn Nuget package. .
Was This Post Helpful? 0
  • +
  • -

#41 FlamingBurrito15   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 71
  • Joined: 13-December 17

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:31 PM

I did I installed the NuGet package and it installed successfully but it does not seem to work
Was This Post Helpful? 0
  • +
  • -

#42 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14248
  • View blog
  • Posts: 57,165
  • Joined: 12-June 08

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:33 PM

.. and you only.. ONLY installed nupengl.core.. and maybe just tinkered with the includes to be the right folder path?
Was This Post Helpful? 0
  • +
  • -

#43 FlamingBurrito15   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 71
  • Joined: 13-December 17

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:40 PM

I installed nupengl.core, most of my underlined errors were gone except glm so I got the glm package, installed it now I have no more underlined errors but when I press F5 to debug it I get 2 (3 if your counting the error that tells me I have two errors) errors in the error log:

Quote

main.obj : error LNK2019: unresolved external symbol __imp_glClear referenced in function main
main.obj : error LNK2019: unresolved external symbol __imp_glClearColor referenced in function main

and so I tried the developer console typed in "cl /EHsc main.cpp" and it says it cannot find GL/glew.h. and I have never touched the NuGet package.
Was This Post Helpful? 0
  • +
  • -

#44 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14248
  • View blog
  • Posts: 57,165
  • Joined: 12-June 08

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:41 PM

GLM wasn't needed. Why did you install GLM?
Was This Post Helpful? 0
  • +
  • -

#45 FlamingBurrito15   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 71
  • Joined: 13-December 17

Re: How can I add GLEW/Other includes in Visual Studio

Posted 31 January 2018 - 12:44 PM

Because that was apart of the tutorials code (http://www.opengl-tutorial.org/beginners-tutorials/tutorial-1-opening-a-window/)
Was This Post Helpful? 0
  • +
  • -

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4