Got it to work. Changed the compiler to gcc-4.4 and things seems to be working fine.
There may have been other things wrong with my earlier attempts: for example, I was using an intel-11.1 compiler to compile on an AMD Opteron machine. In any case, I can now more forward with some runs. Thanks for your help. -Manav > On Mar 11, 2015, at 11:43 AM, Roy Stogner <royst...@ices.utexas.edu> wrote: > > > On Wed, 11 Mar 2015, Manav Bhatia wrote: > >> I double checked, and I am using a C++ compiler to link. > >> Moreover, I ran make check in the examples director, and came across the >> same problem. > > If you want to drop the issue now that you've got a workaround, nobody > will blame you. > > If you're curious to investigate further, though... > > > #include <iostream> > > struct TestGlobal > { > TestGlobal() { std::cout << "TestGlobal()" << std::endl; } > }; > > TestGlobal test_global; > > int main(void) > { > std::cout << "main()" << std::endl; > return 0; > } > > > Does that properly construct the global first? What if you move > test_global into a separate file and link it in? > --- > Roy ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users