dejay703
December 20th, 2007, 05:15 AM
Hi everyone,
I'm fairly new to programming in ubuntu. Anyway, I am trying to work with Cimg, and I'm having problems compiling my own programs. It seems like I can compile their examples perfectly fine (running 'make linux' in their examples folder completes fine). However, when I try to compile my program, I get a lot of errors that look like the following:
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0xe6): undefined reference to `XDestroyWindow'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x15c): undefined reference to `XFreeColormap'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x184): undefined reference to `XSync'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x32a): undefined reference to `pthread_cancel'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x354): undefined reference to `pthread_join'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x3b7): undefined reference to `XSync'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x3ca): undefined reference to `XCloseDisplay'
It looks like I am missing some sort of x library, but I have gone through synaptics and installed everything that I think I need. Does anyone have any suggestions?
Thanks
Jason
I'm fairly new to programming in ubuntu. Anyway, I am trying to work with Cimg, and I'm having problems compiling my own programs. It seems like I can compile their examples perfectly fine (running 'make linux' in their examples folder completes fine). However, when I try to compile my program, I get a lot of errors that look like the following:
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0xe6): undefined reference to `XDestroyWindow'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x15c): undefined reference to `XFreeColormap'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x184): undefined reference to `XSync'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x32a): undefined reference to `pthread_cancel'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x354): undefined reference to `pthread_join'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x3b7): undefined reference to `XSync'
main.cpp:(.text._ZN12cimg_library11CImgDisplay6ass ignEv[cimg_library::CImgDisplay::assign()]+0x3ca): undefined reference to `XCloseDisplay'
It looks like I am missing some sort of x library, but I have gone through synaptics and installed everything that I think I need. Does anyone have any suggestions?
Thanks
Jason