gadomski / cpd

C++ implementation of the Coherent Point Drift point set registration algorithm.
http://www.gadom.ski/cpd
GNU General Public License v2.0
385 stars 122 forks source link

Just seems to run gtests, and not the cpd function? #101

Closed antithing closed 7 years ago

antithing commented 7 years ago

Hi, I am trying to use this library, i have set up a simple example:


int main(int argc, char** argv) {

        MatrixXd A = readCSV("Z:/20170312/omniPoints2.csv", 373, 3);
        MatrixXd B = readCSV("Z:/20170312/rsPoints.csv", 3670, 3);

            cpd::Matrix fixed = A;
            cpd::Matrix moving = B;
            cpd::RigidResult result = cpd::rigid(fixed, moving);

            std::cout << "result: " << result.translation << std::endl;
        return 0;
    }
}

..and linked the cpd lib, and the gtests libs. All i get when i run it is:

Running main() from gtest_main.cc
[==========] Running 0 tests from 0 test cases.
[==========] 0 tests from 0 test cases ran. (0 ms total)
[  PASSED  ] 0 tests.
Press any key to continue . . .

Where am i going wrong here?

Thank you for making this code available!

(If i do not link the gtest libs, i get:

Error LNK2001 unresolved external symbol main