deal.II problem on Mac (Undefined symbols for architecture x86_64)

48 views
Skip to first unread message

Peimeng Yin

unread,
Jul 11, 2017, 12:35:01 PM7/11/17
to deal.II User Group
Hi all,

I used deal.II to solve my personal code and I can run it on Linux, but when I run it on Mac, it shows bug as follows. I am wondering anyone can help me on it.

Location: /usr/local/deal.II

/usr/local/lib : links to deal.II, lac, base,tbb,lib*,libdeal_II.g.dylib, libdeal_II.dylib
/usr/local/include : links to deal.II/lib/lib*.



The error information:

c++  -std=c++14 -o main  Beam1d.g.o  Data.g.o  main.g.o -L /usr/local/lib -L /usr/local/include -ldeal_II  -ldl -lpthread 

Undefined symbols for architecture x86_64:

  "tbb::internal::thread_get_id_v3()", referenced from:

      tbb::this_tbb_thread::get_id() in Beam1d.g.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [main] Error 1


Wolfgang Bangerth

unread,
Jul 11, 2017, 7:08:00 PM7/11/17
to dea...@googlegroups.com, Peimeng Yin
On 07/11/2017 10:35 AM, Peimeng Yin wrote:
>
> I used deal.II to solve my personal code and I can run it on Linux, but when I
> run it on Mac, it shows bug as follows. I am wondering anyone can help me on it.
>
> Location: /usr/local/deal.II
>
> /usr/local/lib : links to deal.II, lac,
> base,tbb,lib*,libdeal_II.g.dylib, libdeal_II.dylib
> /usr/local/include : links to deal.II/lib/lib*.
>
>
>
> The error information:
>
> c++ -std=c++14 -o main Beam1d.g.o Data.g.o main.g.o -L /usr/local/lib -L
> /usr/local/include -ldeal_II -ldl -lpthread
>
> Undefined symbols for architecture x86_64:
>
> "tbb::internal::thread_get_id_v3()", referenced from:
>
> tbb::this_tbb_thread::get_id() in Beam1d.g.o
>

Peiming -- how exactly did you install deal.II and the other libraries? Did
you use the Mac OS X dmg package from the website?

Best
W>

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Reply all
Reply to author
Forward
0 new messages