guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newbie question


From: bciceron
Subject: newbie question
Date: Wed, 7 Nov 2001 20:34:46 -0600 (CST)

hi,

i have some basic questions for you.

i'd like to know what is the proper way to call guile fct from a program
in order to get the guile propmt when i run the program linked to it.

i've found 2 docs stating different aproaches:

1/      gh_enter(argc, argv, inner_main);
2/      scm_boot_guile(argc, argv, inner_main, 0);

then both doc suggest calling ./pgm without arg an this should return
guile prompt back.

well it doesn't return anything in my case and complain about usage.

please not other option including script and scheme intructions between
single quote work fine with my program.
so i build correctly , but i'd also like to get guile> when using the
right comand line argument .

secondly i'd like to know if i understand correctly where to pass the
program arguments .
what is used to do before linking to guile, was :
./pgm arg1 arg2 arg3

now readin the same (obsolete?) doc i found that arg should go after '--'
, like in :
./pgm -- arg1 arg2 arg3

then it argv[1..3] will point to them.

is it a correct statement?

also readin the same i figured out that i have to use
gh_new_procedure1_0() instead of gh_new_procedure().
this might help you identify if i use the wrong version of the doc.

thx a lot for such a beautiful language and package !

Regards,
                ben-







reply via email to

[Prev in Thread] Current Thread [Next in Thread]