undefined reference to...

Hi all

I've been trying to compile my project but I keep receiving this error: undefined reference to... I know that this error should be solved by linking libraries. The problem is that I am new in linux, and I dont know very well how to use the makefiles and cmakelists. My problem is this:

I downloaded a 'driver' for some communication protocol, and in the folder there are just .c and .h files, and a makefile that apparently justs creates the object files (.o) of the source files. When I copy the files in my project's folder and '#include' the header files in my code, I get the compiling error 'undefined reference to' (to the functions of the driver). I wish to solve this via cmakelists or makefile. I'm working with Eclipse.

Another question would be, how to use the drivers code, which is writen in c, in my c++ project.

Thanks in advance.

sfm
Topic archived. No new replies allowed.