Problem with architecture in c++

Hello,

I have a problem with my type of architecture (arm64). It can't read the command getch(), saying it is an identified symbol for that architecture.

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

I am using nurses.h and VS code. Any idea of how to change of architecture or any other way to solve this problem would be greatly appreciated.

Thanks.

The error is not related to the architecture. Ignore that part of the error message. Read it as "Undefined symbols: stdscr, wgetch".

I believe wgetch is a curses function. I don't know about stdscr.

I guess that you need to link with libcurses. I don't know how to do that in VS code.

Does that help?

Make sure you’ve included both sqlite3 and -sqlite3 libraries in your header file. Hope it helps

Vijay V

Hindustan Institute of Technology and Science

Problem with architecture in c++
 
 
Q