getfem-users
[Top][All Lists]
Advanced

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

Re: error installing getfem


From: Konstantinos Poulios
Subject: Re: error installing getfem
Date: Sun, 18 Sep 2022 10:58:07 +0200

Hi,

So you are trying to compile getfem on cygwin. It would be interesting to figure out what incompatibilities there are with cygwin and fix them in the build system of getfem but I do not currently have a cygwin setup to try this.

Regarding the file getfem/getfem_im_list.h, it is part of the getfem release tarball, can you check if it is present in your build directory?

BR
Kostas

On Fri, Sep 16, 2022 at 9:57 PM Cristian Barbarosie <cristian.barbarosie@gmail.com> wrote:
Hello

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 getfem_integration.cc -o getfem_integration.o
getfem_integration.cc:28:10: fatal error: getfem/getfem_im_list.h: No such file or directory

... and I'm stuck.

I attach file configure.log

Thank you
Cristian

reply via email to

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