Skip to content

Commit

Permalink
disable example when NLOPT is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Jun 27, 2012
1 parent 9d3c1a1 commit cd63a59
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -7,6 +7,7 @@
* Written (W) 2012 Jacob Walker
*/

#include <shogun/lib/config.h>
#include <shogun/base/init.h>
#include <shogun/labels/RegressionLabels.h>
#include <shogun/features/DenseFeatures.h>
Expand All @@ -32,6 +33,7 @@ void print_message(FILE* target, const char* str)

int main(int argc, char **argv)
{
#ifdev HAVE_NLOPT
init_shogun(&print_message, &print_message, &print_message);

int32_t num_vectors=4;
Expand Down Expand Up @@ -173,5 +175,6 @@ int main(int argc, char **argv)

exit_shogun();

#endif
return 0;
}

0 comments on commit cd63a59

Please sign in to comment.