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

Cannot compile on Windows 10 using SLN #623

Closed
2 of 5 tasks
gesior opened this issue Nov 11, 2023 · 4 comments
Closed
2 of 5 tasks

Cannot compile on Windows 10 using SLN #623

gesior opened this issue Nov 11, 2023 · 4 comments
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@gesior
Copy link
Contributor

gesior commented Nov 11, 2023

Priority

Low

Area

  • Data
  • Source
  • Docker
  • Other

What happened?

@Giorox
After this commit #611 I cannot compile anymore on Windows 10 using .sln file.

image

It says that there is a bug in shellapi.h as it uses EXTERN_C which is not defined.
This file is part of Windows 10 SDK. I've installed 3 available versions. All have same problem:
image

After removing:

#include <shellapi.h>

It works again.

IDK what fixed this commit for Giorox, but it looks like it may break build on other machines.

Tested debug/release and 32/64 bit version. Before this commit all worked, after commit all have same problem.

Evaluated preprocessor config:
image
Maybe there is something different, which makes my shellapi.h does not load winnt.h or guiddef.h (EXTERN_C is defined in these 2 files).

Anyone has idea what can be added in Giorox VS or missing in mine?

What OS are you seeing the problem on?

Windows

Code of Conduct

  • I agree to follow this project's Code of Conduct
@gesior gesior added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Nov 11, 2023
@Giorox
Copy link
Contributor

Giorox commented Nov 11, 2023

This is very weird. I'm not home currently, but when I come back I'll check my project properties, pre-processor configs etc to see if we can find some difference that might cause this.

I am on 64bit Windows, not sure if that might have something to do with this.

@gesior
Copy link
Contributor Author

gesior commented Nov 12, 2023

Test it few more times. Always with Rebuild Solution.

With this line:

#include <timeapi.h>

it builds Release, but does not build Debug. There are some errors about redefinition of some variables.

With this line:

#include <shellapi.h>

it does not build at all.

I will install clean Windows 10 in VM and run VS2022 there.

@mehah mehah closed this as completed in 82ecd7c Nov 14, 2023
@gesior
Copy link
Contributor Author

gesior commented Nov 15, 2023

After last Mehah commit I can compile all versions (release/debug 32/64) on my Windows 10 and Ubuntu 22.04.
@Giorox Can you confirm that it works on your VS2022 too?

@Giorox
Copy link
Contributor

Giorox commented Nov 15, 2023

After last Mehah commit I can compile all versions (release/debug 32/64) on my Windows 10 and Ubuntu 22.04.
@Giorox Can you confirm that it works on your VS2022 too?

I can compile aswell over here, seems like that fixes it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

2 participants