Undefined reference to `stdscr' while using ncurses

前端 未结 6 991
被撕碎了的回忆
被撕碎了的回忆 2020-12-02 01:58

I am trying to compile my code in Ubuntu 11.10 and getting these errors and more.So far by googling it I think it is a linking error. Specifically, there have been suggestio

6条回答
  •  醉梦人生
    2020-12-02 02:35

    user1246043,

    I've been having a similar problem. Basically, I can't compile wiht g++ 4.5 or g++ 4.6, so I installed g++ 4.4 and used that. This specifically solved my problem with linking to ncursesw.

    # Makefile:
    CXX=g++-4.4                                                                  
    CXXLIBS=-lncursesw                                                           
    CXXFLAGS=-Wall
    # Other stuff omitted
    

提交回复
热议问题