# Error: ld returned 1 exit status

**URL:** <https://geant4-forum.web.cern.ch/t/error-ld-returned-1-exit-status/10790>\
**Category:** Getting Started\
**Created:** [July 10, 2023, 6:46am UTC](https://geant4-forum.web.cern.ch/t/error-ld-returned-1-exit-status/10790 "2023-07-10T06:46:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gholaminejad](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/gholaminejad/32/344_2.png) [@gholaminejad](https://geant4-forum.web.cern.ch/u/gholaminejad)\
**Post date:** [July 10, 2023, 6:46am UTC](https://geant4-forum.web.cern.ch/t/error-ld-returned-1-exit-status/10790/1 "2023-07-10T06:46:20Z")

</div>

Hi  
What does this error mean?

 ![IMG_20230710_101027](https://geant4-forum.web.cern.ch/uploads/default/original/2X/c/c3368b22e7fff02344fa7ca463e05ae3cffc6dcd.jpeg)

---

<div class="post-metadata">

**Author:** ![bmorgan](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/bmorgan/32/7_2.png) [@bmorgan](https://geant4-forum.web.cern.ch/u/bmorgan)\
**Post date:** [July 11, 2023, 11:00am UTC](https://geant4-forum.web.cern.ch/t/error-ld-returned-1-exit-status/10790/2 "2023-07-11T11:00:24Z")

</div>

It likely means there’s no implementation of the `B1DetectorConstruction::ConstructSDandField()` member function in either `B1DetectorConstruction.h` or `B1DetectorConstruction.cc`. If these have been copied from the basic example, check to see what modifications have been made such as deleting that implementation.

---

<div class="post-metadata">

**Author:** ![system](https://geant4-forum.web.cern.ch/uploads/default/original/1X/ce519a43ebdf7ac48a98a03c6ad6eea013b68c46.png) [@system](https://geant4-forum.web.cern.ch/u/system)\
**Post date:** [August 10, 2023, 11:01am UTC](https://geant4-forum.web.cern.ch/t/error-ld-returned-1-exit-status/10790/3 "2023-08-10T11:01:08Z")

</div>

Closed on August 10, 2023, 11:01am UTC

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