Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Starting problems...

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2014
    Posts
    4

    Starting problems...

    Hello there! I'm new and i have a problem...
    I'm reading OpenGL Suberbible 6th edition and i started on chapter one, i tried to build the files and then execute the first program, and it says:
    1>------ Build started: Project: Red, Configuration: Debug Win32 ------
    1> Red.cpp
    1>c:\users\thibault\documents\visual studio 2010\projects\red\red\red.cpp(2): fatal error C1083: Cannot open include file: 'sb6.h': No such file or directory
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I'm really new and I don't have a clue what is going on here (well how to fix it i mean)... Can anyone help me?
    Thanks in advance

  2. #2
    Junior Member Regular Contributor Agent D's Avatar
    Join Date
    Sep 2011
    Location
    Innsbruck, Austria
    Posts
    146
    Where is the sb6.h header file? It's obviosly not in the same directory as red.cpp and not in the include path.

    Make sure the header is either in the include path or in the same directory as red.cpp

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2014
    Posts
    4
    euhmmmm is this correct?
    Click image for larger version. 

Name:	OpenGL.jpg 
Views:	42 
Size:	17.0 KB 
ID:	1246

  4. #4
    Junior Member Regular Contributor Agent D's Avatar
    Join Date
    Sep 2011
    Location
    Innsbruck, Austria
    Posts
    146
    Other than the fact that I can't read a thing in that picture, it looks like a screenshot of your projects root directory in some filebrowser.

    You have to add the directory that contains "sb6.h" to the include path in your project configuration.

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2014
    Posts
    4
    I thought i did that... everything stands in the folder of my project... or do I not have enough understanding of C++ and am I f*cking the whole thing up?

  6. #6
    Junior Member Newbie
    Join Date
    Mar 2014
    Posts
    4
    And i put the file in the header

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •