Thread: whats wrong?

  1. #1
    monotonously living Dissata's Avatar
    Join Date
    Aug 2001
    Posts
    341

    whats wrong?

    What is wrong with this code

    Code:
    #include <GL/gl.h>
    #include "aux.h"
    
    int main(int argc, char** argv)
    {
        auxInitDisplayMode (AUX_SINGLE | AUX_RGBA);
        auxInitPosition (0, 0, 500, 500);
        auxInitWindow (argv[0]);
    
        glClearColor (0.0, 0.0, 0.0, 0.0);
        glClear(GL_COLOR_BUFFER_BIT);
        glColor3f(1.0, 1.0, 1.0);
        glMatrixMode(GL_PROJECTION);
        glLoadIdentity();
        glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0);
        glBegin(GL_POLYGON);
                glVertex2f(-0.5, -0.5);
                glVertex2f(-0.5, 0.5);
                glVertex2f(0.5, 0.5);
                glVertex2f(0.5, -0.5);
        glEnd();
        glFlush();
    
        sleep(10);
    }
    if a contradiction was contradicted would that contradition contradict the origional crontradiction?

  2. #2
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    859
    "return" is missing and it is an "int"
    -----------------
    Engineer223
    Yoshi

  3. #3
    monotonously living Dissata's Avatar
    Join Date
    Aug 2001
    Posts
    341
    I know the return was missing, it still no matter what I do says that there are three errors
    if a contradiction was contradicted would that contradition contradict the origional crontradiction?

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    Perhaps if you could post what the errors were, or point out the lines there on, we might could help. Otherwise I dont know what could be said about that code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 07-15-2004, 03:30 PM
  2. Debugging-Looking in the wrong places
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-03-2003, 10:50 PM
  3. Confused: What is wrong with void??
    By Machewy in forum C++ Programming
    Replies: 19
    Last Post: 04-15-2003, 12:40 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 12:01 PM
  5. Whats wrong?
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 07-14-2002, 01:04 PM