I'm a beginner in C++. I've a project called myProject
and an header file given to me, called myLIB.h
with a method
int connect(char *);
I moved the header in my Project and included in my main file like this
#include "myLIB.h"
My problem is when I start to type connect
, Eclipse IDE suggests me the method in myLIB.h
int fd = connect(devName);
but, when I try to build and compile, I get the following error:
Undefined reference to connect( char *)
I can't understand where the problem is. The .h is included, Eclipse sees the methods but at building time, I get always this error.