# "Undefined symbols for architecture x86\_64" When running Garfield++ RPC example

**URL:** <https://root-forum.cern.ch/t/undefined-symbols-for-architecture-x86-64-when-running-garfield-rpc-example/55075>\
**Category:** Garfield++\
**Created:** [May 28, 2023, 3:13pm UTC](https://root-forum.cern.ch/t/undefined-symbols-for-architecture-x86-64-when-running-garfield-rpc-example/55075 "2023-05-28T15:13:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khalil\_Alashy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/khalil_alashy/32/33464_2.png) [@Khalil\_Alashy](https://root-forum.cern.ch/u/Khalil_Alashy)\
**Post date:** [May 28, 2023, 3:13pm UTC](https://root-forum.cern.ch/t/undefined-symbols-for-architecture-x86-64-when-running-garfield-rpc-example/55075/1 "2023-05-28T15:13:42Z")

</div>

I am trying to run RPC example in Garfield ++.  
I did the installation and other examples such as Gem, Silicon, and DriftTube work perfectly and the outputted ROOT graphs are perfect. But when I tried to run the RPC example I got this error which I am not sure how to fix.

Undefined symbols for architecture x86\_64:  
“Garfield::ComponentParallelPlate::Setup(double, double, double, double, double)”, referenced from:  
\_main in Weight.C.o  
ld: symbol(s) not found for architecture x86\_64

I am not example sure how to fix this error. I opened ComponentParallelPlate.hh file from Garfield and Weight.C file from RPC folder and the function Setup is defined and used correctly.

Anyone had a similar issue who can assist me with fixing it? Or can you give me a quick hint as to what is going wrong?

Thank you.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 30, 2023, 7:24am UTC](https://root-forum.cern.ch/t/undefined-symbols-for-architecture-x86-64-when-running-garfield-rpc-example/55075/2 "2023-05-30T07:24:46Z")

</div>

I think @hschindl can help.

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [May 30, 2023, 7:37am UTC](https://root-forum.cern.ch/t/undefined-symbols-for-architecture-x86-64-when-running-garfield-rpc-example/55075/3 "2023-05-30T07:37:05Z")

</div>

Hi,  
sorry for that, the RPC example is being revised at the moment.  
Do you actually plan to simulate RPCs? In which case please get in touch with @djjansse who can provide you with a newer version of the example. If not, I would suggest to just skip the RPC example for the time being.

---

<div class="post-metadata">

**Author:** ![Khalil\_Alashy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/khalil_alashy/32/33464_2.png) [@Khalil\_Alashy](https://root-forum.cern.ch/u/Khalil_Alashy)\
**Post date:** [May 30, 2023, 7:47am UTC](https://root-forum.cern.ch/t/undefined-symbols-for-architecture-x86-64-when-running-garfield-rpc-example/55075/4 "2023-05-30T07:47:52Z")

</div>

Hello, thank you for the reply.  
Yes, we are working with a physical RPC in a muon gas detector. I am trying to simulate the example with different gas files so I am in need to run this example. I will get in contact with @djjansse and ask for assistance if they may help.

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [June 13, 2023, 7:48am UTC](https://root-forum.cern.ch/t/undefined-symbols-for-architecture-x86-64-when-running-garfield-rpc-example/55075/5 "2023-06-13T07:48:11Z")

</div>

Closed on June 13, 2023, 7:48am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
