[Top][All Lists]

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

error installing getfem

From: Cristian Barbarosie
Subject: error installing getfem
Date: Fri, 16 Sep 2022 20:56:39 +0100


I am trying to compile getfem-5.4.2.

First problem : with -std=c++14, I get

gmm/gmm_inoutput.h: In function ‘char* gmm::mm_typecode_to_str(char*)’:
./gmm/gmm_std.h:74:27: error: ‘strdup’ was not declared in this scope; did you mean ‘strcmp’?
   74 | # define SECURE_STRDUP(s) strdup(s)

I need -std=gnu++14 to overcome the above problem. However, the command
./configure CXXFLAGS='-std=gnu++14'
does not solve the issue because it puts in the Makefile -std=gnu++14 followed by -std=c++14 and the second option overrides the first.

Anyway, I edited by hand the Makefile and this solved the above issue.

Next problem :

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I.. -I/usr/local/include -DGMM_USES_BLAS -I/usr/local/include -O3 -fmessage-length=0 -fvisibility-inlines-hidden -ftemplate-depth-100 -std=gnu++14 -fPIC -Wall -W -Wextra -Wshadow -Wno-unknown-pragmas -Wno-variadic-macros -Wno-unused-but-set-variable -Wpointer-arith -Wcast-qual -Wwrite-strings -Wconversion -Wredundant-decls -Wno-long-long -MT getfem_integration.lo -MD -MP -MF .deps/getfem_integration.Tpo -c -o getfem_integration.o fatal error: getfem/getfem_im_list.h: No such file or directory

... and I'm stuck.

I attach file configure.log

Thank you

Attachment: config.log
Description: Binary data

reply via email to

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