So I downloaded this rar from the opengl red book:http://www.opengl-redbook.com/Code/oglpg-8th-edition.zip
And what I do is this:
- Open a new empty Project
- Browse to the project properties -> Configuration Properties -> VC++ Directories
- Add the lib and include folders from the downloaded Winrar.
That's all I do and when I run the project I get a lot of error's :\
What did I do wrong and what should I do to make it work for me?
EDIT: those are the errors i get:
Warning 7 warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library C:\Users\Naor\documents\visual studio 2012\Projects\RedBook\RedBook\LINK RedBook
Warning 1 warning C4305: 'initializing' : truncation from 'double' to 'GLfloat' c:\users\naor\documents\visual studio 2012\projects\redbook\redbook\source.cpp 25 1 RedBook
Warning 2 warning C4305: 'initializing' : truncation from 'double' to 'GLfloat' c:\users\naor\documents\visual studio 2012\projects\redbook\redbook\source.cpp 26 1 RedBook
Warning 3 warning C4305: 'initializing' : truncation from 'double' to 'GLfloat' c:\users\naor\documents\visual studio 2012\projects\redbook\redbook\source.cpp 27 1 RedBook
Warning 4 warning C4305: 'initializing' : truncation from 'double' to 'GLfloat' c:\users\naor\documents\visual studio 2012\projects\redbook\redbook\source.cpp 28 1 RedBook
Warning 5 warning C4305: 'initializing' : truncation from 'double' to 'GLfloat' c:\users\naor\documents\visual studio 2012\projects\redbook\redbook\source.cpp 29 1 RedBook
Warning 6 warning C4305: 'initializing' : truncation from 'double' to 'GLfloat' c:\users\naor\documents\visual studio 2012\projects\redbook\redbook\source.cpp 30 1 RedBook
Error 8 error LNK2019: unresolved external symbol _LoadShaders referenced in function "void __cdecl init(void)" (?init@@YAXXZ) C:\Users\Naor\documents\visual studio 2012\Projects\RedBook\RedBook\Source.obj RedBook
Error 9 error LNK1120: 1 unresolved externals C:\Users\Naor\documents\visual studio 2012\Projects\RedBook\Debug\RedBook.exe 1 1 RedBook
And that's the code:http://pastebin.com/X55tVP3d