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 #1

Open
petertheprocess opened this issue Jul 11, 2020 · 0 comments
Open

Build Error #1

petertheprocess opened this issue Jul 11, 2020 · 0 comments

Comments

@petertheprocess
Copy link

When I run ‘make’, it seems something wrong in the code.

Random Map Generator build starts...
g++ src/map.cpp -O3 -c -o build/map.o
src/map.cpp: In member function ‘int Map::getBlackPixelNumber()’:
src/map.cpp:77:10: error: ‘total_pixel_number’ does not name a type
     auto total_pixel_number = Map::map.rows * Map::map.cols;
          ^
src/map.cpp:78:10: error: ‘total_black_pixel_number’ does not name a type
     auto total_black_pixel_number = total_pixel_number - countNonZero(Map::map)
          ^
src/map.cpp:79:12: error: ‘total_black_pixel_number’ was not declared in this scope
     return total_black_pixel_number;
            ^
makefile:18: recipe for target 'build/map.o' failed
make: *** [build/map.o] Error 1
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