Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error: Invalid Use of WINDOW #36

Open
jasonaepli opened this issue Dec 29, 2024 · 0 comments
Open

Build Error: Invalid Use of WINDOW #36

jasonaepli opened this issue Dec 29, 2024 · 0 comments

Comments

@jasonaepli
Copy link

When attempting to build directly after cloning repo the following build errors are encountered:

CppND-System-Monitor/src/ncurses_display.cpp:75:56: error: invalid use of incomplete type ‘WINDOW’ {aka ‘struct _win_st’} │ 75 | mvwprintw(window, ++row, pid_column, (string(window->_maxx-2, ' ').c_str()));

CppND-System-Monitor/src/ncurses_display.cpp:85:54: error: invalid use of incomplete type ‘WINDOW’ {aka ‘struct _win_st’} │ 85 | processes[i].Command().substr(0, window->_maxx - 46).c_str());

CppND-System-Monitor/src/ncurses_display.cpp:98:45: error: invali│jaepli@jaepli-HP-Linux:~/SANDBOX/Udactiy/CppND-System-Monitor/src$ ls
d use of incomplete type ‘WINDOW’ {aka ‘struct _win_st’} │format.cpp main.cpp process.cpp system.cpp
98 | newwin(3 + n, x_max - 1, system_window->_maxy + 1, 0);

This build error can be resolved by use of getmaxx() and getmaxy() instead of _maxx and _maxy
Screenshot from 2024-12-28 19-58-20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant