#739 Linking Alberta lib with new dune 2.0
Metadata
Property | Value |
---|---|
Reported by | Chensong Zhang (zhangcs@psu.edu) |
Reported at | Feb 13, 2010 05:05 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Mac OS |
Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) |
Last edited at | Jul 11, 2010 09:39 |
Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
Closed at | Jul 11, 2010 09:39 |
Closed in version | Unknown |
Resolution | Works for me |
Comment | Nobody can reproduce the bug, and the reporter is missing-in-action. Please reopen if the problem reappears. |
Description
I recently changed to dune-grid release 2.0. And I use Alberta-2.0.1 with it. I compile Alberta and then Dune with gcc-4.4.1 on my Macbook Snow Leopard.
I compile a code which compiles ok previously. I had the following error:
=============
CC -c testdriver.c CC -o testdriver testdriver.o semi_lagrangian_inner_product.o /Users/zhangcs/Packages/dune/dune-grid/dune/grid/.libs/libgrid.a /Users/zhangcs/Packages/dune/dune-common/dune/common/.libs/libcommon.a -L/usr/share/libpsurface/lib -lpsurface -L/Users/zhangcs/Packages/alberta-2.0.1/lib -lalberta_2d -lalberta_util -lstdc++ ld: warning: in /Users/zhangcs/Packages/alberta-2.0.1/lib/libalberta_2d.dylib, file is not of required architecture ld: warning: in /Users/zhangcs/Packages/alberta-2.0.1/lib/libalberta_util.dylib, file is not of required architecture Undefined symbols: "_get_fe_space", referenced from: Dune::Alberta::HierarchyDofNumbering<2>::createDofSpace(Dune::Alberta::MeshPointer<2> const&, std::basic_string<char, std::char_traits, std::allocator > const&, int const (&) [4], bool)in semi_lagrangian_inner_product.o "_get_dof_int_vec", referenced from: Dune::Alberta::DofVectorProvider::get(fe_space const*, std::basic_string<char, std::char_traits, std::allocator > const&)in semi_lagrangian_inner_product.o "_alberta_alloc", referenced from: signed char* Dune::Alberta::memAlloc(unsigned long)in semi_lagrangian_inner_product.o "_get_dof_uchar_vec", referenced from: Dune::Alberta::DofVectorProvider::get(fe_space const*, std::basic_string<char, std::char_traits, std::allocator > const&)in semi_lagrangian_inner_product.o "_fill_macro_info", referenced from: Dune::Alberta::ElementInfo<2>::ElementInfo(Dune::Alberta::MeshPointer<2> const&, Dune::Alberta::MacroElement<2> const&, unsigned long)in semi_lagrangian_inner_product.o "_funcName", referenced from: double (Dune::Alberta::memReAlloc<double [2]>(double () [2], unsigned long, unsigned long)) [2]in semi_lagrangian_inner_product.o int* Dune::Alberta::memReAlloc(int*, unsigned long, unsigned long)in semi_lagrangian_inner_product.o signed char* Dune::Alberta::memReAlloc(signed char*, unsigned long, unsigned long)in semi_lagrangian_inner_product.o signed char* Dune::Alberta::memAlloc(unsigned long)in semi_lagrangian_inner_product.o Dune::Alberta::DofVectorPointer::operator unsigned char*() constin semi_lagrangian_inner_product.o Dune::Alberta::DofVectorPointer<double [2]>::operator double () 2 constin semi_lagrangian_inner_product.o Dune::Alberta::DofVectorPointer::operator int() constin semi_lagrangian_inner_product.o "_print_error_funcname", referenced from: Dune::Alberta::DofVectorPointer::operator unsigned char*() constin semi_lagrangian_inner_product.o Dune::Alberta::DofVectorPointer<double [2]>::operator double () 2 constin semi_lagrangian_inner_product.o Dune::Alberta::DofVectorPointer::operator int() constin semi_lagrangian_inner_product.o "_write_macro_data", referenced from: Dune::Alberta::MacroData<2>::write(std::basic_string<char, std::char_traits, std::allocator > const&, bool) constin semi_lagrangian_inner_product.o "_write_macro_data_xdr", referenced from: Dune::Alberta::MacroData<2>::write(std::basic_string<char, std::char_traits, std::allocator > const&, bool) constin semi_lagrangian_inner_product.o "_dof_free_bit", referenced from: void Dune::Alberta::DofVectorPointer::forEach<Dune::AlbertaGridLevelProvider<2>::CalcMaxLevel>(Dune::AlbertaGridLevelProvider<2>::CalcMaxLevel&) constin semi_lagrangian_inner_product.o void Dune::Alberta::DofVectorPointer::forEach<Dune::AlbertaGridHierarchicIndexSet<2, 2>::InitEntityNumber>(Dune::AlbertaGridHierarchicIndexSet<2, 2>::InitEntityNumber&) constin semi_lagrangian_inner_product.o "_check_and_get_mesh", referenced from: void Dune::Alberta::MeshPointer<2>::create<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory>(Dune::Alberta::MacroData<2> const&, std::basic_string<char, std::char_traits, std::allocator > const&, Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> const&)in semi_lagrangian_inner_product.o "_free_dof_int_vec", referenced from: Dune::Alberta::DofVectorProvider::free(dof_int_vec*) in semi_lagrangian_inner_product.o "_get_dof_real_d_vec", referenced from: Dune::Alberta::DofVectorProvider<double [2]>::get(fe_space const*, std::basic_string<char, std::char_traits, std::allocator > const&)in semi_lagrangian_inner_product.o "_print_error_msg_exit", referenced from: Dune::Alberta::DofVectorPointer::operator unsigned char*() constin semi_lagrangian_inner_product.o Dune::Alberta::DofVectorPointer<double [2]>::operator double () 2 constin semi_lagrangian_inner_product.o Dune::Alberta::DofVectorPointer::operator int() constin semi_lagrangian_inner_product.o "_alloc_macro_data", referenced from: Dune::Alberta::MacroData<2>::create() in semi_lagrangian_inner_product.o "_free_macro_data", referenced from: Dune::Alberta::MacroData<2>::release() in semi_lagrangian_inner_product.o "_alberta_realloc", referenced from: double (Dune::Alberta::memReAlloc<double [2]>(double () [2], unsigned long, unsigned long)) [2]in semi_lagrangian_inner_product.o int* Dune::Alberta::memReAlloc(int*, unsigned long, unsigned long)in semi_lagrangian_inner_product.o signed char* Dune::Alberta::memReAlloc(signed char*, unsigned long, unsigned long)in semi_lagrangian_inner_product.o "Dune::Alberta::MeshPointer<2>::Library<2>::projectionFactory", referenced from: void Dune::Alberta::MeshPointer<2>::create<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory>(Dune::Alberta::MacroData<2> const&, std::basic_string<char, std::char_traits, std::allocator > const&, Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> const&)in semi_lagrangian_inner_product.o void Dune::Alberta::MeshPointer<2>::create<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory>(Dune::Alberta::MacroData<2> const&, std::basic_string<char, std::char_traits, std::allocator > const&, Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> const&)in semi_lagrangian_inner_product.o node_projection* Dune::Alberta::MeshPointer<2>::initNodeProjection<Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> >(mesh*, macro_el*, int)in semi_lagrangian_inner_product.o "_free_dof_real_d_vec", referenced from: Dune::Alberta::DofVectorProvider<double [2]>::free(dof_real_d_vec*)in semi_lagrangian_inner_product.o "_compute_neigh_fast", referenced from: Dune::Alberta::MacroData<2>::finalize() in semi_lagrangian_inner_product.o "_fill_elinfo", referenced from: Dune::Alberta::ElementInfo<2>::child(int) constin semi_lagrangian_inner_product.o "_free_mesh", referenced from: Dune::Alberta::MeshPointer<2>::release() in semi_lagrangian_inner_product.o "_free_fe_space", referenced from: Dune::Alberta::HierarchyDofNumbering<2>::freeDofSpace(fe_space const*) in semi_lagrangian_inner_product.o "_free_dof_uchar_vec", referenced from: Dune::Alberta::DofVectorProvider::free(dof_uchar_vec*)in semi_lagrangian_inner_product.o "Dune::Alberta::MeshPointer<2>::Library<2>::boundaryCount", referenced from: void Dune::Alberta::MeshPointer<2>::create<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory>(Dune::Alberta::MacroData<2> const&, std::basic_string<char, std::char_traits, std::allocator > const&, Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> const&)in semi_lagrangian_inner_product.o node_projection* Dune::Alberta::MeshPointer<2>::initNodeProjection<Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> >(mesh*, macro_el*, int)in semi_lagrangian_inner_product.o node_projection* Dune::Alberta::MeshPointer<2>::initNodeProjection<Dune::Alberta::ProjectionFactoryInterface<Dune::Alberta::DuneBoundaryProjection<2>, Dune::GridFactory<Dune::AlbertaGrid<2, 2> >::ProjectionFactory> >(mesh*, macro_el*, int)in semi_lagrangian_inner_product.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [all] Error 1