[GRASS-dev] i.atcorr: trying to make a new generation Makefile

Yann Chemin ychemin at gmail.com
Tue Jul 18 11:48:48 EDT 2006


Hello,
Anybody could direct me to ask C++ to compile by default in the
standard Makefile of GRASS?

Thanks
Yann

---------------

The new type of Makefile is like this:
--------------------------------------
MODULE_TOPDIR = ../..

PGM = i.atcorr

LIBES     = $(IMAGERYLIB) $(GMATHLIB) $(GISLIB)
DEPENDENCIES= $(IMAGERYDEP) $(GMATHDEP) $(GISDEP)

include $(MODULE_TOPDIR)/include/Make/Module.make

default: cmd
----------------------------------------

But it does not compile with C++ i believe...
-------------------------
[root at aung-computer i.atcorr]# make
gcc -L/home/yann/tmp/grass/dist.i686-pc-linux-gnu/lib
-Wl,--export-dynamic
-Wl,-rpath-link,/home/yann/tmp/grass/dist.i686-pc-linux-gnu/lib
-L/usr/lib/pgsql       -DPACKAGE=\""grassmods"\" -o
/home/yann/tmp/grass/dist.i686-pc-linux-gnu/bin/i.atcorr   -lgrass_I
-lgrass_gmath -lfftw3 -lm   -lgrass_gis -lgrass_datetime -lz    -lm
-lz
/usr/lib/gcc/i586-mandriva-linux-gnu/4.1.1/../../../crt1.o: In
function `_start': undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [/home/yann/tmp/grass/dist.i686-pc-linux-gnu/bin/i.atcorr] Error 1
-----------------




More information about the grass-dev mailing list