%% Alexander <[EMAIL PROTECTED]> writes:
>> This is not a "make" issue.
a> more information:
a> [EMAIL PROTECTED] proj]$ make
a> make -f ./src/common/Makefile "PATH=./src/common/" my_gtkmm
a> make[1]: Entering directory `/home/alex/Desktop/proj'
a> /usr/bin/g++ -D__DEBUG__ -c -pthread -I/usr/include/gtkmm-2.4
a> -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4
a> -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4
a> -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4
a> -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc
a> ++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
a> -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include
a> -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0
a> -I/usr/local/pgsql/include src/common/echoframe.cpp -o
a> src/common/echoframe.o
a> g++: error trying to exec 'as': execvp: No such file or directory
a> But:
a> [EMAIL PROTECTED] proj]$ /usr/bin/g++ -D__DEBUG__ -c -pthread
a> -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include
a> -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include
a> -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include
a> -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6
a> -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc
a> ++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
a> -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo
a> -I/usr/include/atk-1.0 -I/usr/local/pgsql/include
a> src/common/echoframe.cpp -o src/common/echoframe.o
If something works from the command line but not when make runs it, then
your makefile is modifying the environment somehow to cause that
problem. Maybe your makefile is changing PATH, or GCC_EXEC_PATH, or
some other environment variable.
If you don't know what's going on you can replace your compiler setting
with one that invokes "env" to see what variables are set first, so
something like:
CXX = env | sort && /usr/bin/g++
then you can look at the environment make is using. You can do the same
thing at the command line and compare them. Maybe you can see something
there immediately; if not you can create a shell script that sets that
environment and runs the compile, then you can play with likely-looking
changes.
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make