On Tue, May 24, 2016 at 2:08 PM, Vikram Garg <vikram.v.g...@gmail.com>
wrote:

> Hello,
>         I am getting undefined reference errors on compiling a branch I
> made for debugging the adjoint error estimator. The branch works fine at
> home, but is giving me problems at my workstation.
>
> The errors seem to start during the unit-tests compilation:
>
> make[2]: Leaving directory
> `/workspace/vikram/libmesh/p_ref_residual_project_bug'
>   CXXLD    unit_tests-dbg
> unit_tests_dbg-driver.o: In function `main':
>
> /workspace/vikram/libmesh/p_ref_residual_project_bug/tests/../../tests/driver.C:17:
> undefined reference to
> `CppUnit::TestFactoryRegistry::getRegistry(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&)'
>
> /workspace/vikram/libmesh/p_ref_residual_project_bug/tests/../../tests/driver.C:21:
> undefined reference to
> `CppUnit::TextTestRunner::run(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >, bool, bool, bool)'
> base/unit_tests_dbg-getpot_test.o: In function
> `GetPotTest::addTestsToSuite(CppUnit::TestSuiteBuilderContextBase&)':
> .
> .
> .
>
> fparser/unit_tests_dbg-autodiff.o:(.rodata._ZTV19FParserAutodiffTest[_ZTV19FParserAutodiffTest]+0x58):
> undefined reference to
> `CppUnit::Test::findTest(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&) const'
>
> fparser/unit_tests_dbg-autodiff.o:(.rodata._ZTV19FParserAutodiffTest[_ZTV19FParserAutodiffTest]+0x60):
> undefined reference to
> `CppUnit::Test::resolveTestPath(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&) const'
> collect2: error: ld returned 1 exit status
> make[1]: *** [unit_tests-dbg] Error
>
> I tried using a fresh build directory, and also configuring without netcdf,
> but encountered the same errors.
>

You have problems with your CppUnit install on the system in question.  The
undefined references are all to CppUnit functions...

-- 
John
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to