Results 1 to 6 of 6

Thread: cout ? How can I get some message on the standard output ?

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Zurich, Switzerland
    Posts
    9

    cout ? How can I get some message on the standard output ?

    I wrote my first openGL sourcecode, but I didn'd get something on my console window, when I wrote: cout << "something".
    How can I put some messages to the console ?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: cout ? How can I get some message on the standard output ?

    What kind of console? A DOS console? And what type of program is it, Windows or Console?

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Zurich, Switzerland
    Posts
    9

    Re: cout ? How can I get some message on the standard output ?

    Thanks for your replay. Answer to your question: A consle from Windows 2000, I use mingnu environment, gnu compiler, the bash Shell, and glut.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Vancouver BC Canada
    Posts
    417

    Re: cout ? How can I get some message on the standard output ?

    Well, if you're using GNU tools, the output should be going to the shell from which you launch your app.... but if you launch it by "double clicking", you probably won't have a console at all.

    Try running your program from the bash shell.

  5. #5
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Zurich, Switzerland
    Posts
    9

    Re: cout ? How can I get some message on the standard output ?

    Thanks. I launch my programm from the console, I tried the cmd (Windows 2000) and the bash shell from the mingnu environment. When I launch a programm with OpenGL / Glut , the standard output doesn't appear on the console.

    Does somebody use the mingnu environment under Windows 2000 to program OpenGL?

    What compiler, IDE do you use to program?
    How do you debug your code?

  6. #6
    Junior Member Newbie
    Join Date
    Jul 2001
    Location
    Zurich, Switzerland
    Posts
    9

    Re: cout ? How can I get some message on the standard output ?

    I use <code>glut</code>. If I do not use the method <code> glutMainLoop() </code>, I get the standard, but the Window doesn't appear. Has somebody this problem to?

Similar Threads

  1. OpenGL - Message box or Pop up Message box
    By pgm_girl in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-01-2011, 05:50 AM
  2. Can you use cout and the iostream header file with OpenGL?
    By vgohan in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 06-18-2002, 11:59 AM
  3. Replies: 4
    Last Post: 06-06-2002, 10:52 PM
  4. Replies: 0
    Last Post: 03-14-2002, 08:03 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