Author Topic: unknown type name ‘scm_t_wchar  (Read 5191 times)

Offline Rahul

  • Multiple posting newcomer
  • *
  • Posts: 25
unknown type name ‘scm_t_wchar
« on: December 19, 2019, 01:00:24 am »
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;
}
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)) ===|
how to recover this.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: unknown type name ‘scm_t_wchar
« Reply #1 on: December 19, 2019, 01:07:19 am »
Post a full build log!
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: unknown type name ‘scm_t_wchar
« Reply #2 on: December 19, 2019, 01:10:55 am »
Quote
I installed libgraph successfully

What does that mean in detail!!!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Rahul

  • Multiple posting newcomer
  • *
  • Posts: 25
Re: unknown type name ‘scm_t_wchar
« Reply #3 on: December 19, 2019, 01:34:10 am »
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]#

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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: unknown type name ‘scm_t_wchar
« Reply #4 on: December 19, 2019, 01:37:48 am »
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
« Last Edit: December 19, 2019, 01:42:40 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: unknown type name ‘scm_t_wchar
« Reply #5 on: December 19, 2019, 01:41:51 am »
I suggest getting rid of 15 year old "libgraph-1.0.2.tar.gz".

You might try reading this website rules.
http://forums.codeblocks.org/index.php/topic,9996.0.html

You might try SDL BGI instead.
https://sourceforge.net/projects/libxbgi/files/

Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org