Results 1 to 3 of 3

Thread: conversion from enum{anonymous} to enum Glenum

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2002
    Location
    Lawton, OK 73501
    Posts
    2

    conversion from enum{anonymous} to enum Glenum

    Ok, here is the deal. When I compile my test.cpp program I get this.

    bash-2.04# make
    g++ -O test.cpp -L/usr/X11R6/lib -lXmu -lX11 -lXext -lXi -lGL -lGLU -lglut
    test.cpp: In function `void displayWire()':
    test.cpp:70: conversion from `enum {anonymous}' to `enum GLenum'
    make: *** [test] Error 1
    I did the ldconfig. Fine there. I checked to see the libraries needed to run this were there. Hopefully I have all of it. As far as I know, I have all of it there.
    Then I commented out at line 70 and the compilation and execution of the file was ok. It has something to do with the gluQuadraticDrawStyle(...).
    Can you explain to me what is going on and how I can fix this error?
    Thanks

    [This message has been edited by MerCMe (edited 09-02-2002).]

    [This message has been edited by MerCMe (edited 09-02-2002).]
    Evelyn

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: conversion from enum{anonymous} to enum Glenum

    Post a bit of code around that line.

    I do know that the gnu compilers don't support anonymous structs/unions before a certain version, but I'm not sure that has anything to do with your problem.
    Deiussum
    Software Engineer and OpenGL enthusiast

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2002
    Location
    Lawton, OK 73501
    Posts
    2

    Re: conversion from enum{anonymous} to enum Glenum

    glPushMatrix();
    glTranslated(0,0,1.0);
    GLUquadricObj * qobj;
    qobj = gluNewQuadric();
    gluQuadricDrawStyle(qobj,GLU_LINE);
    gluCylinder(qobj, 0.2,0.2,0.4,8,;
    glPopMatrix();
    glFlush();

    Note: in the previous post, I typed gluQuadraticDrawStyle(...), well that is an error in my typing. I meant to say gluQuadricDrawStyle(...)

    Thanks

    Originally posted by Deiussum:
    Post a bit of code around that line.

    I do know that the gnu compilers don't support anonymous structs/unions before a certain version, but I'm not sure that has anything to do with your problem.


    [This message has been edited by MerCMe (edited 09-02-2002).]
    Evelyn

Similar Threads

  1. OpenGL invalid enum
    By jaketehsnake in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-23-2016, 04:43 AM
  2. regarding OMX_EVENTTYPE enum
    By saket in forum OpenMAX
    Replies: 0
    Last Post: 08-30-2009, 11:38 PM
  3. A question about "enum" I should have asked long ago
    By WhatEver in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 04-17-2001, 08:30 AM
  4. Fullscreen & Enum/ChangeDisplaySettings source?
    By Basico in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-17-2000, 03:54 AM
  5. regarding OMX_EVENTTYPE enum
    By saket in forum OpenMAX
    Replies: 0
    Last Post: 12-31-1969, 07:00 PM

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