---------- Forwarded message ----------
Date: Thu, 17 May 2012 12:28:36 -0400
From: Andrew Slaughter <[email protected]>
To: Roy Stogner <[email protected]>
Subject: Re: [Libmesh-users] Problem linking... (fwd)

The problem has return. It returned when trying switching from the opt library 
to the dbg version. Yesterday it was working great, today I
switched to dbg to search for a problem and now I get this error. I completely 
removed libmesh and reinstalled and I still shows up, both in dbg
and opt.

For the test program below if I include either fe.h or kelly_error_estimator.h 
I receive the following error when linking. I am using the attached
cmake file to link and include the appropriate libraries.

Any help is greatly appreciated, this is driving me crazy!

-- ERROR MESSAGE --
Linking CXX executable ../bin/test_libmesh
CMakeFiles/test_libmesh.dir/source/test_libmesh.cpp.o:(.rodata._ZTVN7libMesh6FEBaseE[vtable
 for libMesh::FEBase]+0x68): undefined reference to
`libMesh::FEBase::compute_map(std::vector<double, std::allocator<double> > 
const&, libMesh::Elem const*)'
CMakeFiles/test_libmesh.dir/source/test_libmesh.cpp.o:(.rodata._ZTVN7libMesh6FEBaseE[vtable
 for libMesh::FEBase]+0x70): undefined reference to
`libMesh::FEBase::compute_affine_map(std::vector<double, std::allocator<double> > 
const&, libMesh::Elem const*)'
collect2: ld returned 1 exit status
make[3]: *** [../bin/test_libmesh] Error 1
make[2]: *** [CMakeFiles/test_libmesh.dir/all] Error 2
make[1]: *** [CMakeFiles/test_libmesh.dir/rule] Error 2
make: *** [test_libmesh] Error 2

-- TEST PROGRAM --
//#include "fe.h"
//#include "kelly_error_estimator.h"

using namespace libMesh;

// Begin main function
int main (int argc, char** argv){
    LibMeshInit init (argc, argv);
}






Andrew E. Slaughter, PhD
[email protected]

Materials Process Design and Control Laboratory
Sibley School of Mechanical and Aerospace Engineering
169 Frank H. T. Rhodes Hall
Cornell University
Ithaca, NY 14853-3801
(607) 229-1829

On 05/02/2012 08:38 PM, Roy Stogner wrote:

      Copying to libmesh-users so everyone else gets closure too.  ;-)
      ---
      Roy

      ---------- Forwarded message ----------
      Date: Wed, 2 May 2012 20:27:48 -0400
      From: Andrew E Slaughter <[email protected]>
      To: Roy Stogner <[email protected]>
      Subject: Re: [Libmesh-users] Problem linking...

      It is healed! I was writing the email below and gathering information
      and I fixed it, but I don't know how. I installed v0.7.2 and things
      worked fine, I then switched back to 0.7.3.1 for this response and the
      error was gone. I deleted 0.7.2 to make sure and it is still working.
      I don't know what was wrong, but it is working now.

      Just in case it show back up, this is the response to your email:

      I just ran the examples, with "make run_examples" and they all seemed
      to execute correctly. Everything was working fine yesterday, but a
      re-ran ./configure and it started doing misbehaving.

      I am using a cmake configuration that I made by looking at the
      Make.common file that libMesh generates, I attached the configuration
      file that specifies the libMesh related files to link and include
      (libMeshConfig.cmake). This file sets two variables:
      (1) LIBMESH_LIBRARIES a list of all the libraries from libMesh and
      (2) LIBMESH_INCLUDES a list of the libMesh include directories.

      Like I stated in a subsequent email, I received this error with
      v0.7.3.1 but did not with v0.7.2. The attached file is the
      configuration I used to get it linking with v0.7.2, but it is
      identical for v0.7.3.1 except the libfparser.so is not commented.

      I also link with PETSc, vtkIO, vtkCommon, vtkFiltering, tbb,
      tbbmalloc, and gfortran.

      I will start looking through the libMesh generated Make.common to see
      if I can find a missing include or link.

      Thanks for taking a look at this.
      -Andrew


      On Wed, May 2, 2012 at 1:54 PM, Roy Stogner <[email protected]> 
wrote:

            On Wed, 2 May 2012, Andrew E Slaughter wrote:

                  I was experiencing some linker issues after re-building 
libMesh. I
                  have the following test program that gives me an error when 
linking,
                  if I remove the "kelly_error_estimator.h" include the program 
compiles
                  and links fine. I also get the exact error if I include the
                  "kelly_error_estimator.h" instead of the "fe.h".



            Do the apps and example programs link for you?  What linker and
            command line options are you using for the test program?
            ---
            Roy



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to