When I want to make file,get this:
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/libf2c.so: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
What is going on?
How to overcome this issue?
My makefile:
FFLAGS = -O2 -g
#CFLAGS = -O -I/usr/openwin/include
CFLAGS = -O
LINK_FLAGS_AFTER='$$(PROFILE) $$(ALL_LIB) -u MAIN__
#
#rules for compiling .f files:
#
.f.o:
$(COMPILE.f) $(FFLAGS) $< $(INCS)
.c.o:
$(COMPILE.c) $(CFLAGS) $< $(INCS)
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/libf2c.so: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
What is going on?
How to overcome this issue?
My makefile:
FFLAGS = -O2 -g
#CFLAGS = -O -I/usr/openwin/include
CFLAGS = -O
LINK_FLAGS_AFTER='$$(PROFILE) $$(ALL_LIB) -u MAIN__
#
#rules for compiling .f files:
#
.f.o:
$(COMPILE.f) $(FFLAGS) $< $(INCS)
.c.o:
$(COMPILE.c) $(CFLAGS) $< $(INCS)