Author Topic: I can't use statics function and variables in my classes...  (Read 3794 times)

Offline blend

  • Multiple posting newcomer
  • *
  • Posts: 32
I can't use statics function and variables in my classes...
« on: April 19, 2007, 11:58:30 am »
Hello,

I use Code::Blocks Nyghtly Builds rev 3849 on Ubuntu 7.04, and I can't use statics functions or variables in my classes: the build log say 'undefined reference to `my_class::my_static_fonction_or_variable`' and yet i correctly coded my algorithm  :( (the algorithm is correctly build on Dev Cpp...)....

How can I solve this problem?

Thanks.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: I can't use statics function and variables in my classes...
« Reply #1 on: April 19, 2007, 12:03:55 pm »
C::B is an IDE, Not a compiler. So it's the compiler who is complaining about your Code not C::B.

Check which compiler settings or libraries or other stuff missing and fix it accordingly.
« Last Edit: April 19, 2007, 12:06:39 pm by Biplab »
Be a part of the solution, not a part of the problem.