unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#10283: Guile Manual Error
@ 2011-12-12 12:00 add
  2011-12-13  6:26 ` Mark H Weaver
  0 siblings, 1 reply; 3+ messages in thread
From: add @ 2011-12-12 12:00 UTC (permalink / raw)
  To: 10283

www.gnu.org/software/guile/manual/guile.html#Linking-Guile-into-Programs

Hm, I've tried the "linking guile into programs" and the gcc command 
there is incorrect, and also, I can't access my HOSTNAME envvar from the 
guile instance (from both mac 10.5.8 and GNU/Linux Kubuntu 11.10).
The gcc command should be "gcc -o simple-guile simple-guile.c 
$(pkg-config --cflags --libs guile-2.0)"
Thanks for supplying the manual though :-D Without it I wouldn't get 
anywhere, probably.
:-)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#10283: Guile Manual Error
  2011-12-12 12:00 bug#10283: Guile Manual Error add
@ 2011-12-13  6:26 ` Mark H Weaver
  2011-12-13 16:34   ` Mark H Weaver
  0 siblings, 1 reply; 3+ messages in thread
From: Mark H Weaver @ 2011-12-13  6:26 UTC (permalink / raw)
  To: add; +Cc: 10283

add <unknown.areth@gmail.com> writes:
> www.gnu.org/software/guile/manual/guile.html#Linking-Guile-into-Programs
>
> Hm, I've tried the "linking guile into programs" and the gcc command
> there is incorrect, [...]
> The gcc command should be "gcc -o simple-guile simple-guile.c
> $(pkg-config --cflags --libs guile-2.0)"

Thanks for the report, but as far as I can tell the gcc command in the
manual is correct.  Perhaps you made a mistake when typing it in?  The
only differences between the command you give above and the one in the
manual are:

* The command in the manual includes a backslash to split the command
  across two lines.  Note that this backslash must be the last character
  on the line (without even a space after it).  Alternatively, you can
  put the whole command on one line.

* You use the bash-specific $(...) command substitution syntax, whereas
  the manual uses the `...` backquote syntax.  Both syntaxes are exactly
  equivalent on bash, but the backquote syntax is far more portable
  (i.e. works on most shells, not just bash).

Note that backquotes `...` are _not_ the same as single-quotes '...',
a.k.a. apostrophes.  On a US keyboard, backquote is usually on the same
key as the tilde (~).

> and also, I can't access my HOSTNAME envvar from
> the guile instance (from both mac 10.5.8 and GNU/Linux Kubuntu 11.10).

When filing bug reports, it is important to give us enough detail to
reproduce the exact problem you see.  Instead of telling us that you
can't do something, please show us an exact transcript of a minimal
self-contained Guile session that demonstrates the problem.

In this case, please type "export | grep HOSTNAME" at the shell prompt
(to demonstrate that HOSTNAME really is in your environment), followed
by "guile" and then show us what guile commands you typed to try to
access this environment variable.

Also, when reporting two or more unrelated bugs, please send each report
in a separate email.  The reason we ask is that each email to bug-guile
is automatically added to our bug tracking system.  It is better for
each bug to have its own separate entry in the system.

Anyway, thanks for the reports!

    Best,
     Mark





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#10283: Guile Manual Error
  2011-12-13  6:26 ` Mark H Weaver
@ 2011-12-13 16:34   ` Mark H Weaver
  0 siblings, 0 replies; 3+ messages in thread
From: Mark H Weaver @ 2011-12-13 16:34 UTC (permalink / raw)
  To: 10283-done

The submitter "add" <unknown.areth@gmail.com> told me in private email
that the gcc command in the manual now works for him (he probably
mistyped it before), and that the HOSTNAME variable was a private shell
variable and not an environment variable, so I'm closing this bug.

     Mark





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-13 16:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-12 12:00 bug#10283: Guile Manual Error add
2011-12-13  6:26 ` Mark H Weaver
2011-12-13 16:34   ` Mark H Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).