User forums > Using Code::Blocks

SuSE 9.3 64 bits

(1/1)

mariosgeo:
Hi all,
I followed the instruction from here
http://wiki.codeblocks.org/index.php/Installing_Code::Blocks
But codeblock won't compile because of this.
cbthreadpool.cpp: In member function `virtual void cbThreadPool::FreeThreads()
   ':
cbthreadpool.cpp:253: error: `wxUSleep' undeclared (first use this function)
cbthreadpool.cpp:253: error: (Each undeclared identifier is reported only once
   for each function it appears in.)


Does anyone know what's wrong?

thomas:
Yes, it is a typo... has to be wxUsleep (lowercase 's').

EDIT:
The probable reason why you see this error (and why it was unnoticed otherwise) is that you use wxWidgets 2.4.2 (or any other version below 2.6.0). wxUsleep is used in the "below 2.6.0 compatibility path".

mariosgeo:
Yes. You are right. Changed them to lowercase and compiler continues.
By the way i have wxWidgets 2.5.3

mandrav:
A 'cvs update' should fix it. It was a typo and appeared in CVS for a few hours before it was fixed.

Navigation

[0] Message Index

Go to full version