Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7580111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:50:05+00:00 2026-05-30T17:50:05+00:00

My code is identical to this question I asked earlier so there’s no point

  • 0

My code is identical to this question I asked earlier so there’s no point in duplicating it here

This is the error I am getting:

Undefined symbols for architecture x86_64:
  "_stdscr", referenced from:
      _screen_init in screen.o
  "_werase", referenced from:
      _screen_init in screen.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I’ve had this error in the past and I feel like it has something to do with a duplicate function name or something, but I have no idea how to debug this.

EDIT:

After adding the libncurses.dylib file to my project, the errors discussed above have disappeared, but a new error has emerged when I call screen_init(); in my main.cpp:

// main.cpp

#include "screen.h"

int main(){
   screen_init();
}

// new error

Undefined symbols for architecture x86_64:
  "screen_init()", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Pretty much the same error except now in my main. Is there another library I am missing? These errors are very mysterious and not very helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:50:06+00:00Added an answer on May 30, 2026 at 5:50 pm

    I guess you need to add the library to your link phase, if you are going with XCode you should add it in project details:

    • choose project details
    • choose build phases tab
    • open link binary with libraries part
    • click the plus symbol
    • add libncurses.dylib to your project.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked the question this way because I can imagine that there's a potentially
This is similar to a question I asked earlier . The answers to that
My question is identical to two previously asked questions LINQ TO DataSet: Multiple group
This question comes from a need to ensure that changes I've made to code
Please check this almost identical question first: jQuery Sortable List - scroll bar jumps
In asking a question about reflection I asked: Nice answer. But there is a
I know this question has been asked so many times before but I couldn't
This is a sequel question (on a different topic) to an earlier question .
ok, yesterday I posted almost identical question here , but I wasn't able to
By definition I had to post this question. I received the error on this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.