<p>Hi,</p><p>This is my first mail to the list, so be patience with ignorance,
please.</p><p><br />I am trying to compile a program from mac terminal. This
program is seemed to need some grass libraries. I write on the terminal 'make;
make install' and this is the result:</p><p>$ make;make install</p><p>gcc
ew_horizon.o fileio.o grassio.o -L/lib -lm -lgrass_gis -o ew_horizon <br
/>ld: library not found for -lgrass_gis<br />collect2: ld returned 1 exit
status<br />make: *** [ew_horizon] Error 1<br />gcc ew_horizon.o fileio.o
grassio.o -L/lib -lm -lgrass_gis -o ew_horizon <br />ld: library not found
for -lgrass_gis<br />collect2: ld returned 1 exit status<br />make: ***
[ew_horizon] Error 1</p><p>--------</p><p><br />-lgrass_gis is noted on the
makefile as:</p><p>PGM = cf7<br />EW_PGM = ew_horizon<br />CC = gcc <br
/>CFLAGS = <br />RHESSYS_BIN = /usr/local/bin<br /><br />OBJECTS = main.o
build_flow_table.o fileio.o find_patch.o check_neighbours.o zero_flow_table.o
\<br />print_flow_table.o sort_flow_table.o compute_gamma.o remove_pits.o \<br
/>find_top.o in_list.o adjust_pit.o add_roads.o find_stream.o \<br
/>find_max_flna.o find_min_flna.o route_roads_to_patches.o
compute_upslope_area.o \<br />print_drain_stats.o compute_drainage_density.o
compute_dist_from_road.o print_stream_table.o \<br />grassio.o<br /><br />LIBS
= -lm<br />GIS_LIBS = -lgrass_gis<br /><br />$(PGM): $(EW_PGM) $(OBJECTS)<br
/> $(CC) $(OBJECTS) -L$(GISBASE)/lib $(GIS_LIBS) $(LIBS) $(CFLAGS) -o $(PGM)
<br /><br />$(EW_PGM): ew_horizon.o fileio.o grassio.o<br /> $(CC)
ew_horizon.o fileio.o grassio.o $(CFLAGS) -L$(GISBASE)/lib $(LIBS) $(GIS_LIBS)
-o $(EW_PGM) <br /><br />install: $(PGM) $(EW_PGM)<br /> cp $(PGM)
$(RHESSYS_BIN)<br /> cp $(EW_PGM) $(RHESSYS_BIN)<br /><br />clean:<br />
rm -f $(OBJECTS) ew_horizon.o <br /><br />clobber: clean<br /> rm -f
$(PGM) $(EW_PGM)<br /><br />print_drain_stats.o:<br /> $(CC) $(CFLAGS) -c
print_drain_stats.c<br />print_stream_table.o:<br /> $(CC) $(CFLAGS) -c
print_stream_table.c<br />print_flow_table.o:<br /> $(CC) $(CFLAGS) -c
print_flow_table.c<br />zero_flow_table.o:<br /> $(CC) $(CFLAGS) -c
zero_flow_table.c<br />in_list.o:<br /> $(CC) $(CFLAGS) -c in_list.c<br
/>adjust_pit.o:<br /> $(CC) $(CFLAGS) -c adjust_pit.c<br />ew_horizon.o:
ew_horizon.c<br /> $(CC) -I$(GISBASE)/include $(CFLAGS) -c ew_horizon.c<br
/>add_roads.o:<br /> $(CC) $(CFLAGS) -c add_roads.c<br />find_top.o:<br
/> $(CC) $(CFLAGS) -c find_top.c<br />find_stream.o:<br /> $(CC)
$(CFLAGS) -c find_stream.c<br />find_min_flna.o:<br /> $(CC) $(CFLAGS) -c
find_min_flna.c<br />find_max_flna.o:<br /> $(CC) $(CFLAGS) -c
find_max_flna.c<br />remove_pits.o:<br /> $(CC) $(CFLAGS) -c
remove_pits.c<br />sort_flow_table.o:<br /> $(CC) $(CFLAGS) -c
sort_flow_table.c<br />build_flow_table.o: build_flow_table.c<br /> $(CC)
$(CFLAGS) -c build_flow_table.c<br />compute_upslope_area.o:<br /> $(CC)
$(CFLAGS) -c compute_upslope_area.c<br />compute_dist_from_road.o:<br />
$(CC) $(CFLAGS) -c compute_dist_from_road.c<br />compute_drainage_density.o:<br
/> $(CC) $(CFLAGS) -c compute_drainage_density.c<br />compute_gamma.o:<br
/> $(CC) $(CFLAGS) -c compute_gamma.c<br />route_roads_to_patches.o:<br
/> $(CC) $(CFLAGS) -c route_roads_to_patches.c<br />find_patch.o:<br />
$(CC) $(CFLAGS) -c find_patch.c<br />fileio.o:<br /> $(CC) $(CFLAGS) -c
fileio.c<br />grassio.o:<br /> $(CC) $(CFLAGS) -I$(GISBASE)/include -c
grassio.c<br />main.o: main.c<br /> $(CC) $(CFLAGS) -I$(GISBASE)/include -c
main.c</p><p></p><p></p><p>Thank you in advance.</p><p>javi.</p><p></p><p></p><br />