Re: [Libmesh-users] Problem linking... (fwd)

2012-05-17 Thread Roy Stogner
On Thu, 17 May 2012, Andrew E Slaughter wrote: > It is a flag issue, as you suggested. My example program works when > I include the -D_GLIBCXX_DEBUG flag, but the linker error occurs > without it. > > In my actual program this compiler flag does not work with > Boost::program_options that I use

Re: [Libmesh-users] Problem linking... (fwd)

2012-05-17 Thread Andrew E Slaughter
It is a flag issue, as you suggested. My example program works when I include the -D_GLIBCXX_DEBUG flag, but the linker error occurs without it. In my actual program this compiler flag does not work with Boost::program_options that I use (link

Re: [Libmesh-users] Problem linking... (fwd)

2012-05-17 Thread Roy Stogner
On Thu, 17 May 2012, Andrew E Slaughter wrote: > Is there something different with respect to include and link > directories between a dbg and opt build? I have it working with libmesh > in opt, but it provides the error when I switch to dbg. There's no difference with include directories; the l

Re: [Libmesh-users] Problem linking... (fwd)

2012-05-17 Thread Andrew E Slaughter
Roy Stogner > wrote: >> >> -- Forwarded message -- >> Date: Thu, 17 May 2012 12:28:36 -0400 >> From: Andrew Slaughter >> To: Roy Stogner >> Subject: Re: [Libmesh-users] Problem linking... (fwd) >> >> The problem has return. It returne

Re: [Libmesh-users] Problem linking... (fwd)

2012-05-17 Thread John Peterson
On Thu, May 17, 2012 at 10:52 AM, Roy Stogner wrote: > > > -- Forwarded message -- > Date: Thu, 17 May 2012 12:28:36 -0400 > From: Andrew Slaughter > To: Roy Stogner > Subject: Re: [Libmesh-users] Problem linking... (fwd) > > The problem has retu

Re: [Libmesh-users] Problem linking... (fwd)

2012-05-17 Thread Roy Stogner
-- Forwarded message -- Date: Thu, 17 May 2012 12:28:36 -0400 From: Andrew Slaughter To: Roy Stogner 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

Re: [Libmesh-users] Problem linking... (fwd)

2012-05-02 Thread Roy Stogner
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 To: Roy Stogner Subject: Re: [Libmesh-users] Problem linking... It is healed! I was writing the email below and

Re: [Libmesh-users] Problem linking...

2012-05-02 Thread Roy Stogner
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

[Libmesh-users] Problem linking... (update)

2012-05-02 Thread Andrew E Slaughter
The language in my past e-mail was poor, so I want to clarify. I also wanted to add some more information. To clarify, I received the same error for my example program with either the "fe.h" or "kelly_error_estimator.h" included. This error occurred in v0.7.3.1. I just downloaded and built vers

[Libmesh-users] Problem linking...

2012-05-02 Thread Andrew E Slaughter
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" instea

Re: [Libmesh-users] Problem linking my code in debug mode

2010-09-13 Thread Dec, John A. (LARC-D206)
mber 13, 2010 12:42 PM To: Dec, John A. (LARC-D206) Cc: [email protected] 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

Re: [Libmesh-users] Problem linking my code in debug mode

2010-09-13 Thread Roy Stogner
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

Re: [Libmesh-users] Problem linking my code in debug mode

2010-09-13 Thread Roy Stogner
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

Re: [Libmesh-users] Problem linking my code in debug mode

2010-09-13 Thread Dec, John A. (LARC-D206)
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); [email protected] Subject: Re: [Libmesh-users] Problem linking my code in debug mode On 9/13/10 10:03 AM, &qu

Re: [Libmesh-users] Problem linking my code in debug mode

2010-09-13 Thread Kirk, Benjamin (JSC-EG311)
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

Re: [Libmesh-users] Problem linking my code in debug mode

2010-09-13 Thread John Peterson
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.

Re: [Libmesh-users] Problem linking my code in debug mode

2010-09-13 Thread Dec, John A. (LARC-D206)
`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:

Re: [Libmesh-users] Problem linking my code in debug mode

2010-09-13 Thread Kirk, Benjamin (JSC-EG311)
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

[Libmesh-users] Problem linking my code in debug mode

2010-09-13 Thread Dec, John A. (LARC-D206)
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

Re: [Libmesh-users] Problem linking to libmesh using libmesh-config

2010-09-05 Thread Torquil Macdonald Sørensen
On 05/09/10 18:19, Kirk, Benjamin (JSC-EG311) wrote: > It looks like your libmesh build wants a complex version of laspack - is this > want you want? > > Especially since it looks like you are linking to a c-compiled petsc (which > will not work for complex) it looks like there is an inconsistenc

Re: [Libmesh-users] Problem linking to libmesh using libmesh-config

2010-09-05 Thread Torquil Macdonald Sørensen
On 05/09/10 18:19, Kirk, Benjamin (JSC-EG311) wrote: > It looks like your libmesh build wants a complex version of laspack - is this > want you want? > > Especially since it looks like you are linking to a c-compiled petsc (which > will not work for complex) it looks like there is an inconsistenc

Re: [Libmesh-users] Problem linking to libmesh using libmesh-config

2010-09-05 Thread Kirk, Benjamin (JSC-EG311)
It looks like your libmesh build wants a complex version of laspack - is this want you want? Especially since it looks like you are linking to a c-compiled petsc (which will not work for complex) it looks like there is an inconsistency somewhere. -Ben On Sep 5, 2010, at 11:05 AM, Torquil Mac

[Libmesh-users] Problem linking to libmesh using libmesh-config

2010-09-05 Thread Torquil Macdonald Sørensen
Hi! I've just successfully compiled libmesh SVN on linux with GCC4.4.4 successfully and I'm eager to try to get some simple FEM programs working. The test programs compile and run fine. This was done with the command "make run_examples" from the libmesh directory. So the libmesh installation se