CodeBlocks PDCurses Installation

I'm trying to install PDCurses onto CodeBlocks but I can't solve this particular error.
These are the following Build Messages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
||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|
//even more .drectves unrecognized, but not listing for space
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 ===| 


So following the first build message's advice, I tried entering --enable-auto-import in Settings->Compiler Settings->Other Options but then it comes up with -
cc1plus.exe: error: unrecognized command line option "-fenable-auto-import"

Any help appreciated, thanks.
closed account (S6k9GNh0)
You don't install PDCurses into Code::Blocks. You install it into the MinGW build within Code::Blocks. Though you can do this, I suggest making a new MinGW setup and having code::blocks pointing to that.
I'm trying to do the suggestion by chrisname in a previous thread:

1. Open CodeBlocks

2. Navigate to Settings -> Compiler and Debugger...

3. Find the "Search Directories" tab; and add the path where you placed the header (".h") files of PDCurses; e.g.
C:\Program Files\CodeBlocks\PDCurses
C:\Program Files\CodeBlocks\PDCurses\win32

4. Find the "Linker Settings" tab. Click "add" In Link Libraries and type the parths to the libraries, e.g.
C:\Program Files\CodeBlocks\PDCurses\win32\panel.a
C:\Program Files\CodeBlocks\PDCurses\win32\pdcurses.a


See: http://www.cplusplus.com/forum/windows/15935/#msg79105

I'm not very familiar with compilers at all, but thanks for the help.
Last edited on
Topic archived. No new replies allowed.