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

compile error #6

Open
mumin16 opened this issue Nov 24, 2015 · 2 comments
Open

compile error #6

mumin16 opened this issue Nov 24, 2015 · 2 comments

Comments

@mumin16
Copy link

mumin16 commented Nov 24, 2015

in vs2015,

TheoraDataSource.cpp(73): error C2228: left of '.__pos' must have class/struct/union

TheoraDataSource.cpp(92): error C2228: left of '.__pos' must have class/struct/union

@kspes
Copy link
Collaborator

kspes commented Nov 24, 2015

which platform are you building for? this is linux code:

#ifdef _LINUX //fpos_t is not a scalar in Linux, for more info refer here: https://code.google.com/p/libtheoraplayer/issues/detail?id=6
fpos_t fpos = { 0 };
fpos.__pos = byte_index;
#else
fpos_t fpos = byte_index;
#endif

Are you maybe compiling android target? switch to win32 in this case.

@borisblizzard
Copy link
Collaborator

It might be partly due to the VS2015 compiler. Or maybe some preprocessors aren't set up properly.

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

3 participants