[Top][All Lists]

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


From: address@hidden
Subject: Re: CPATH and GCC
Date: Mon, 28 Jan 2019 23:04:03 -0600

Ignore this. I realized my silly mistake.

Sent from my Sprint Phone.

------ Original message------
From: address@hidden
Date: Mon, Jan 28, 2019 5:45 PM
To: help-guix;
Subject:CPATH and GCC

Hi all.

I am trying to use GSL in my C project on GuixSD.

address@hidden ~/cproj$ guix package --search-paths
export PATH="/home/brettg/.guix-profile/bin"
export GIT_EXEC_PATH="/home/brettg/.guix-profile/libexec/git-core"
export XDG_DATA_DIRS="/home/brettg/.guix-profile/share"
export GIO_EXTRA_MODULES="/home/brettg/.guix-profile/lib/gio/modules"
export CPATH="/home/brettg/.guix-profile/include"
export LIBRARY_PATH="/home/brettg/.guix-profile/lib"
export INFOPATH="/home/brettg/.guix-profile/share/info"

According to the GCC documentation, the compiler should automatically 
use the CPATH to search for GSL, but it does not seem to respect this.

test.c:2:10: fatal error: gsl_blash.h: No such file or directory
compilation terminated.

I am not using an isolated environment or anything, so the CPATH 
variable is set, and I can return it. It also is correctly listed in cpp 

address@hidden ~/cproj$ cpp -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with:
Thread model: posix
gcc version 8.2.0 (GCC)
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'
-E -quiet -v - -mtune=generic -march=x86-64
ignoring nonexistent directory "/no-gcc-local-prefix/include"
ignoring nonexistent directory 
#include "..." search starts here:
#include <...> search starts here:
End of search list.

Alright. That is all! Thanks in advance.

reply via email to

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