# Problems compling with simple makefile

**URL:** <https://root-forum.cern.ch/t/problems-compling-with-simple-makefile/16002>\
**Category:** ROOT\
**Created:** [April 30, 2013, 6:57pm UTC](https://root-forum.cern.ch/t/problems-compling-with-simple-makefile/16002 "2013-04-30T18:57:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akr](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@akr](https://root-forum.cern.ch/u/akr)\
**Post date:** [April 30, 2013, 6:57pm UTC](https://root-forum.cern.ch/t/problems-compling-with-simple-makefile/16002/1 "2013-04-30T18:57:42Z")

</div>

Hello,

I have two very simple analysis files, generated from the MakeSelector function & with little modification, and I’m trying to compile root with a simple Makefile but I’m seeing an error that I’m currently unable to understand (shown below).

I think that perhaps I’m forgetting to include some header file, but which one isn’t clear to me. The error seems to be suggesting that there is an issue with Class, ShowMembers and Streamer - any advice would be much appreciated!

`g++ -o runSelector build/newNTupleSelector.o build/runSelector.o -m64 -L/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/root/5.32.00-x86_64-slc5-gcc4.3/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic
build/newNTupleSelector.o: In function `newNTupleSelector::IsA() const':
/home/SimplifiedModel/src/newNTupleSelector.h:579: undefined reference to `newNTupleSelector::Class()'
build/newNTupleSelector.o:(.rodata._ZTV17newNTupleSelector[vtable for newNTupleSelector]+0x1d0): undefined reference to `newNTupleSelector::ShowMembers(TMemberInspector&)'
build/newNTupleSelector.o:(.rodata._ZTV17newNTupleSelector[vtable for newNTupleSelector]+0x1d8): undefined reference to `newNTupleSelector::Streamer(TBuffer&)'
collect2: ld returned 1 exit status
make: *** [runSelector] Error 1
`

---

<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:** [April 30, 2013, 7:04pm UTC](https://root-forum.cern.ch/t/problems-compling-with-simple-makefile/16002/2 "2013-04-30T19:04:08Z")

</div>

You are probably missing a (CINT) dictionary for your class: [url][Implementing a Custom Class](https://root-forum.cern.ch/t/implementing-a-custom-class/15986/2)
