- Joined
- Mar 18, 2013
- Messages
- 3
- Reaction score
- 0
- Points
- 1
I am using XCode and a library called CImg which uses X11. When I run this program:
include "CImg.h"
using namespace cimg_library;
int main() {
CImg image("snail.bmp");
}
I get these errors:
Undefined symbols: "_XUnlockDisplay", referenced from:
"_XGetVisualInfo", referenced from: cimg_library::CImgDisplay::_assign(unsigned int, unsigned int, char const*, unsigned int, bool, bool)in main.o
"_XStoreColors", referenced from: cimg_library::CImgDisplay::_set_colormap(unsigned long&, unsigned int)in main.o
etc.
I think XCode doesn't know where my X11 is, and to be honest I'm not sure I've installed it correctly. I think it is supposed to be in opt/X11 but I don't see it.
Any idea of how to fix this?
include "CImg.h"
using namespace cimg_library;
int main() {
CImg image("snail.bmp");
}
I get these errors:
Undefined symbols: "_XUnlockDisplay", referenced from:
"_XGetVisualInfo", referenced from: cimg_library::CImgDisplay::_assign(unsigned int, unsigned int, char const*, unsigned int, bool, bool)in main.o
"_XStoreColors", referenced from: cimg_library::CImgDisplay::_set_colormap(unsigned long&, unsigned int)in main.o
etc.
I think XCode doesn't know where my X11 is, and to be honest I'm not sure I've installed it correctly. I think it is supposed to be in opt/X11 but I don't see it.
Any idea of how to fix this?