Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

unknown type name ‘scm_t_wchar

(1/2) > >>

Rahul:
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 :-

--- Code: ---
//#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;
}

--- End code ---
it gives following o/p :-

--- Code: ---||=== 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)) ===|

--- End code ---
how to recover this.

stahta01:
Post a full build log!

stahta01:

--- Quote ---I installed libgraph successfully
--- End quote ---

What does that mean in detail!!!

Tim S.

Rahul:
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

--- Code: ---[root@centos7client Debug]# ./grph
The font has not been loaded!
[root@centos7client Debug]#

--- End code ---

and in IDE :-

--- Code: ---[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

--- End code ---

stahta01:
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

Navigation

[0] Message Index

[#] Next page

Go to full version