Timeline for OpenGl in VS2010
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 29, 2011 at 13:09 | answer | added | Alex Z | timeline score: 5 | |
Aug 16, 2011 at 20:12 | comment | added | datenwolf | @Adam Rosenfield: Indeed Backslashes are allowed, however Windows and thus VC++ perfectly well accepts forward slashes at path separator. Also if you want to make your program portable doing it that way makes things a lot easier. I know, stdafx.h is a VC++ thing, so no portability anyway, but still I wanted this being said. | |
Aug 16, 2011 at 19:44 | comment | added | Adam Rosenfield |
@datenwolf: I agree completely, but backslashes are allowed between the angle brackets in the filename for a #include -- it's implementation-defined which characters are permitted, and the Microsoft compiler permits backslashes. It's not portable, but it's perfectly allowed in this particular toolchain.
|
|
Aug 16, 2011 at 19:38 | comment | added | datenwolf |
Slightly Off Topic: You should not use backslashes in include directives but regular forward slashes. Also you should use the proper case of the include file names, which are GL/gl.h , GL/glu.h and windows.h . Last but not least you should surround your inclusion of windows.h with tests for the _WIN32 macro: #ifdef _WIN32 #include <windows.h> #endif
|
|
Aug 16, 2011 at 19:30 | answer | added | AlexK | timeline score: 0 | |
Aug 16, 2011 at 19:29 | comment | added | Gasim | make an empty project. and include opengl libs and header to the project. There shouldn't be any errors | |
Aug 16, 2011 at 19:27 | comment | added | Tobias Schlegel | Obviously the _ PREFAST _ macro is defined. But I don't really know what causes it. As you are using VS2010 ultimate you may have switched on a wrong option that causes this. Google reveals it may have to do with some code analysing tool (called PREfast). As a workaround try recreating your project with default options. | |
Aug 16, 2011 at 19:20 | comment | added | Adam Rosenfield | What is the first error message? | |
Aug 16, 2011 at 19:19 | comment | added | James | Have you tried using GLee? ( opengl.org/sdk/libs/GLee ) | |
Aug 16, 2011 at 19:12 | history | asked | user336635 | CC BY-SA 3.0 |