-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
WinU Build error #280
Comments
I have no idea what Universal Windows is, but since targeting it gives an error for |
Thanks. The solution:
|
I know what Windows 10 is, I don't know what Universal Window is and why it breaks WinAPI. Anyway, I'm glad that |
WinU = WinAPI |
Sorry to comment when this issue is closed, but I wanted to clear up some details for @VikingExplorer . First off, universal windows apps != WinAPI. A universal windows app is a Windows application that is meant to be run on windows desktops or mobile devices (Win32, x64, ARM). It was first introduced in Windows 8. Universal windows apps use a subset of the full WinAPI to be as compatible as possible on a range of devices. There are also special libraries needed for running as a windows store app. When you create a universal windows project, one of the things you'll notice is that the compiler command line has this define added If you look at a file called winapifamily.h (located somewhere in the Windows SDK) you'll see the following bits of code
So by default, a windows executable is defined as a desktop app and has access the range of the WinAPI available to desktops. By defining To summarize
If you read this, hope it cleared some things up. If you didn't, thats ok too. And if I got any details wrong, please correct me. |
Thanks for clarification, @amc522. |
@amc522, I feel compelled to respond because this is muddling the issue. I started developing for Windows in 1990. You provide lots of details, but nothing that really supports your conclusion. The abstraction level is wrong. The big picture is that WinU is WinAPI for the Win10 family of devices. If one is targeting Windows Desktop, one is not targeting Windows 10 specifically. I have removed text from above, which in retrospective, was an attempt to get C++ developers to consider Windows as a viable target. Arguing about this will undermine the great support we're getting from Victor. |
@amc522 just explained why the WinU is not the WinAPI itself, but a derivative of the WinAPI to which only Windows 8 and above have any access to. Either way this issue is fixed and we should stop with anymore discussion. |
Spartan, no, he didn't. You both seem to be conflating WinU with Windows Store App. WinU is the current WinAPI. Everything with WINAPI_FAMILY* is part of WinU. WinU is WinAPI for the Win10 family of devices. Anything else is there for legacy support. If you feel discussion should stop, simply do not respond with more confusing statements. Maybe a picture would help: https://msdn.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide "With Windows 10 you no longer target an operating system but you instead target your app to one or more device families." |
It seems no one else believes that as far as I've seen (nor do I see how the WinAPI is part of WinU if previous Windows versions can't even support a part of it like the WinAPI and when the WinAPI isn't actually supported naturally on non-PC Windows Operating Systems, don't argue that with me, I don't care and you can't change that), nor do I truly care, and this discussion became useless after the WinU !=WinAPI statement, so what does it matter, the issue was resolved |
:) Spartan, you seem to be having trouble with abstractions. You are conflating "WINAPI_FAMILY*", a preprocessor # define variable, with WinAPI, a completely generic and abstract term meaning "Windows application programming interface". As for the discussion being useless, it was finished 2 days ago with WinU = WinAPI (which is all the detail that Linux people need in this context), and while you claim to not care, you continue to make confusing comments to someone with far more experience in the problem domain. The take-away that random people should know is that CppFormat is an excellent piece of software, written in standard C++11, and that it's written in such a way as to be compatible with every platform. I've successfully built this library for Windows Desktop, Windows Universal, iOS & Android. It will be some time before I get to OSX and Linux, but obviously, it's compatible with those as well. |
Has anyone tried to build this library in a Windows Universal context?
I'm getting:
1>c:\dev\couloir\3plibs\cppformat-2.0.0\format.cpp(740): error C3861: 'LocalFree': identifier not found
1>c:\dev\couloir\3plibs\cppformat-2.0.0\format.cpp(746): error C2065: 'FORMAT_MESSAGE_ALLOCATE_BUFFER': undeclared identifier
Steps to reproduce:
The text was updated successfully, but these errors were encountered: