Thread: Problem with compiling
hello,
have c++ program working on 10.04 version of ubuntu. upgraded 12.04 , it's not compiling anymore , bunch of errors looking :
undefined reference `_gfortran..*
makefile :
objdir = $(garfield_home)/object
srcdir = $(garfield_home)/source
incdir = $(garfield_home)/include
heeddir = $(garfield_home)/heed
libdir = $(garfield_home)/library
# compiler flags
cflags = -wall -wextra -wno-long-long \
`root-config --cflags` \
-o3 -fno-common -c \
-i$(incdir) -i$(heeddir)
# debug flags
#cflags += -g
ldflags = `root-config --glibs` -lgeom -lm -lgfortran
ldflags += -l$(libdir) -lgarfield
#ldflags += -g
msgc: msgc.c
$(cxx) $(cflags) msgc.c
$(cxx) -o msgc msgc.o $(ldflags)
rm msgc.o
maybe have problem gfortran libraries or underscore prefix.
suggestion?
thank you.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Problem with compiling
Ubuntu
Comments
Post a Comment