c++ - undefined reference to `xdo_new(char const*)' -
c++ - undefined reference to `xdo_new(char const*)' -
this question has reply here:
position of compiler flag -l 2 answersi seek invoke libxdo in cpp following:
#include <xdo.h> int main() { xdo_t *xdo = xdo_new(null); homecoming 0; }
and run g++ /home/roroco/dropbox/try/c/try/main.cpp -lxdo
, raise
/tmp/ccwh9hhs.o: in function `main': main.cpp:(.text+0xe): undefined reference `xdo_new(char const*)' collect2: error: ld returned 1 exit status
please tell me happen?
update: have install libxdo still error.
your compilation flags in wrong order.
write -lxdo
after main.cpp
.
c++ g++
Comments
Post a Comment