User forums > Using Code::Blocks

_setcursortype(); problem

<< < (3/3)

Michael:
From here, did you:


--- Quote ---2. Link with libconio.a (add -lconio parameter to linker).

--- End quote ---

Best wishes,
Michael

Deamon:

--- Quote from: Michael on March 28, 2006, 06:37:20 pm ---From here, did you:


--- Quote ---2. Link with libconio.a (add -lconio parameter to linker).

--- End quote ---

Best wishes,
Michael


--- End quote ---

Me idiot. Thank you so much. It works now. Well, kinda. It display _NOCURSOR as a _NORMALCURSOR and _NORMALCURSOR as a half _SOLIDCURSOR and _SOLIDCURSOR as _NOCURSOR.  :?

Anyone experianced the same ? Do i still do something wrong ?

When i open conio2.h and change this values:

#define _NOCURSOR 0         /**< no cursor */
#define _SOLIDCURSOR 100    /**< cursor filling whole cell */
#define _NORMALCURSOR 20    /**< cursor filling 20 percent of cell heigh */

to:

//#define _NOCURSOR 100         /**< no cursor */
//#define _SOLIDCURSOR 99    /**< cursor filling whole cell */
//#define _NORMALCURSOR 10    /**< cursor filling 20 percent of cell height */

It finaly works properly. Still it's weired !

BTW: Talking about -lconio parameter. Is it right to put it to Settings -> Compiler -> Linker tab -> Other linker options field ?

And when ever i want to put several parameters is the "-" enough to separate them from each others or is a "," necessary ?

regards
Deamon

Michael:
Hello,

May be you can try the conio forum and/or mailing list, though they seem not very active :(. Look at here.

You can also try to report the problem ("bug") you have.

Best wishes,
Michael

Michael:

--- Quote from: Deamon on March 28, 2006, 08:30:31 pm ---BTW: Talking about -lconio parameter. Is it right to put it to Settings -> Compiler -> Linker tab -> Other linker options field ?

--- End quote ---

Well, libconio.a would be -lconio :). Simply add the libconio.a to the linker-->Link libraries and the directory path into the directories-->Linker.

Best wishes,
Michael

Navigation

[0] Message Index

[*] Previous page

Go to full version