Results 1 to 2 of 2

Thread: making opengl work on solaris

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Posts
    3

    making opengl work on solaris

    we have solaris machines in our labs at our university and we have the fltk toolkit for glut on it. i am trying to make opengl with glut using fltk toolkit on it. but i am having certain problems could you kindly suggest the steps to solve this problem:

    i get the following error:
    denali: ~] > g++ -c fltk2.cpp
    fltk2.cpp:1:19: Fl/Fl.H: No such file or directory
    fltk2.cpp:2:27: Fl/Fl_Window.H: No such file or
    directory
    fltk2.cpp:3:24: Fl/Fl_Box.H: No such file or directory
    fltk2.cpp: In function `int main(int, char**)':
    fltk2.cpp:7: `Fl_Window' undeclared (first use this
    function)
    fltk2.cpp:7: (Each undeclared identifier is reported
    only once for each
    function it appears in.)
    fltk2.cpp:7: `window' undeclared (first use this
    function)
    fltk2.cpp:7: syntax error before `(' token
    fltk2.cpp:8: `Fl_Box' undeclared (first use this
    function)
    fltk2.cpp:8: `box' undeclared (first use this
    function)
    fltk2.cpp:8: syntax error before `(' token
    fltk2.cpp:9: `FL_UP_BOX' undeclared (first use this
    function)
    fltk2.cpp:11: `FL_BOLD' undeclared (first use this
    function)
    fltk2.cpp:11: `FL_ITALIC' undeclared (first use this
    function)
    fltk2.cpp:12: `FL_SHADOW_LABEL' undeclared (first use
    this function)
    fltk2.cpp:15: `Fl' undeclared (first use this
    function)
    fltk2.cpp:15: syntax error before `::' token

    fltk2.cpp is a simple hello world program from fltk.org
    the program is:

    here is my program:
    #include <Fl/Fl.H>
    #include <Fl/Fl_Window.H>
    #include <Fl/Fl_Box.H>

    int main(int argc, char **argv)
    {
    Fl_Window *window = new Fl_Window(300,180);
    Fl_Box *box = new Fl_Box(20,40,260,100,"Hello,
    World!");
    box->box(FL_UP_BOX);
    box->labelsize(36);
    box->labelfont(FL_BOLD+FL_ITALIC);
    box->labeltype(FL_SHADOW_LABEL);
    window->end();
    window->show(argc, argv);
    return Fl::run();
    }

    somebody kindly do the needful as soon as possible

    regards
    rohit

  2. #2
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: making opengl work on solaris

    This is a compiler question and it obviously can't find the include files, filenames are case sensitive on Solaris.

    You appear to have ".H" instead of ".h", just a suggestion.

    Read your compiler output and start with the first problem output and work your way down, what the heck are they teaching at that university?

Similar Threads

  1. OpenGL on Solaris 10
    By ToddAtWSU in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-03-2008, 06:35 AM
  2. Solaris 10 and OpenGL
    By santyhamer in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-17-2005, 01:56 AM
  3. Replies: 2
    Last Post: 05-13-2003, 12:20 AM
  4. Replies: 1
    Last Post: 03-09-2002, 11:41 PM
  5. OpenGL on Solaris 8
    By in forum OpenGL: User Software
    Replies: 1
    Last Post: 08-25-2001, 10:35 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