   Help! pdcurses lib error  w/ code::blocks ide
  Ok, I am trying to use the pdcurses library using the code::blocks IDE, I am using code that was given in a tutorial, the syntax looks all legit. #include "curses.h"    char *map[]={    "###############",    "# # #",    "#   #",    "# ### ####",    "#### ###   #  #",    "##  #",    "##  #",    "#   #",    "##  #",    "###############"};int main() {    //initialize curses    keypad(initscr(),1);    curs_set(0);    //player's starting coordinates    int y=1;    int x=1;    //draw map    int yy;    int xx;    for (yy=0;yy<10;yy++)   for (xx=0;xx<15;xx++)  mvaddch(yy,xx,map[yy][xx]);    //draw player    mvaddch(y,x,'@');    //wait for key press before leaving    getch();    //clean up after we've finished using curses    return endwin();}But I am getting a error on build:||warning: auto-importing has been activated without --enable-auto-import specified on the command line.|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|||Warning: .drectve `-defaultlib:LIBC ' unrecognized|||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|fu000001.o:(.idata$2+0xc)||undefined reference to `_libmsvcrt_a_iname'|fu000004.o:(.idata$2+0xc)||undefined reference to `_libmsvcrt_a_iname'|fu000006.o:(.idata$2+0xc)||undefined reference to `_libmsvcrt_a_iname'|fu000008.o:(.idata$2+0xc)||undefined reference to `_libmsvcrt_a_iname'|||Info: resolving __iob by linking to __imp___iob |||Info: resolving __pctype by linking to __imp___pctype |||Info: resolving ___mb_cur_max by linking to __imp____mb_cur_max |nmth000000.o:(.idata$4+0x0)||undefined reference to `__nm___iob'|nmth000015.o:(.idata$4+0x0)||undefined reference to `__nm___pctype'|nmth000025.o:(.idata$4+0x0)||undefined reference to `__nm____mb_cur_max'|||=== Build finished: 7 errors, 67 warnings ===|I have added pdcurses directory to the settings -- > compiler settings --> search directories - Linker and compilerAnd I have added the lib to the project ---> build options -- link libries -- pdcurses.libWhat am I doing wrong?  The IDE is setup with MinGW (that it came with) and it ran hello world fine.   
  Ok, I figured out the first part of my error.. Apparently the windows pdcurses library on sourceforge was in a dll / lib format, that mingw doesn't like. I had to download the source code for pdcurses and build that first. Ok everything there went fine, but now I am getting this error:obj\Debug\main.o||In function `main':|J:\Rogue like project\curseEX\curseyou\main.c|34|undefined reference to `_PDC_chadd'|J:\Rogue like project\curseEX\curseyou\main.c|36|undefined reference to `_PDC_chadd'|||=== Build finished: 2 errors, 0 warnings ===|And I can't figure it out for the life of me.  I know it's in referrence to: mvaddch(y,x,'@');but why it's not working?  I am running a code::blocks ide with mingw 5.2 on a windows 32bit os.;  Yeah!!! Fixed the thing! Damn, directory error. When I built the pdcurses static library i set my directories to where the pdcurses.a was (which was fine for the linker) but not for the include directories. 2.5 hours wasted on this crap...finally I can focus on the code... oh wait its time for bed a 4 freakn AM (I have to be at work in 5 hours :O   