Linking Libs

Hi, i have Dev-CPP and MSCPP, i have downloaded the GLUI lib, so that i can integrate buttons and stuff into my apps. When i link this lib in BOTH my compilers, MSCPP, says that the linker performed and illegal operation and DEV-CPP says that it couldnt find the lib file. Please tell me what im doing wrong… I have put the .h file into the include dir and the .lib file into the lib directorie…