Skip to content

fix build on WSL Ubuntu 20.04 GCC#32

Merged
adamstark merged 1 commit into
adamstark:developfrom
BenjaminHinchliff:master
Oct 17, 2020
Merged

fix build on WSL Ubuntu 20.04 GCC#32
adamstark merged 1 commit into
adamstark:developfrom
BenjaminHinchliff:master

Conversation

@BenjaminHinchliff

@BenjaminHinchliff BenjaminHinchliff commented Aug 29, 2020

Copy link
Copy Markdown
Contributor

I had a compile error due to memcmp not being declared in the scope.
OS: WSL Ubuntu 20.04 (hosted on Windows 10 Build 20190.rs_prerelease.200807-1609)
Compiler: GCC 9.3.0
error: memcmp was not declared in this scope

let me know if you need any more information on my build environment.

Hopefully, this bug can be replicated. These changes fixed the build on my repo and so I wanted to make sure others didn't have the same problem.

list of changes:
added <cstring> header to include memcmp
not a bug additionally changed <assert.h> to the slightly more c++ esque modern <cassert>

added <cstring> header to include memcmp
additionally changed <assert.h> to the slightly more modern <cassert>
@adamstark adamstark changed the base branch from master to develop October 17, 2020 13:16
@adamstark adamstark merged commit 01ab4e2 into adamstark:develop Oct 17, 2020
@adamstark

Copy link
Copy Markdown
Owner

Thanks for this! I've just merged it in :)

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

Successfully merging this pull request may close these issues.

2 participants