Hey all,

After beating my head against the wall with this, I decided to post.

I'm using f2py, a wrapper to call Fortran routines from python. I can't use it because my current version of gcc does not support f2py. According to a posted solution, I have to edit my python Makefile such that:


"edit the variable BASECFLAGS to exclude -Wno-long-double" .

In the makefile, I've found the variable:

OPT=		-DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
BASECFLAGS=	 -fno-strict-aliasing
CFLAGS=		$(BASECFLAGS) $(OPT) $(EXTRA_CFLAGS)

But have no damn idea how to exclude -wno-long-double.

Any help would be so appreciated.

But

Did you try this ?

BASECFLAGS=	 -fno-strict-aliasing -Wno-long-double

Exclude -Wno-longHdouble should mean that you should not have it and you have not. Are you sure that the makefile does not work as is? Maybe you have ready binary compiled with other flags (including the flag).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.