File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Examples/Calculator/Calculator_component/Examples/CppDynamic Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,15 @@ int main()
2222 try
2323 {
2424 std::string libpath = (" " ); // TODO: put the location of the Calculator-library file here.
25- auto wrapper = Calculator::CWrapper::loadLibrary (libpath + " /calculator." ); // TODO: add correct suffix of the library
25+ auto wrapper = Calculator::CWrapper::loadLibrary (libpath + " calculator."
26+ #if defined _WIN32
27+ " dll"
28+ #elif defined __APPLE__
29+ " dylib"
30+ #elif defined __linux__
31+ " so"
32+ #endif
33+ ); // TODO: add correct suffix of the library
2634 Calculator_uint32 nMajor, nMinor, nMicro;
2735 wrapper->GetVersion (nMajor, nMinor, nMicro);
2836 std::cout << " Calculator.Version = " << nMajor << " ." << nMinor << " ." << nMicro;
You can’t perform that action at this time.
0 commit comments