Skip to content

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

@UnicycleBloke

Description

@UnicycleBloke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions