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

Many compilation errors on Ubuntu 18.04 compiling with GCC 7.5.0 #26

Open
UnicycleBloke opened this issue Dec 30, 2020 · 1 comment
Open

Comments

@UnicycleBloke
Copy link

Excited to receive the book. Disappointed to clone the examples and find that they simply did not build at all.

There are several errors in which memset or memcpy is not declared in scope. Can be fixed by including . I was also required to include <time.h> or <sys/time.h> here and there because some struct was declared but not defined.

There are several errors in which goto by passes the initialisation of local variables in a vglLoadDDS(). This might be legal C but is not C++, and the file is called vdds.cpp. I moved the declarations. But seriously? I haven't used goto in thirty years, if ever.

The particle simulator shader program made use of a STRINGIZE macro, which totally failed on the #version directive. All other examples appear to simply concatenate quoted strings.

My changes were just hacked in, so I won't submit a pull request.

@cppimmo
Copy link

cppimmo commented May 31, 2021

I managed to fix this for GCC 11.1.0. If I can check that it compiles on VisualC++ I may submit a pull request.

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

2 participants