help-guix
[Top][All Lists]
Advanced

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

Re: no C_INCLUDE_PATH env variable defined : I can't compile C applicati


From: Ricardo Wurmus
Subject: Re: no C_INCLUDE_PATH env variable defined : I can't compile C applications
Date: Sun, 23 Oct 2022 23:48:00 +0200
User-agent: mu4e 1.8.9; emacs 28.1

Mohamed Amine LEGHERABA via <help-guix@gnu.org> writes:

> When I do "echo $C_INCLUDE_PATH" in my bash prompt (either my account or 
> root), I have nothing.
>
> When I run a custom guix shell (with gcc-toolchain) and I run "echo 
> $C_INCLUDE_PATH",
> I have "/gnu/store/1p21dbv408cb45zcc15v7wj0q7x99rz2-profile/include"
>
> Without this env variable, C programs can't use "linux/limits.h" or
> other kernel related libraries. Any idea how to solve this problem ?

You say that “guix shell” sets the variable as expected.  Its value
depends on the packages you add to the “guix shell” invocation.

You can also augment it manually to add whatever include directories you
need.

-- 
Ricardo



reply via email to

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