adamstark / BTrack

A Real-Time Beat Tracker
GNU General Public License v3.0
384 stars 79 forks source link

compile error #2

Closed AndreeaNicolescu closed 7 years ago

AndreeaNicolescu commented 7 years ago

Hello, I have followed the instructions from the Readme, included the header file BTrack.h in a main.cpp file created, and all the headers and cpp's file are in the same folder with main.cpp.However, when I try to instantiate a BTrack object, I get the following error at compile: undefined reference to `BTrack::BTrack(int, int). I tried a few other things but none of them worked. What is the problem ?

adamstark commented 7 years ago

Hi,

It sounds like you are not including the BTrack .cpp files - i.e. you need all the BTrack files, not just the headers. It sounds like it can find the header files, but not the implementations. Let me know if that helps!

Thanks,

Adam

AndreeaNicolescu commented 7 years ago

I included BTrack.cpp and it worked. Thank you!

adamstark commented 7 years ago

No problem! :)