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

error C2872: 'byte': ambiguous symbol - Possible solution. #75

Closed
AlC65 opened this issue Mar 4, 2020 · 3 comments
Closed

error C2872: 'byte': ambiguous symbol - Possible solution. #75

AlC65 opened this issue Mar 4, 2020 · 3 comments

Comments

@AlC65
Copy link

AlC65 commented Mar 4, 2020

If anyone is getting the 'byte': ambiguous symbol error message a possible solution is given here:
https://developercommunity.visualstudio.com/content/problem/93889/error-c2872-byte-ambiguous-symbol.html
If you declare 'using namespace std;' in your main.cpp place it after #include"olcPixelGameEngine.h".
This will place the declaration after #inlcude<windows.h> contained in olcPixelGameEngine.h.

#define OLC_PGE_APPLICATION
#include "olcPixelGameEngine.h"
using namespace std;

EDIT: This only applies to c++17 and up.

@n8behavior
Copy link

Great find! Those are hard to track down. Which is why I just had to add a link to this great javidx9 video ;)

Forbidden C++



Love the channel, the work, and community...keep it coming!!

@OneLoneCoder
Copy link
Owner

Im gonna regret making that video aren't I? XD

@OneLoneCoder
Copy link
Owner

Tidying up so closing this.

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

No branches or pull requests

3 participants