# G++ compiler strange behavior

**URL:** <https://root-forum.cern.ch/t/g-compiler-strange-behavior/36737>\
**Category:** Newbie\
**Created:** [November 8, 2019, 11:37am UTC](https://root-forum.cern.ch/t/g-compiler-strange-behavior/36737 "2019-11-08T11:37:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [November 8, 2019, 11:44am UTC](https://root-forum.cern.ch/t/g-compiler-strange-behavior/36737/2 "2019-11-08T11:44:17Z")

</div>

> [@Problem with library MathCore linker](https://root-forum.cern.ch/t/problem-with-library-mathcore-linker/36631/2):
>
> Try: `root-config --cxx --cflags` -o accident macro.cpp source/Source.cpp source/Utility.cpp source/Transport.cpp source/Output.cpp source/OuterSource.cpp source/Dispersion.cpp source/Dose.cpp `root-config --libs`

> [@Problem with gcc flag/file order when compiling against ROOT libraries](https://root-forum.cern.ch/t/problem-with-gcc-flag-file-order-when-compiling-against-root-libraries/36684/2):
>
> Search for “--as-needed” in [man ld -\> Command Line Options](https://sourceware.org/binutils/docs/ld/Options.html)

---

_[View the full topic](https://root-forum.cern.ch/t/g-compiler-strange-behavior/36737)._
