Code::Blocks Forums

User forums => Help => Topic started by: test_test_testing on December 23, 2008, 11:31:16 pm

Title: Using ncurses with code::blocks
Post by: test_test_testing on December 23, 2008, 11:31:16 pm
I have code::blocks 8.02 with GCC compiler on ubuntu linux. How do I add the ncurses library to code::blocks? Thanks.
Title: Re: Using ncurses with code::blocks
Post by: alphaman on January 22, 2009, 11:40:24 pm
I am also looking for info on how to do this. looking to make my program look a whole lot better. Any information you have would be great
Title: Re: Using ncurses with code::blocks
Post by: abdurrm on December 15, 2009, 08:12:02 pm
me too  :)
Title: Re: Using ncurses with code::blocks
Post by: stahta01 on December 15, 2009, 08:20:32 pm
Step 1: Learn the difference between an IDE/Editor(Code::Blocks is an IDE with Builtin In Editor) and a Compiler(GCC is a Compiler).
Step 2: Learn that a library is used by a Compiler/Linker.
           Extra Work Learn what a Linker means.
Step 3: Learn the name of the Compiler you are using.
Step 4: Go to a website that supports your Compiler/Library
Step 5: Read/Post your Question on that SITE!

Tim S.
Title: Re: Using ncurses with code::blocks
Post by: MortenMacFly on December 15, 2009, 08:35:59 pm
- Setup a basic ncurses project (you can start with the console wizard)
- Apply the compiler flags as needed by ncurses under project options -> compiler
- Apply the compiler include directories as needed by ncurses under project options -> compiler
- Apply the linker flags as needed by ncurses under project options -> linker
- Apply the linker include directories as needed by ncurses under project options -> linker
- Apply the linker libraries to link against as needed by ncurses under project options -> linker
- compile... fix bugs... run the application

Notice this applies to any library you want to use. Just replace "ncurses" with the name of the desired library you want to use. Consult the C::B documentation (http://www.codeblocks.org/docs/main_codeblocks_en.html) for more information about setting up compiler/linker options.

If you still unsure, ask the ncurses dev team (we don't provide support for others than C::B itself) about what compiler/linker parameters to apply.

If still unsure do what stahta01 said.

Notice once you are done you may want to provide a sample project to the C::B team to create a wizard out of it or even the wizard itself. You can start by modifying the console wizard for that purpose.
Title: Re: Using ncurses with code::blocks
Post by: jmanley on January 24, 2014, 12:14:14 am
Here's an excellent guide: http://nixtuts.info/programming/NcursesTutorial.html Hope it helps!