[Dune] problem using ug and the gmshreader

Jö Fahlke jorrit at jorrit.de
Tue May 4 14:33:08 CEST 2010


Am Tue,  4. May 2010, 14:09:27 +0200 schrieb Franz Rammerstorfer:
> Scanning dependencies of target dunecouple
> [100%] Building CXX object
> test_programs/CMakeFiles/dunecouple.dir/main_dunecouple.C.o
> Linking CXX executable ../dunecouple
> CMakeFiles/dunecouple.dir/main_dunecouple.C.o: In function
> `Dune::GmshReaderParser<Dune::UGGrid<3>,
> 3>::pass2HandleElement(_IO_FILE*, int, std::map<int, unsigned int,
> std::less<int>, std::allocator<std::pair<int const, unsigned int> >
> >&, std::vector<Dune::FieldVector<double, 3>,
> std::allocator<Dune::FieldVector<double, 3> > > const&, int)':
> main_dunecouple.C:(.text._ZN4Dune16GmshReaderParserINS_6UGGridILi3EEELi3EE18pass2HandleElementEP8_IO_FILEiRSt3mapIijSt4lessIiESaISt4pairIKijEEERKSt6vectorINS_11FieldVectorIdLi3EEESaISH_EEi[Dune::GmshReaderParser<Dune::UGGrid<3>,
> 3>::pass2HandleElement(_IO_FILE*, int, std::map<int, unsigned int,
> std::less<int>, std::allocator<std::pair<int const, unsigned int> >
> >&, std::vector<Dune::FieldVector<double, 3>,
> std::allocator<Dune::FieldVector<double, 3> > > const&,
> int)]+0x109d): undefined reference to
> `Dune::GridFactory<Dune::UGGrid<3>
> >::insertBoundarySegment(std::vector<unsigned int,
> std::allocator<unsigned int> > const&,
> Dune::shared_ptr<Dune::BoundarySegment<3, 3> >)'
> collect2: ld returned 1 exit status
> make[3]: *** [dunecouple] Error 1
> make[2]: *** [test_programs/CMakeFiles/dunecouple.dir/all] Error 2
> make[1]: *** [test_programs/CMakeFiles/dunecouple.dir/rule] Error 2
> make: *** [dunecouple] Error 2

Apparently the linker does not link against libdunegrid (that is where I
believe Dune::GridFactory<Dune::UGGrid<3> > >::insertBoundarySegment() should
be).  Try to get cmake into verbose mode so it shows you the command it uses
for linking.  And try to figure out, how you buildsystem detects dune-grid.

Note: Dune uses a buildsystem based on the autotools.  Since you are using
      cmake, you are obviously not using Dune's buildsystem, meaning we don't
      know you buildsystem and thus won't be able to help you much.  If
      someone set up this buildsystem for you, you should probably CC: him so
      he will read this thread as well.

Bye,
Jö.

-- 
* >aylee #macht ist voellig aus dem Haeusschen und kuesst den Drucker
                mit Inbrunst
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20100504/52f7877c/attachment.sig>


More information about the Dune mailing list