> > Can you try
> > 
> > int i;
> > 
> > with "-Werror -ffunction-sections -fdata-sections" and see if 
> > you get an 
> > error with g++?
> 
> With GNU C++ version 4.3.0 20070513 (experimental) 
> (i686-pc-mingw32dw2)
> No error.  i is put in its own section .data$i

But error when I add "-g" to above

> > 
> > if not, can you try
> > 
> > int i;
> > void bar() { }
> > 
> > with the same flags and see if you get the error?
> > 
> No error.  bar is put in .text$_Z3barv

And also error when I add "-g"

Danny

Reply via email to