Mercurial > hg > piper-vamp-js
comparison test/quick-test.cpp @ 55:62a41dccac51
Update C++ test program as well
author | Chris Cannam |
---|---|
date | Thu, 10 Nov 2016 13:49:58 +0000 |
parents | 1ed825597b6f |
children |
comparison
equal
deleted
inserted
replaced
54:ff0dcd339c9d | 55:62a41dccac51 |
---|---|
4 | 4 |
5 using namespace std; | 5 using namespace std; |
6 | 6 |
7 int main(int, char **) | 7 int main(int, char **) |
8 { | 8 { |
9 string example = "./example.so"; | 9 string example = "../examples/VampExamplePlugins.so"; |
10 | 10 |
11 void *lib = dlopen(example.c_str(), RTLD_LAZY | RTLD_LOCAL); | 11 void *lib = dlopen(example.c_str(), RTLD_LAZY | RTLD_LOCAL); |
12 if (!lib) { | 12 if (!lib) { |
13 cerr << "failed to open " + example + ": " << dlerror() << endl; | 13 cerr << "failed to open " + example + ": " << dlerror() << endl; |
14 return 1; | 14 return 1; |