[mlpack-git] [mlpack] implement command line programs of softmaxRegression (#466)

Ryan Curtin notifications at github.com
Thu Oct 29 08:43:35 EDT 2015


> @@ -5,6 +5,7 @@ set(SOURCES
>    softmax_regression_impl.hpp
>    softmax_regression_function.hpp
>    softmax_regression_function.cpp
> +  softmax_main.cpp

You shouldn't add the file here, but instead as its own executable, otherwise `softmax_main.cpp` will get compiled into `libmlpack.so`, which is not the right thing.  Try this instead:

```
add_executable(softmax_regression
  softmax_regression_main.cpp
)
target_link_libraries(softmax_regression
  mlpack
)
install(TARGETS softmax_regression RUNTIME DESTINATION bin)
```

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/466/files#r43379557
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20151029/bfd2fa13/attachment.html>


More information about the mlpack-git mailing list