Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
novak is currently offline  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 #58250 is a reply to message #58248] Tue, 05 April 2022 10:54 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

I think it is too old. 2013 is probably do not support c++14 and we requiere that standard. Could you try installing latest Visual Studio 2022 (Community Edition) and try again?

Klugier


U++ - one framework to rule them all.
Re: How to compile with MSVC... is it possible? [message #58254 is a reply to message #58248] Tue, 05 April 2022 20:53 Go to previous messageGo to next message
novak is currently offline  novak
Messages: 3
Registered: April 2022
Junior Member
That's a bit of a hassle as Visual Studio is registerware and it, since some time, won't load the login page that uses the built-in Internet Explorer. They probably do that on purpose to get you to update your OS.
So I have to install this on a VM with windows 10 and meticuously copy over the needed files to make it portable and usable.

But I'm curious, what is the executable size for an average Ultimate++ program like the UWord sample? And without exceptions? Or are they really needed?
Re: How to compile with MSVC... is it possible? [message #58286 is a reply to message #58254] Sun, 10 April 2022 19:52 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

In order to use U++ you do not need to launch Visual Studio. Installation with C++ components is sufficient. After that you should launch TheIDE and use auto-setup for MSVC detection. Also, we bundle Clang compiler with standard Windows distribution, so possessing Visual Studio is optional.

What is your current operating system and what is the reason why you do not want to update your OS?

Klugier



U++ - one framework to rule them all.
Re: How to compile with MSVC... is it possible? [message #58287 is a reply to message #58248] Sun, 10 April 2022 23:00 Go to previous message
novak is currently offline  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".
Previous Topic: Exit app from menu on control in Tab
Next Topic: Custom build steps -issue on Windows
Goto Forum:
  


Current Time: Tue Apr 16 12:06:02 CEST 2024

Total time taken to generate the page: 0.02073 seconds