On Wed, Jan 2, 2013 at 3:49 PM, Vikram Garg <simulation...@gmail.com> wrote: > People, > I just switched to the git version of libMesh. When I copied > over the new example for the time dependent adjoints stuff from the svn > version (was careful to only get the .C and .h files and no svn remnants), I > found that my code compiles but I got the following linking error: > > Linking heat-opt... > adjoint_initial.x86_64-unknown-linux-gnu.opt.lo: file not recognized: File > format not recognized > collect2: ld returned 1 exit status > make: *** [heat-opt] Error 1
Looks like you are building .lo files in your application because you are using libmesh's Make.common. So you'll have to use libtool to link it as well. i.e. # Production rules: how to make the target - depends on library configuration $(notdir $(target)): $(objects) @echo "Linking "$@"..." @$(libmesh_CXX) $(libmesh_CXXFLAGS) $(objects) -o $@ $(libmesh_LIBS) $(libmesh_LDFLAGS) $(EXTERNAL_FLAGS) becomes # Production rules: how to make the target - depends on library configuration $(notdir $(target)): $(objects) @echo "Linking "$@"..." @$(libmesh_LIBTOOL) --tag=CXX $(LIBTOOLFLAGS) --mode=link --quiet $(libmesh_CXX) $(libmesh_CXXFLAGS) $(objects) -o $@ $(libmesh_LIBS) $(libmesh_LDFLAGS) $(EXTERNAL_FLAGS) -- John ------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ Libmesh-devel mailing list Libmesh-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-devel