I'm receiving a C++ compilation error when attempting to deploy Corra:
../../CPP_LIBRARY/GENERAL/MATH_TOOLS/CC/simple_math.cc: In member
function ‘double simple_math::MEDIAN(std::vector<double,
std::allocator<double> >*)’:
../../CPP_LIBRARY/GENERAL/MATH_TOOLS/CC/simple_math.cc:143: error:
‘sort’ was not declared in this scope
Although these functions are available in the "algorithm" header from
the standard library (which is available on my machine), I don't think
the simple_math.cc is including that header. I'm not very familiar
with C++, but from what I can tell, the class only includes
MATH_TOOLS.USE.h, which will subsequently includes "algorithm" only if
"INCLUDE_ALGORITHM" is defined with a "#define" statement. Since this
value isn't defined, compilation is failing.
If I add "#define INCLUDE_ALGORITHM" to the top of simple_math.cc,
compilation proceeds beyond this point, but fails with a different
error:
../../CPP_LIBRARY/PEAK_DETECTION/FT/control/CC/
FT_PeakDetectController.cc: In member function ‘void
FT_PeakDetectController::associateMS2FeatureToMS1Feature(MS2_feature*)’:
../../CPP_LIBRARY/PEAK_DETECTION/FT/control/CC/
FT_PeakDetectController.cc:233: error: ‘find_if’ was not declared in
this scope
Can you please have a look? I might be missing a step somewhere.
(1) Do I need to add the INCLUDE_ALGORITHM line to simple_math.cc?
(2) How can I get past the second error?
Thanks,
biouser.dublin
--
You received this message because you are subscribed to the Google Groups "Corra" group.
To post to this group, send email to co...@googlegroups.com.
To unsubscribe from this group, send email to corra+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/corra?hl=en.