Re: Linker can't find constants

2009-07-02 Thread Lionel B
On Wed, 01 Jul 2009 12:35:58 -0700, Cary wrote: > On Jul 1, 1:20 pm, Cary wrote: >> BTW - this doesn't work for vs. > > I know it's a bad sign to keep replying to yourself :-) > > I just found this link about vs behavior: > http://msdn.microsoft.com/en-us/library/34h23df8(VS.80).aspx Worth not

Re: Linker can't find constants

2009-07-01 Thread Cary
On Jul 1, 1:20 pm, Cary wrote: > BTW - this doesn't work for vs. I know it's a bad sign to keep replying to yourself :-) I just found this link about vs behavior: http://msdn.microsoft.com/en-us/library/34h23df8(VS.80).aspx ___ help-gplusplus mailing l

Re: Linker can't find constants

2009-07-01 Thread Cary
On Jul 1, 10:00 am, Cary wrote: > On Jul 1, 1:04 am, Thomas Maeder wrote: > > Cary writes: > > > The following code compiles, but the linker complains of an undefined > > > reference. If I comment out the line with *xx* it will link. Is this > > > a known and/or fixed bug in later versions of

Re: Linker can't find constants

2009-07-01 Thread Cary
On Jul 1, 1:04 am, Thomas Maeder wrote: > Cary writes: > > The following code compiles, but the linker complains of an undefined > > reference.  If I comment out the line with *xx* it will link.  Is this > > a known and/or fixed bug in later versions of gcc? > > No. It's a bug in your program. >

Re: Linker can't find constants

2009-07-01 Thread Thomas Maeder
Cary writes: > The following code compiles, but the linker complains of an undefined > reference. If I comment out the line with *xx* it will link. Is this > a known and/or fixed bug in later versions of gcc? No. It's a bug in your program. > SLES 10.2 > gcc --version gcc (GCC) 4.1.2 2007011

Linker can't find constants

2009-06-30 Thread Cary
The following code compiles, but the linker complains of an undefined reference. If I comment out the line with *xx* it will link. Is this a known and/or fixed bug in later versions of gcc? SLES 10.2 gcc --version gcc (GCC) 4.1.2 20070115 (SUSE Linux) replace.cpp: #include #include class A {