Thanks, that seems to have resolved the file format not recognized error. However I am now getting a different error:

Linking heat-dbg...
libtool: link: you must specify an output file
libtool: link: Try `libtool --help --mode=link' for more information.
make: *** [heat-dbg] Error 1


On Wed, Jan 2, 2013 at 5:55 PM, John Peterson <peterson@cfdlab.ae.utexas.edu> wrote:
On Wed, Jan 2, 2013 at 3:49 PM, Vikram Garg <simulationist@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



--
Vikram Garg
Postdoctoral Associate
Center for Computational Engineering
Massachusetts Institute of Technology

http://www.runforindia.org/runners/vikramg