Re: [Crystal-cvs] SF.net SVN: crystal:[39815] CS/trunk/include/csgeom/spatialtree.h
Ralph Campbell <[email protected]> Thu, 03 Oct 2013 13:11:56 -0700
| Newsgroups | gmane.comp.graphics.crystalspace.devel |
|---|---|
| Message-ID | <1380831116.21563.1.camel@host103> |
I'm using Fedora 19 x86_64, gcc version 4.8.1. I'm not sure how to see all the flags Jam passes to gcc. Anyone on the list know? On Thu, 2013-10-03 at 19:13 +0200, Matthieu Kraus wrote: > It's still somewhat weird as I also tried in debug mode and didn't get > any error (also tried 4.2 and 4.4 to be sure). Either way, if enum > works better that's really nice, I'm just trying to figure out why I > don't get errors other people get. > > Quoting Ralph Campbell <[email protected]>: > > > I did a fresh clone of CS and compiled with the original static int > > const and everything worked! > > Then I tried ./configure --enable-debug and found that this is what > > causes the compiler to generate the undefined symbol error. > > I guess the gcc flags for debug must disable that particular > > optimization. > > > > > > On Tue, 2013-10-01 at 20:32 +0200, Matthieu Kraus wrote: > >> Can you please explain me again how and where the issue arose? > >> I just tested r39814 with gcc 4.6.4, 4.7.4, 4.8.2 and 4.9.0 and I > >> didn't get any issues at all running test apps. > >> > >> > On Mon, 2013-09-30 at 19:37 +0200, res wrote: > >> >> On 30.09.2013 19:25, [email protected] wrote: > >> >> > The static variable isn't allocated space anywhere so > >> applications linking > >> >> > to the CS library fail to link. > >> >> > I didn't see a good place to define it so I did the easy thing > >> and used a > >> >> > constant. > >> >> > >> >> > @@ -415,7 +415,6 @@ > >> >> > int numObjects; // current storage used > >> >> > int maxObjects; // current storage capacity > >> >> > int estimateObjects; // estimated number of objects in whole tree > >> >> > - static int const objectGrowth = 80; // storage growth minimum > >> >> > > >> >> > // Minimum amount of objects in this tree before we consider > >> >> splitting. > >> >> > int minSplitObjects; > >> > >> > >> > >> ------------------------------------------------------------------------------ > >> October Webinars: Code for Performance > >> Free Intel webinars can help you accelerate application performance. > >> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the > >> most from > >> the latest Intel processors and coprocessors. See abstracts and register > > >> http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Crystal-develop mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/crystal-develop > > > > > > > > ------------------------------------------------------------------------------ > > October Webinars: Code for Performance > > Free Intel webinars can help you accelerate application performance. > > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > > the latest Intel processors and coprocessors. See abstracts and register > > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > > _______________________________________________ > > Crystal-develop mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/crystal-develop > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > _______________________________________________ > Crystal-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/crystal-develop ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk