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 answers

i 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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -