Author Topic: Compile with curses.h  (Read 11580 times)

Offline luckymancvp

  • Single posting newcomer
  • *
  • Posts: 3
Compile with curses.h
« on: February 22, 2009, 07:08:54 am »
 How to me compile code with curses.h. Console command: gcc -g <file.c>  -lcurse.  How to add extend "-lcurse"
Please help me.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5241
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Compile with curses.h
« Reply #1 on: February 22, 2009, 07:13:23 am »
How to me compile code with curses.h. Console command: gcc -g <file.c>  -lcurse.  How to add extend "-lcurse"
Please help me.
Menu->Project->build options.

Then in the "Linker setting"

You can add it to "Other linker options".
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline luckymancvp

  • Single posting newcomer
  • *
  • Posts: 3
Re: Compile with curses.h
« Reply #2 on: February 22, 2009, 09:31:24 am »
Oh, thanks you very muck. Thanks , thanks, thanks.
You don't know I have done this project  for 3 days, but I have nothing.

Thanks, thanks

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5241
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Compile with curses.h
« Reply #3 on: February 22, 2009, 09:34:59 am »
Oh, thanks you very muck. Thanks , thanks, thanks.
You don't know I have done this project  for 3 days, but I have nothing.

Thanks, thanks
Welcome to this forum!
You are welcome!
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.