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.
|
|
|
Goto Forum:
Current Time: Thu Sep 21 23:19:31 CEST 2023
Total time taken to generate the page: 0.01939 seconds
|