Home » Community » Newbie corner » Compile Error on Windows 10 (Tried project in tutorial, but get thousands of compile errors.)
Compile Error on Windows 10 [message #50236] |
Sat, 01 September 2018 17:25 |
Krantz
Messages: 4 Registered: September 2018
|
Junior Member |
|
|
Hi, everyone. I am a newbie on Ultimate++.
Today I had my first try on this framework, but even the tutorial program fails to compile. I always get compile errors within the library, like "wchar does not name a type" etc. I thought that problem might be on my compiler (which is MinGW-w64 7.2.0), so I tried the 7z package with mingw, but the problem still exists. I'm desperate now. Anyway, I suppose that I really shouldn't get that many error messages.
|
|
|
|
Re: Compile Error on Windows 10 [message #50249 is a reply to message #50238] |
Mon, 03 September 2018 12:38 |
Krantz
Messages: 4 Registered: September 2018
|
Junior Member |
|
|
Below attached are screenshots of TheIDE and Build-Method dialog when I try to compile the tutorial Gui01.
The problems happened in package Core, where the compiler reports "wchar does not name a type". This screenshot is really using my own MinGW-w64, but the official "upp with mingw" reports exactly the same error message.
I guess some configuration of Upp went wrong, but I cannot figure out what's going on.
[Updated on: Mon, 03 September 2018 19:40] by Moderator Report message to a moderator
|
|
|
Re: Compile Error on Windows 10 [message #50250 is a reply to message #50249] |
Mon, 03 September 2018 19:49 |
|
Klugier
Messages: 1082 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
I think your installation is wrong. Please use bundled MinGW without specifying custom - it is the easiest way for beginners. Because, there is a high change that you mess with manual configuration.
You can download nightly or stable release, but with mingw in the name. All you need to do is unpack your file place it to the easy directory like "C:/Prototable/upp/" and then you can enjoy upp mingw experience - out of the box.
You can download nightly builds here. All files that posses following name pattern upp-mingw-x.7z (Where x is version number) is a good choice for beginners.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Mon, 03 September 2018 23:57] Report message to a moderator
|
|
|
Re: Compile Error on Windows 10 [message #50256 is a reply to message #50250] |
Wed, 05 September 2018 08:07 |
Krantz
Messages: 4 Registered: September 2018
|
Junior Member |
|
|
Compile error again with the official "upp-with-mingw.7z", but somehow I think that I have found the problem.
The compiler on Windows does not really recognize the difference between <String.h> and <string.h>, so as "Core.h" intends to #include <string.h>, the compiler found <String.h> and #include that instead. I even tried to modify it and it becomes #include <cstring>, but in <cstring>, <string.h> is again included, and therefore <String.h> is selected, which causes the same error. But strangely enough, when I leave directory Core, and get back to uppsrc, then compiling Core.h succeeded, so it's the compiler that looks for system headers in brackets in current path '.', which really caused this problem.
Also, as far as I am concerned, 'wchar' is not a type in the standard, so I wonder where did the library define this, since <String.h> does not #include anything before its use of 'wchar' in the declaration of function 'wstrlen'.
[Updated on: Wed, 05 September 2018 08:16] Report message to a moderator
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 12:42:16 CEST 2024
Total time taken to generate the page: 0.11730 seconds
|