# Garfroot Compilation Problem

**URL:** <https://root-forum.cern.ch/t/garfroot-compilation-problem/16764>\
**Category:** Garfield++\
**Created:** [October 16, 2013, 10:15am UTC](https://root-forum.cern.ch/t/garfroot-compilation-problem/16764 "2013-10-16T10:15:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vale\_gala](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/v/67e7ee/32.png) [@vale\_gala](https://root-forum.cern.ch/u/vale_gala)\
**Post date:** [October 16, 2013, 10:15am UTC](https://root-forum.cern.ch/t/garfroot-compilation-problem/16764/1 "2013-10-16T10:15:02Z")

</div>

Dear root-friends,  
I’m having some problem in compiling Garfroot  
I successfully installed Garfield  
but when I tried to compile garfroot I had many problems

I initially used the makefile in the Garfield HomePage

[garfieldpp.web.cern.ch/garfieldp … file\_linux](http://garfieldpp.web.cern.ch/garfieldpp/getting-started/makefile_linux)

then I used the makefile in this thread

> [@Garfield++ installation, garfroot.C](https://root-forum.cern.ch/t/garfield-installation-garfroot-c/15393/6):
>
> Try: OBJDIR = $(GARFIELD\_HOME)/Object SRCDIR = $(GARFIELD\_HOME)/Source INCDIR = $(GARFIELD\_HOME)/Include HEEDDIR = $(GARFIELD\_HOME)/Heed LIBDIR = $(GARFIELD\_HOME)/Library # Compiler (and Linker) CXX = `root-config --cxx` # Compiler (and Linker) flags CXXFLAGS = `root-config --cflags` CXXFLAGS += -I$(INCDIR) -I$(HEEDDIR) # Code Generation and Optimization flags CXXFLAGS += -fno-common -fPIC -O3 # Warning flags CXXFLAGS += -W -Wall -Wextra -Wno-long-long # Debug flags CXXFLAGS += -g # Lib…

but the error I got is the following

afs/cern.ch/user/s/savrie/garfield//Library/libGarfield.a(magboltz.o): In function `magboltz2_': magboltz-9.01.f:(.text+0x2cf): undefined reference to `s\_stop’  
/afs/cern.ch/user/s/savrie/garfield//Library/libGarfield.a(magboltz.o): In function `mixert_': magboltz-9.01.f:(.text+0x91b): undefined reference to `s\_copy’  
magboltz-9.01.f:(.text+0x1b70): undefined reference to `s_copy' magboltz-9.01.f:(.text+0x1e9a): undefined reference to `s\_wsfe’  
magboltz-9.01.f:(.text+0x1ee2): undefined reference to `do_fio' magboltz-9.01.f:(.text+0x1efd): undefined reference to `do\_fio’  
magboltz-9.01.f:(.text+0x1f18): undefined reference to `do_fio' magboltz-9.01.f:(.text+0x1f33): undefined reference to `do\_fio’  
magboltz-9.01.f:(.text+0x1f69): undefined reference to `do_fio' /afs/cern.ch/user/s/savrie/garfield//Library/libGarfield.a(magboltz.o):magboltz-9.01.f:(.text+0x1f9f): more undefined references to `do\_fio’ follow  
/afs/cern.ch/user/s/savrie/garfield//Library/libGarfield.a(magboltz.o): In function `mixert_': magboltz-9.01.f:(.text+0x1fa6): undefined reference to `e\_wsfe’  
magboltz-9.01.f:(.text+0x2819): undefined reference to `s_copy' magboltz-9.01.f:(.text+0x2cd4): undefined reference to `s\_copy’  
magboltz-9.01.f:(.text+0x2d00): undefined reference to `s_copy' magboltz-9.01.f:(.text+0x3127): undefined reference to `s\_copy’  
magboltz-9.01.f:(.text+0x38c6): undefined reference to `s_copy' /afs/cern.ch/user/s/savrie/garfield//Library/libGarfield.a(magboltz.o):magboltz-9.01.f:(.text+0x4213): more undefined references to `s\_copy’ follow  
/afs/cern.ch/user/s/savrie/garfield//Library/libGarfield.a(magboltz.o): In function `readin_': magboltz-9.01.f:(.text+0xb7b7): undefined reference to `s\_rsfe’  
magboltz-9.01.f:(.text+0xb7d1): undefined reference to `do_fio' magboltz-9.01.f:(.text+0xb7ef): undefined reference to `do\_fio’  
magboltz-9.01.f:(.text+0xb80d): undefined reference to `do\_fio’

any advices?Thanks a lot

---

<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 21, 2018, 10:11am UTC](https://root-forum.cern.ch/t/garfroot-compilation-problem/16764/2 "2018-06-21T10:11:34Z")

</div>

Closed on June 21, 2018, 10:11am UTC

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