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

Bug: compilation error. #5827

Open
Ornito opened this issue Oct 16, 2024 · 2 comments
Open

Bug: compilation error. #5827

Ornito opened this issue Oct 16, 2024 · 2 comments
Labels
Bug Global flag to mark a deviation from expected behaviour Build Global flag to mark build relates topics

Comments

@Ornito
Copy link

Ornito commented Oct 16, 2024

Hi!
I'm trying to compile assimp on windows 10 with mingw10 32 bits but I get this compilation error.

C:\Users\Laurent et Christian\assimp-assimp-8b9ed34\code\Common\DefaultIOStream.cpp:160:24: error: aggregate 'Assimp::DefaultIOStream::FileSize() const::_stat32 fileStat' has incomplete type and cannot be defined
160 | struct _stat32 fileStat;
| ^~~~~~~~
C:\Users\Laurent et Christian\assimp-assimp-8b9ed34\code\Common\DefaultIOStream.cpp:162:19: error: '_fstat32' was not declared in this scope; did you mean '_stat32'?
162 | int err = _fstat32(_fileno(mFile), &fileStat);
| ^~~~~~~~
| _stat32

@Ornito Ornito added the Bug Global flag to mark a deviation from expected behaviour label Oct 16, 2024
@Ornito
Copy link
Author

Ornito commented Oct 18, 2024

I had to replace _stat32 by _stat and _fstat32 now it compile.

@kimkulling kimkulling added the Build Global flag to mark build relates topics label Nov 8, 2024
@tellypresence
Copy link
Contributor

Good to hear it's working for you, is it OK to close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Global flag to mark a deviation from expected behaviour Build Global flag to mark build relates topics
Projects
None yet
Development

No branches or pull requests

3 participants