O tay -- you got a main.c and header files that define the library with the o files that is compiled code and header files define the functions within them --
||=== mhsetroot, Debug ===|
obj/Debug/main.o||In function `setAlpha':|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|144|undefined reference to `imlib_image_set_has_alpha'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|145|undefined reference to `imlib_create_color_modifier'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|146|undefined reference to `imlib_context_set_color_modifier'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|149|undefined reference to `imlib_get_color_modifier_tables'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|154|undefined reference to `imlib_set_color_modifier_tables'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|156|undefined reference to `imlib_apply_color_modifier'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|157|undefined reference to `imlib_free_color_modifier'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|160|undefined reference to `imlib_context_set_image'|
obj/Debug/main.o||In function `setRootAtoms':|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|174|undefined reference to `XInternAtom'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|175|undefined reference to `XInternAtom'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|180|undefined reference to `XGetWindowProperty'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|186|undefined reference to `XGetWindowProperty'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|193|undefined reference to `XKillClient'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|198|undefined reference to `XInternAtom'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|199|undefined reference to `XInternAtom'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|205|undefined reference to `XChangeProperty'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|209|undefined reference to `XChangeProperty'|
obj/Debug/main.o||In function `setOrginalSizedImageFlippedCenterScreen':|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|285|undefined reference to `imlib_load_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|290|undefined reference to `imlib_context_set_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|291|undefined reference to `imlib_image_get_width'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|291|undefined reference to `imlib_image_get_height'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|298|undefined reference to `imlib_image_flip_horizontal'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|302|undefined reference to `imlib_blend_image_onto_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|307|undefined reference to `imlib_image_flip_vertical'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|311|undefined reference to `imlib_blend_image_onto_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|316|undefined reference to `imlib_image_flip_diagonal'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|322|undefined reference to `imlib_blend_image_onto_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|325|undefined reference to `imlib_context_set_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|326|undefined reference to `imlib_free_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|328|undefined reference to `imlib_context_set_image'|
obj/Debug/main.o||In function `setOrginalSizeImageTiledWithinItself':|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|338|undefined reference to `imlib_load_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|343|undefined reference to `imlib_context_set_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|344|undefined reference to `imlib_image_get_width'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|344|undefined reference to `imlib_image_get_height'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|349|undefined reference to `imlib_context_set_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|354|undefined reference to `imlib_image_tile_horizontal'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|367|undefined reference to `imlib_blend_image_onto_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|373|undefined reference to `imlib_image_tile_vertical'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|385|undefined reference to `imlib_blend_image_onto_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|390|undefined reference to `imlib_image_tile'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|402|undefined reference to `imlib_blend_image_onto_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|406|undefined reference to `imlib_context_set_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|407|undefined reference to `imlib_free_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|409|undefined reference to `imlib_context_set_image'|
obj/Debug/main.o||In function `setOrginalSizeImageCenterScreen':|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|418|undefined reference to `imlib_load_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|423|undefined reference to `imlib_context_set_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|424|undefined reference to `imlib_image_get_width'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|424|undefined reference to `imlib_image_get_height'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|430|undefined reference to `imlib_blend_image_onto_image'|
/home/userx/projects/c/mhsetroot/mhsetroot/main.c|443|undefined reference to `imlib_blend_image_onto_image'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
in geany I will not and do not get this error because it already knows where to look for everything in accordence to a main.c declarations
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <Imlib2.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "functions.h"
void main (void)
{
foo bar ......
exit 0;
}
geany already knows where the is at and the is at to look for them and the libs and everything it needs just provide the proper command line args and it compiles accordingly.
Whereas CodeBlocks lacks in this simple set up. the pogram already knows it is on a linux but it does not know where anything is at on linux include files or libs for some strange reason. (lack of coding it to know that possibly)
so what do I got a write in this code blocks app to tell it where the headers are and libs within a linux pc so I do not get this error savy? :-\
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <Imlib2.h>
the libs to that in /usr/lib/.... where Linux puts its Libraries
still trying to get it to work