[csw-maintainers] C++ ABIs are fun (not)

Jan Holzhueter jh at opencsw.org
Wed Jun 12 07:03:08 CEST 2013


Hi,

Am 11.06.13 20:55, schrieb Laurent Blume:
> Hello all,
> 
> I'm a bit in a tie because of C++ ABI issue.
> 
> I'm trying t o build the scummvm-tools. They use wxwidget, which is a
> C++ library.
> Only g++ is officially supported. That can't work, because wxwidget is
> built with Studio.
> So I tinkered a little, and it builds reasonably well with Studio, until
> this:
> 
> 
> $ CC -library=iostream -library=rwtools7  -g -DHAVE_CONFIG_H -DSOLARIS
> -DSYSTEM_NOT_SUPPORTING_D_TYPE -DPOSIX -I. -I.  -c scummvm-tools-cli.cpp
> -o scummvm-tools-cli.o
> "scummvm-tools-cli.cpp", line 43: Error: Could not find a match for
> std::deque<std::string>::deque(char**, char**) needed in
> ToolsCLI::run(int, char**).
> 1 Error(s) detected.
> 
> 
> Basically, it appears to be using a constructor that's not supported on
> Studio.
> 
> However, I've found out that this bit builds when adding
> -library=stlport4. But that doesn't help much, because it means that all
> dependencies must be built with that too, so it's practically the same
> problem as the GCC incompatibility.
> 
> 
> At this point, I wonder what's the best path? Have a special GCC-built
> version of the lib (messy)? Try to get upstream change their code
> (doubtful)? Give it up already and get a drink?

The plan for C++ stuff iirc was to switch to gcc anyway. Since you build
a new wxwidget anyway I would should rebuild it with gcc.

Greetings
Jan



More information about the maintainers mailing list