Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » How to compile with MSVC... is it possible?
How to compile with MSVC... is it possible? [message #58248] |
Mon, 04 April 2022 20:31  |
novak
Messages: 3 Registered: April 2022
|
Junior Member |
|
|
I ran the MSVC command prompt and copied the path, include and lib directories from 'set', and added to 'Build Methods' in TheIDE. Also added the release compile flags /O2, /MT, /GR- and /D_HAS_EXCEPTIONS=0 and start my attempt to compile the UWord sample.
I quickly figured out U++ needs RTTI and it also depends on exceptions, so I removed the last two compile options. I wonder if U++ really needs exceptions or this can be removed?
But there are many compile errors. For example:
core/Defs.h line 214:
template <typename T>
auto pick(T&& x) noexcept -> decltype(std::move(x)) { return std::move(x); }
- eror C3646: 'noexcept' : unknown override specifier
- error C2143: syntax error : missing ';' before '->'
... and a few more
core/Fn.h line 13:
template <class T>
constexpr const T& min(const T& a, const T& b)
{
return a < b ? a : b;
}
- error C2143: syntax error : missing ';' before 'const'
- error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
... and a few more
I use VS2013. Is it too old? I'm using wxWidgets and I'm looking around a bit.
|
|
|
|
|
|
Re: How to compile with MSVC... is it possible? [message #58287 is a reply to message #58248] |
Sun, 10 April 2022 23:00  |
novak
Messages: 3 Registered: April 2022
|
Junior Member |
|
|
You need to run Visual Studio at least once, and register it, and let it set up things before the compiler will work. Also it's better to do this installation on another computer and extract it from there to keep things clean because it has it's tentacles everywhere on the disk and in the registry. It's not too much of a problem but I dont feel like doing this now and I'm happy for the moment with MSVC 13 and wxWidgets and Clion on Windows 7.
I like small filesizes, a minimal wxWidgets program is, after removing the obvious bloat (like exceptions), 1.5 MB. With PureBasic, the same program is 50kb. So there must be a lot of things in between there that wxWidgets has that I probably don't need. And in any case with Clang there is a 4 MB "entry fee" just for trying.
But after they start waving this Ukrainian flag on the website (this business is just a continuance of the Covid cult) together with some dumb and ignorant commentary, I'm not too proud to be using wxWidgets and I wonder if there's anything better, but I haven't found anything yet... the other options, including U++, all have too many downsides, and I'm probably not capable of writing my own "OS abstraction library".
|
|
|
Goto Forum:
Current Time: Fri Apr 25 20:31:33 CEST 2025
Total time taken to generate the page: 0.01116 seconds
|