Results 1 to 6 of 6

Thread: eror cant keep learning starter code chapt 02

  1. #1
    Junior Member Newbie
    Join Date
    May 2008
    Posts
    5

    eror cant keep learning starter code chapt 02

    i start reading and got to the compiling party and after fixing some stuff and i even had to mas around with the glee.h which in it was writing long long instead of long .
    any way i fixed that and got a message saying :
    Linking...
    LINK : fatal error LNK1104: cannot open file "freeglut_static.lib"
    Error executing link.exe.
    i need this pretty fast any one have an idea way? visual c++?

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2007
    Posts
    21

    Re: eror cant keep learning starter code chapt 02

    For a start long long is NOT a long. This is a representation of a 64-bit integer. I would therefore suggest that rather than edit the header file you find another solution.

    Have you told the linker where the file freeglut_static.lib is on your machine? You can either specify an absolute path for the file or give a list of additional directories for the linker to search. If you're using VisualStudio look in the Project Settings.
    Joseph Steel

  3. #3
    Junior Member Newbie
    Join Date
    May 2008
    Posts
    5

    Re: eror cant keep learning starter code chapt 02

    ty for responding but i dont thinck i got what your saying whan i put back the 2 longs thats what is says
    --------------------Configuration: simple - Win32 Debug--------------------
    Compiling...
    simple.cpp
    e:\sb-allsource\examples\src\shared\glee.h(725) : error C2632: 'long' followed by 'long' is illegal
    e:\sb-allsource\examples\src\shared\glee.h(726) : error C2632: 'long' followed by 'long' is illegal
    Error executing cl.exe.

    simple.exe - 2 error(s), 0 warnin
    whan i delet the long it is saying the static_lib problem




    this is my program :
    (prety simple )
    // Simple.cpp
    // The Simplest OpenGL program with GLUT
    // OpenGL SuperBible, 3rd Edition
    // Richard S. Wright Jr.
    // rwright@starstonesoftware.com

    #include "E:\SB-AllSource\examples\src\shared\gltools.h" // OpenGL toolkit

    ///////////////////////////////////////////////////////////
    // Called to draw scene
    void RenderScene(void)
    {
    // Clear the window with current clearing color
    glClear(GL_COLOR_BUFFER_BIT);


    // Flush drawing commands
    glFlush();
    }

    ///////////////////////////////////////////////////////////
    // Setup the rendering state
    void SetupRC(void)
    {
    glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
    }

    ///////////////////////////////////////////////////////////
    // Main program entry point
    int main(int argc, char* argv[])
    {
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA);
    glutCreateWindow("Simple");
    glutDisplayFunc(RenderScene);

    SetupRC();

    glutMainLoop();

    return 0;
    }

  4. #4
    Junior Member Newbie
    Join Date
    May 2008
    Posts
    5

    Re: eror cant keep learning starter code chapt 02

    and this is the section in the code wich makes the problem in glee.h
    #ifndef GL_EXT_timer_query
    typedef signed long long GLint64EXT;
    typedef unsigned long long GLuint64EXT;
    #endif

  5. #5
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,931

    Re: eror cant keep learning starter code chapt 02

    What compiler are you using? Maybe it is an old revision that does knot know "long long" yet. Try MinGW or the latest version of MS SDK

  6. #6
    Junior Member Newbie
    Join Date
    May 2008
    Posts
    5

    Re: eror cant keep learning starter code chapt 02

    well i do believe it is pretty old I'm using visual c++

Similar Threads

  1. Replies: 4
    Last Post: 09-01-2013, 02:47 PM
  2. Starter: matrix mul
    By chameleon in forum OpenCL
    Replies: 6
    Last Post: 01-26-2012, 03:44 PM
  3. eror in start codes
    By BlackCat in forum OpenGL: Windows
    Replies: 0
    Last Post: 05-19-2008, 02:15 AM
  4. starter question
    By noname2be4 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 12-06-2002, 09:05 AM
  5. Replies: 1
    Last Post: 12-28-2000, 04:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean