Help with Xcode and curses

Hello, i'd like to know how I could compile a code using the curses library and the xcode program. I would like to compile a code with an user input.
I've tried the g++ code in the terminal but it never works. I don't know what I'm doing wrong but I need help with this. Thank you :) (and sorry for any bad language).

Sorry for my ignorance. What are curses library?

It’s something to make certain of us feel old. Or more specifically, “curses is a terminal control library for Unix-like systems, enabling the construction of text user interface (TUI) applications.” I recall trying to make a Hello World type of app using curses on my school’s state-of-the-art green-screen Zenith terminals around 1989, but didn’t yet have the C language skill to make much progress.

Thanks. I'm a little bit smarter than one hour ago…

Here’s a link to PinhasCCT’s previous thread for context.

In that thread I posted instructions on how to get your command-line tool to build. Were you able to get that working? If so, please post details on your latest issue.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

With a simple "Hello World" code, the Build command actually worked. Although I recently made a "4 in line" game with some friends but I can't build that one (between other codes that I i've tested with user inputs).

Thank you eskimo

I've also tried this tutorial but with some codes it doesn't work. The terminal is normal and nothing seems to happen.

With a simple "Hello World" code, the Build command actually worked.

OK.

Although I recently made a "4 in line" game with some friends but I can't build that one (between other codes that I i've tested with user inputs).

There’s not a lot for me to go on here. Please post more details, like:

  • What version of Xcode are you using?

  • On what macOS version?

  • What fails? Compiling? Linker? Or is the failure at runtime?

  • What are the symptoms of that failure?

My general advice for debugging problems like this is to start at each end and work towards the middle. That is, you have a working simple case and a failing complex case. So, either remove code from the latter or add code to the former until you uncover the specific thing that’s triggering the failure.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

In general I just want to compile a c++ code using the curses library in my macOS Big Sur thats all. If you could tell me how can I manage that I would be very grateful :)

Thank you !

macOS Big Sur

Big Sur covers an entire year’s worth of OS releases. Please be more specific.

Also, what version of Xcode are you using?

Also, I posted a curses example in your other thread and that builds for me. Is the problem that this example no longer builds? Or that it doesn’t do what you want? If it’s the former, please post details on what goes wrong when you try to build it. If it’s the latter, please post more details about what you’re trying to accomplish.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Help with Xcode and curses
 
 
Q