# Garfield Compilation

**URL:** <https://root-forum.cern.ch/t/garfield-compilation/23636>\
**Category:** Garfield++\
**Created:** [January 31, 2017, 9:28am UTC](https://root-forum.cern.ch/t/garfield-compilation/23636 "2017-01-31T09:28:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [January 31, 2017, 9:41am UTC](https://root-forum.cern.ch/t/garfield-compilation/23636/2 "2017-01-31T09:41:15Z")

</div>

> [@Makefile Garfield](https://root-forum.cern.ch/t/makefile-garfield/17475/3):
>
> Try: g++ `root-config --cflags` -o gemseq1 gemseq1.o $(GARFIELD\_HOME)/Library/libGarfield.a `root-config --glibs` -lgfortran -lm -lz or: g++ `root-config --ldflags` -o gemseq1 gemseq1.o $(GARFIELD\_HOME)/Library/libGarfield.a `root-config --glibs` -lgfortran -lm -lz

---

_[View the full topic](https://root-forum.cern.ch/t/garfield-compilation/23636)._
