mber 13, 2010 12:42 PM
To: Dec, John A. (LARC-D206)
Cc: libmesh-users@lists.sourceforge.net
Subject: Re: [Libmesh-users] Problem linking my code in debug mode
On Mon, 13 Sep 2010, Roy Stogner wrote:
> You're building main.*.o without GLIBCXX_DEBUG or
> GLIBCXX_DEBUG_PEDANTIC defined
On Mon, 13 Sep 2010, Roy Stogner wrote:
> You're building main.*.o without GLIBCXX_DEBUG or
> GLIBCXX_DEBUG_PEDANTIC defined, so it's using standard STL vectors.
Make that _GLIBCXX etc; I forgot the leading underscores. Just cut
and paste (or better yet, auto-import) the -D arguments from our b
I think I've found your problem:
On Mon, 13 Sep 2010, Dec, John A. (LARC-D206) wrote:
> g++ -DDEBUG -DPETSC_USE_DYNAMIC_LIBRARIES -g -fPIC
> -I/root/libmesh/include/base
> -I/root/libmesh/include/enums
> -I/root/libmesh/include/error_estimation
> -I/root/libmesh/include/fe
> -I/root/libmesh/incl
ph: (757) 864-7023
cell: (757) 848-7629
-Original Message-
From: Kirk, Benjamin (JSC-EG311)
Sent: Monday, September 13, 2010 11:20 AM
To: Dec, John A. (LARC-D206); libmesh-users@lists.sourceforge.net
Subject: Re: [Libmesh-users] Problem linking my code in debug mode
On 9/13/10 10:03 AM, &qu
On 9/13/10 10:03 AM, "Dec, John A. (LARC-D206)" wrote:
> Ben,
>
> Here are the compile and link lines as well as the link errors. I modified
> makefile from one of the examples and it references the Make.Common file that
> gets generated from ./configure when setting up the library. I recently
On Mon, Sep 13, 2010 at 10:03 AM, Dec, John A. (LARC-D206)
wrote:
> Ben,
>
> Here are the compile and link lines as well as the link errors. I modified
> makefile from one of the examples and it references the Make.Common file that
> gets generated from ./configure when setting up the library.
`assemble_thermal(libMesh::EquationSystems&, std::basic_string, std::allocator > const&)':
/root/FEAR/main.cpp:5064: undefined reference to
`libMesh::DofMap::dof_indices(libMesh::Elem const*, std::vector >&, unsigned int) const'
collect2: ld returned 1 exit status
make:
On 9/13/10 9:01 AM, "Dec, John A. (LARC-D206)" wrote:
> While in debug mode, my code compiles without any problems, however in the
> linking phase I get a bunch of undefined references to a couple of libMesh
> functions. The functions in question are libMesh::System::add_variable,
> libMesh::Equ
While in debug mode, my code compiles without any problems, however in the
linking phase I get a bunch of undefined references to a couple of libMesh
functions. The functions in question are libMesh::System::add_variable,
libMesh::EquationSystems::build_solution_vector, and
libMesh::DofMap::do