Solaris / gcc

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Memfrob

Solaris / gcc

Post #1by Memfrob » 18.02.2002, 21:09

Has anyone managed to compile Celestia under Solaris with gcc?

I'm getting a rather straightforward error; however, my unfamiliarity with the source is making troubleshooting it rather slow:

Code: Select all

texturefont.cpp: In member function `void
   TextureFont::rebuildGlyphLookupTable()':
texturefont.cpp:209: cannot convert `std::__normal_iterator<const
   TextureFont::Glyph*, std::vector(TextureFont::Glyph,
   std::allocator<TextureFont::Glyph> > >' to `const TextureFont::Glyph*' in
   assignment
make[3]: *** [texturefont.o] Error 1
make[3]: *** Leaving directory /build/celestia-1.2.0/src/celtxf


lines 207-209, FWIW, look like:

Code: Select all

    // Fill the table with glyph pointers
    for (iter = glyphs.begin(); iter != glyphs.end(); iter++)
      glyphLookup[iter->id] = iter;

Ideas? Some of the template-ing seems rather complex in there... perhaps gcc 3.0.1 doesn't like the syntax?

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #2by chris » 18.02.2002, 22:18

The same code produces errors in Visual Studio .NET, too. I'm pretty sure that the problem is that I'm mistakenly assuming that a container iterator is the same as a pointer to an object in the container. I'll look into this and see what sort of fix I can come up with.

--Chris


Return to “Development”