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.
Post a full build log!
QuoteI installed libgraph successfully
What does that mean in detail!!!
Tim S.
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
POST A FULL BUILD LOG!
Edit: Since, it now builds no log really needed; but, it is no longer a CB Problem.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F)
I suggest getting rid of 15 year old "libgraph-1.0.2.tar.gz".
You might try reading this website rules.
http://forums.next.codeblocks.org/index.php/topic,9996.0.html (http://forums.next.codeblocks.org/index.php/topic,9996.0.html)
You might try SDL BGI instead.
https://sourceforge.net/projects/libxbgi/files/ (https://sourceforge.net/projects/libxbgi/files/)
Tim S.