Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: blend on April 19, 2007, 11:58:30 am

Title: I can't use statics function and variables in my classes...
Post by: blend 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.
Title: Re: I can't use statics function and variables in my classes...
Post by: Biplab 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.