[etherlab-users] Problem with including /lib folder

Andreas Stewering-Bone Andreas.Stewering-Bone at gmx.de
Wed Sep 15 21:11:07 CEST 2010


Hi Juri,

you have to compile with

gcc -o executable -I/opt/etherlab/include -L/opt/etherlab/lib -lethercat 
main.c


Greatings


Andreas

Am Wednesday 15 September 2010 16:43:05 schrieb Juri Gerke:
> Hi,
>
>
>
> I am building a new project with codeblocks. The user-example main.c is
> used as a base with included ecrt.h from /include folder directly. If I
> start to compile my project, the linker can`t find functions from files of
> /lib folder. If I add e.g. domain.h, it can`t find ecrt.h. The /include
> folder as a search directory doesn`t help.
>
> If I change the include command in domain.h to an absolute path e.g
>
> #include /home/user/ethercat../include/ecrt.h the error disappears. But I
> think this is not the right way to solve my problem.
>
> So anyone can tell me how include the master /include and /lib folder
> correctly?
>
>
>
> Kind regards
>
>
>
> Juri Gerke





More information about the Etherlab-users mailing list