I am using guile (version 2.0) in my C code (compiled in gcc version 4.8.5 and OS centos 6).
My makefile looks like this.
CC=gcc
CFLAGS=-Wall -march=native -O2 -pipe -ffast-math -I/usr/include/guile/2.0
LDFLAGS=-lm -lguile -lgc -lpthread -lfftw3f -llapack
.PHONY: all
all: server mdclient_ash client
mdclient_ash: mdclient_ash.o
client: client.o mdlib.o ipp.o
mdmd: mdlib.o ${PROC_OBJS} mdmd.o ipp.o
mdmd.o: mdmd.c tsdmd.h
clean:
rm -rf *~ *.o sp/*.o sp/*~ pp/ff/*.o pp/fr/*~ pp/sf/*.o pp/st/*~
pp/rte/*.o pp/rte/*.~ server mdclient_ash client
The compilation process warns for certain guile related errors, such as:
scm_int2num is deprecated (declared at /usr/include/guile/2.0/libguile/deprecated.h:667) [-Wdeprecated-declarations]
element = scm_list_ref(retval,scm_int2num(1));
It has no errors. Upon executing my C file (main file i.e. server.c
), I get the following error:
Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message.
How and where do I set the environment variable GUILE_WARN_DEPRECATED
appropriately?