Author Topic: Using ncurses with code::blocks  (Read 23203 times)

test_test_testing

  • Guest
Using ncurses with code::blocks
« 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.

alphaman

  • Guest
Re: Using ncurses with code::blocks
« Reply #1 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

abdurrm

  • Guest
Re: Using ncurses with code::blocks
« Reply #2 on: December 15, 2009, 08:12:02 pm »
me too  :)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Using ncurses with code::blocks
« Reply #3 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Using ncurses with code::blocks
« Reply #4 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

jmanley

  • Guest
Re: Using ncurses with code::blocks
« Reply #5 on: January 24, 2014, 12:14:14 am »
Here's an excellent guide: http://nixtuts.info/programming/NcursesTutorial.html Hope it helps!