gconio.h

There's a website on the net which is referenced many times and includes gconio.h file: http://www.wence.vandermeersch.org/gconio/.
I download that file to use in my program and it seems to be bad.
When I compile my program I receive:
In file included from g.cpp:7:
gconio.h:245: error: ‘win’ was not declared in this scope
gconio.h:245: error: expected ‘,’ or ‘;’ before ‘struct’
gconio.h:246: error: expected unqualified-id before ‘{’ token
gconio.h: In function ‘int get_screen_columns()’:
gconio.h:264: error: ‘get_win_size’ cannot be used as a function
gconio.h: In function ‘int get_screen_rows()’:
gconio.h:294: error: ‘get_win_size’ cannot be used as a function
gconio.h: In function ‘void gotoxy(int, int)’:
gconio.h:346: error: return-statement with a value, in function returning 'void'
gconio.h: In function ‘void textcolor(int)’:
gconio.h:438: error: return-statement with a value, in function returning 'void'
gconio.h: In function ‘void textbackground(int)’:
gconio.h:461: error: return-statement with a value, in function returning 'void'
make: *** [g.o] Błąd 1
I don't know how to fix that. Could one share a correct version of gconio.h, please?
(I used to have correct version but I lost it.)
closed account (S6k9GNh0)
I probably wouldn't use it....
I used to use this header file but fixed by someone. It worked very well.
:(

This file is referenced many times on the net. So I don't know why if it's not working.
Last edited on
Topic archived. No new replies allowed.