asked in codeblocks:-
---------------------
hi to all, I've centos 7.5 in VM. And i am trying to compile graphics program in C::B. I installed libgraph successfully and trying to build following program :-
//#include <graphics.h>
// graphics in linux enviornment
#include<cstdio>
#include<cstdlib>
#include<graphics.h>
//using namespace std;
int main()
{
int gd = DETECT, gm;
initgraph(&gd, &gm, NULL);
circle(50, 50, 30);
delay(5000);
closegraph();
return 0;
}
it gives following o/p :-
||=== Build: Debug in graphics in c (compiler: GNU GCC Compiler) ===|
/usr/include/libguile/strings.h|151|error: unknown type name ‘scm_t_wchar’|
/usr/include/libguile/strings.h|152|error: unknown type name ‘scm_t_wchar’|
/usr/include/libguile/strings.h|153|error: unknown type name ‘scm_t_wchar’|
/usr/include/libguile/strings.h|154|error: unknown type name ‘scm_t_wchar’|
/usr/include/libguile/strings.h|182|error: unknown type name ‘scm_t_wchar’|
/usr/include/libguile/strings.h|192|error: unknown type name ‘scm_t_wchar’|
/usr/include/libguile/strings.h|198|error: unknown type name ‘scm_t_wchar’|
/usr/include/libguile/strings.h|201|error: unknown type name ‘scm_t_wchar’|
/usr/include/libguile/strings.h|210|error: unknown type name ‘scm_t_wchar’|
/usr/include/libguile/strings.h|215|error: unknown type name ‘scm_t_wchar’|
||=== Build failed: 10 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
how to recover this.
I installed "libgraph-1.0.2.tar.gz" with all of its dependencies.
sorry guys i attached "/usr/include/ligguile " and after removing that from search directories. It ran but now having two errors:-
in terminal
[root@centos7client Debug]# ./grph
The font has not been loaded!
[root@centos7client Debug]#
and in IDE :-
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, aorry aboput that.
grph: xcb_io.c:263: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed