Hello there, I'm currently at the peak of my coding when I suddenly experienced this really really weird behavior. My compiler (gcc) tells me that one of my functions are not declared in the class (which resides in my .h file). I used the same global variable object to the entire class to access functions to my other class but it doesn't have any problems with that. I'm really wondering why.

Recommended Answers

All 4 Replies

Maybe some problem with the access specifier keywords used for that particular function. Nothing else can explain such a behaviour. Atleast post your .h file so that it makes debugging easy.

Fixed it. The comment on top is the problem.

The comment on top is the problem.

I didn't understand that.

Also, if you've no more problems, then mark the thread as solved.

'Cause my editor cannot understand wide character comments. So it produces junk characters which affects my code bellow.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.