User forums > Using Code::Blocks

Unresolved References to static variables

<< < (2/2)

pjmavcom:
Tdragon, thanks. Thats working now. Id about given up on this after what Killerbot said. Belgabor, thanks too.
Is there somewhere else I can post C++ specific questions? Or another site/forum with knowledgeable people on it somewhere?

killerbot:
yes, correct : the header part only works for const, I overlooked this. So stupid I even give tips to not use those when they are not const, duh ...

So for clarity :
class X
{
protected:
  const int CentsInADollar = 100;
}

and no linker will complain.

but my b) answer was correct though  8) [by similar I didn't mean to copy the lines, but do a similar action, like TDragon showed, I took this knowledge for granted ...]

JGM:

--- Quote from: pjmavcom on November 18, 2007, 10:49:27 pm ---...
c++ programming forums I could post this kind of thing to instead?
...

--- End quote ---

There are plenty, search on google here are some sites:

http://www.programmersheaven.com/mb/
http://www.gidforums.com/f-28.html
http://www.codeproject.com/

Here are some free ebooks:  :)

http://www.freeprogrammingresources.com/cppbooks.html

And the best book out there from the creator of c++ ( for me is the better):  :D

http://www.research.att.com/~bs/3rd.html

Navigation

[0] Message Index

[*] Previous page

Go to full version