On Wed, 27 Apr 2011 15:13:21 +0200, Geoff wrote in message <1303910001.6472.18.camel@DELL02>:
> Hi Arnt, > > WARNING: Again read to the bottom BEFORE replying!!! ..if you bother to try that approach with my post to the list, you may see I addressed the list with this implied question: In file included from component.cxx:4:0: component.hxx:191:28: error: reference ‘_table_manager’ cannot be declared ‘mutable’ [-fpermissive] ..which I don't yet know how to fix. > > contour_tree.hxx: In member function ‘void > > TGContourNode::remove_kid(int)’: contour_tree.hxx:73:12: > > error: ‘NULL’ was not declared in this scope > > You know this will get quite BORING if you keep telling > us about gcc 4.6 problems, if it is in fact a gcc > problem... > > And the other error looks like a similar idea of what was > ok yesterday is not ok today ;=)) I, and presumably many > others, simply do not have the problem, yet! ..then don't bother. > > In file included from component.cxx:4:0: > > component.hxx:191:28: error: reference ‘_table_manager’ > > cannot be declared ‘mutable’ [-fpermissive] > > Perhaps these problems should really be put on the gcc devel > list, and/or the unix/linux standard header builders, > but let's try to get to the heart of the matter... > > Just dealing with the case of the missing NULL... > > Is it that a definition of a NULL has been removed from > some standard headers, or is it really just gcc/g++ being > picky? > > In a quick review of /usr/include I can see quite a number > of headers have their own solution :- > > #ifndef NULL > #define NULL (void*)(0) > #endif > > So maybe this is a case where NULL was previously being > defined in some header TG/SG/FG that was included along > with others... and all was happy. > > This is probably the reason no maintainer has added > a 'fix' so far... Such an #ifndef NULL could be put > in files like simgear_config.h and/or FG config.h > to get past this problem... rather than trying to change > every instance of NULL to 0... > > But is such a change really needed? Why? > First is to exactly understanding the problem(s)... > > So do these problems persist in all versions of g++? > Maybe one goes, one remains? Which? What? > > If they do persist for all g++ version then it is some > header change you are facing in your distro... that would > be really impossible to track down... > > A simple experiment > 1. write the following to a file called say test2.cxx > > // ========================================= > #include <stdio.h> > int main(int argc, char *argv[]) > { > char * cp = NULL; > #ifdef NULL > printf("NULL is defined ok\n"); > #else > printf("NULL is NOT defined\n"); > #endif > } > // ========================================= > > 2. Compile it with simply - > $ g++ test2.cxx > > Any problems? > > If it compiles there should be a executable > a.out, which you can run with :- > $ ./a.out > > I can compile this, and when I run it I get > NULL is defined ok > > What do you get? > > Then you can remove the #include <stdio.h> > by adding say :- > // #include <stdio.h> > or just delete the line... > > Now when I compile it I get AS EXPECTED - > ~/projects/tests/test/test01$ g++ test2.cxx > test2.cxx: In function ‘int main(int, char**)’: > test2.cxx:5: error: ‘NULL’ was not declared in this scope > test2.cxx:9: error: ‘printf’ was not declared in this scope > ~/projects/tests/test/test01$ > > So that shows me in my case, including <stdio.h> > defines a NULL for me, as well as 'printf'... all of > which suggests it is NOT a g++ version issue at all. > > But your 2nd error may be g++ version related, but let > us deal with ONE thing at a time... > > And as usual, I would have to state, these have nothing > whatsoever to do with the script!!! Even given your > personal modification of same to re-use git SG instead > of mapserver simgear-cs. When it is confirmed that this > is now ok ..if you're not interested in that confirmation, fine. > - in the not so recent past it was not - I too > will modify it to re-use git SG... > > And I sent you a nice thanks for the suggestion, with lots > of other, I hope, interesting tit-bits, only to get back > RUBBISH. 80-90% of my own email, with comments cut into it > every few paragraphs. That email has be trashed ;=() > > And I will continue to TRASH SUCH TRASH ;=(( > > Anyway, HTH. > > Regards, > Geoff. > > > ..it didn't. -- ..med vennlig hilsen = with Kind Regards from Arnt Karlsen ...with a number of polar bear hunters in his ancestry... Scenarios always come in sets of three: best case, worst case, and just in case. ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel