It's not really a Gentoo question but more a general Linux question about "make". I'm trying to install a third-party numerics package for multidimensional integration that was written in C and also uses the "mcc" compiler to build Mathematica executables from the C code (MathLink package). The configure operation runs fine and generates a config.h in the main directory of the package. The main directory of the package is ".", then there's a common source directory "./src/common" and the subpackage directory "./src/vegas", Vegas being the name for one algorithm used for multi-dimensional adaptive Monte Carlo integration.
Here's the output when I run "make": ____________________ CC=gcc mcc -O3 -fomit-frame-pointer -ffast-math -DHAVE_CONFIG_H -I./src/common -I. -I. -o Vegas ./src/vegas/Vegas.tm /usr/bin/mcc: line 1: exec: HAVE_CONFIG_H: not found make: *** [Vegas] Error 127 ____________________ There's a config.h file in the main "." directory, an stddecl.h file in the "./src/common" directory that refers to config.h: #ifdef HAVE_CONFIG_H #include "config.h" #endif and a decl.h file in the "./src/vegas" directory that has a line #include "stddecl.h" in it. Now, since the compiler call has -I. and -I./src/common in its statement above, I figure the notation is probably consistent. So why oh why am I getting the "HAVE_CONFIG_H" not found error message?? What's wrong with the linking? Appreciate any help Denis -- gentoo-user@gentoo.org mailing list