problem when trying to compile it.
hi all,
i am trying to compile the following code but I receive an error "launch failed. Binary not found". I am using eclipse. The strange think is that the first time I am trying to compile it it is finding errors. But when I try to change the error and compile it again i receive the error. I tried to clean the project but with no result. I think the code is correct.
Many thanks in advance,
Kindest regards,
Christos
Code:
#include "test2.h"
#include "/usr/include/qwt/qwt_plot.h"
#include "/usr/include/qwt/qwt_plot_curve.h"
{
ui.setupUi(this);
double x[100], y1[100], y2[100]; // x and y values
// add curves
for( int i=0; i<100; i++ )
{ x[i] = (double)i/50.0; y1[i] = sin(x[i]); y2[i] = cos(x[i]); }
// copy the data into the curves
curve1->setData(x, y1, 100);
curve2->setData(x, y2, 100);
curve1->attach(myPlot);
curve2->attach(myPlot);
// finally, refresh the plot
myPlot->replot();
}
Re: problem when trying to compile it.
Did you implement main() somewhere?