Bug in Nekoware gcc-4.7 stdc++

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
rosehillbob
Posts: 51
Joined: Sat Apr 11, 2015 6:25 am

Bug in Nekoware gcc-4.7 stdc++

Unread postby rosehillbob » Mon Sep 28, 2015 1:17 pm

I suspect someone of you may have already notice this but a bug exists in the stdc++ library distributed with Nekoware gcc-4.7. This simple test will display the error :

Code: Select all

#include <cmath>
void test(void) {
;
}

Compiling the above listed file will fail to compile with error messages from the stdc++ library. The workaround is either go back to Nekoware gcc-4.3 located in the obsolete section,not use stdc++ or build your own gcc-4.7.x compiler.
Last edited by foetz on Mon Sep 28, 2015 1:23 pm, edited 1 time in total.
Reason: code tags
:Onyx2: :O2: :Octane:

sgt_barnes
Posts: 19
Joined: Wed May 25, 2005 12:21 am
Location: Germany

Re: Bug in Nekoware gcc-4.7 stdc++

Unread postby sgt_barnes » Tue Oct 06, 2015 1:20 am

Hi rosehillbob,

I had similiar problems when compiling my crap with -std=c++11, with various stuff being undefined in cmath and elsewhere.

That might have to do with the header files coming from the Development Foundation not being C99 (while the C std lib is C99), and C++11 requiring C99...

Some research made me believe that the C99 header files come with MIPSpro 7.4, so you could install that, if you have access to a copy.

I don't have that option, so I simply added some C99 shim code to the system headers, and now my code compiles just fine (though currently not working, but that is another story).
:Fuel: :Octane: :O2: :1600SW: :320: :Indigo2IMP: :Indigo2: :Indy:
Fuel R14k/600MHz, V10
Octane 2xR12k/300MHz, MXE
O2 R10k/250MHz, 1600sw


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 1 guest