A useful principle is not to add cleverness unless you are absolutely sure you’re going to need it. It can be tempting to write general “frameworks” for every little bit of functionality you come across. Resist that urge. You won’t get any real work done, and you’ll end up writing a lot of code that no one will ever use.
I have build and installed Aquila-dsp in the directory aquila
This is the code I am trying to execute:
#include "aquila/source/WaveFile.h"
#include <iostream>
int main(int argc, char *argv[])
{
if (argc < 2)
{
std::cout << "Usage: wave_info <FILENAME>" << std::endl;
ret...
g++ -std=gnu++11 test.cpp
/tmp/ccmKuput.o: In function `main':
test.cpp:(.text+0xa7): undefined reference to `Aquila::WaveFile::WaveFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Aquila::StereoChannel)'
test.cpp:(.text+0x120): undefined reference to `Aquila::WaveFile::getAudioLength() const'
test.cpp:(.text+0x23c): undefined reference to `Aquila::WaveFile::~WaveFile()'
test.cpp:(.text+0x2a6): undefined reference to `Aquila::WaveFile::~WaveFile()'
collect2: error: ld returned 1 exit status
I have build and installed Aquila-dsp in the directory aquila
This is the code I am trying to execute:
#include "aquila/source/WaveFile.h"
#include <iostream>
int main(int argc, char *argv[])
{
if (argc < 2)
{
std::cout << "Usage: wave_info <FILENAME>" << std::endl;
ret...