Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!stanford.edu!TAHITI.LANL.GOV!larson From: larson@TAHITI.LANL.GOV (Ted Larson) Newsgroups: comp.windows.interviews Subject: (none) Message-ID: <9106271802.AA12766@tahiti.lanl.gov> Date: 27 Jun 91 18:02:14 GMT Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Lines: 50 Is there a problem with the graphics libraries, or am I doing something wrong? I get include file errors to the effect of: "/interviews/include/InterViews/2.6/InterViews/Graphic/base.h", line 150: error: two initializers for Graphic::transform() argument ? "/interviews/include/InterViews/2.6/InterViews/Graphic/base.h", line 235: error: Graphic::transform() cannot be redeclared in class declaration .....and so on. when I compile the following code. All I am trying to do is read a raster image from a file and display it to a window. If you know a better way to do this, please let me know. Also, has anyone had any success in getting a viewer to work? If so, please mail me some sample source. It would be much appreciated. - Ted larson@lanl.gov ---------------------------------------------------------------- #include #include #include #include #include #include static PropertyData properties[] = { {nil} }; static OptionDesc options[] = { { nil } }; void main(int argc, char** argv) { World world = new World("****", argc, argv, options, properties); Color* fg = world.foreground(); Color* bg = world.background(); Glyph* r = new RasterRect(Raster::open("rimage.ras"), fg); Window* w = new ApplicationWindow(r); w->map(); world.run(); }