From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graham Simms To: egcs@egcs.cygnus.com Subject: Problems with egcs on Unixware 7 system Date: Sun, 31 Jan 1999 23:58:00 -0000 Message-id: <369622D6.D7544F08@muscat.com> X-SW-Source: 1999-01n/msg00246.html I am currently attempting to port an application written in c++ which successfully compiles and runs using egcs under Linux and Solaris to Unixware 7. I am not totally familiar with the Unixware enviroment which may explain why I am finding it difficult to get a working egcs compiler built. I can successfully build egcs 1.1.1 but when I attempt to build a non-trivial c++ program it falls over on linking. For example, the following program: // test.cxx #include #include int main(void) { cout << "Hello\n"; string s = "World\n"; cout << s; } gives the following error: g++ test.cxx -o test UX:ld: ERROR: /usr/local/egcs111new/lib/libstdc++.a(cstrmain.o): fatal error: symbol `basic_string, __default_alloc_template<0, 0> >::rep(void) const` multiply-defined, also in file /usr/tmp/ccNqGaRz.o collect2: ld returned 1 exit status I'm wondering if there is anyone out there with experience of using egcs of Unixware 7 who may be able to help. I've searched the egcs web site and can't find any ducumentation that helps, I've even tried installing a binary distribution of egcs 1.0.1 and that didn't help either which implies that it may be a linking problem.