|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Using VisualStudio as a main IDE (Compilation errors)
Using VisualStudio as a main IDE [message #51271] |
Tue, 26 February 2019 20:14 |
Lucas
Messages: 6 Registered: February 2019 Location: UK
|
Promising Member |
|
|
Hi.
First of all I would like to introduce myself here on this forum.
My Name is Lucas and I am really grateful I can join this community and be able to use UPP. I have found this library by an accident when I decided I will not download absolutely MASSIVE (like 30GB or so) Qt dev kit, just to make some GUI. I saw yours examples and I fell in love with this simplicity, quickness of using, compilation times, lack of shenanigans like in case of MOC in Qt. Basically UPP became my "weapon of choice" to everything that I do that requires GUI.
The problem that I would like to write here about is that I need to use VisualStudio IDE. I have no problem using TheIDE especially the fantastic layout designer, but I am in process of learning VisualStudio as a part of preparing for a new job role. I am rather yet a beginner programmer and I have found a lot of difficulties in not only compiling whole library in VisualStudio but even using it.
Are there any compiler options that I have to use to make it works? I am getting lots of ambiguity errors (mainly json.h). When I am using TheIde code compiles with no problem using the same compiler. However when I try to manually include json.h I get the same errors in the IDE. My guess is that I have to define some macros for conditional compilation.
I will be really grateful for any help.
|
|
|
|
|
|
|
|
Re: Using VisualStudio as a main IDE [message #51338 is a reply to message #51271] |
Mon, 11 March 2019 15:04 |
mr_ped
Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
I haven't seen VS for long time, but unless they removed it completely, it's maybe possible to use `umk` as project build tool.
Although that doesn't itself make the project management easier, depends, what you need and how you update your project, not sure if with umk you would have to manually keep ".upp" project file up to date, or it would be possible to extract that from VS project data.
Another option is as usually, go to TheIDE, switch "verbose output" ON, do the full rebuild, store the logs and then do the verbose builds in VS and look for differences.
|
|
|
Re: Using VisualStudio as a main IDE [message #51350 is a reply to message #51338] |
Wed, 13 March 2019 19:05 |
Lucas
Messages: 6 Registered: February 2019 Location: UK
|
Promising Member |
|
|
I've set the compiler to use c++17 and last errors are gone but I got some new ones.
so it looks like this right now:
1>------ Build started: Project: HW, Configuration: Release x64 ------
1>main.cpp
1>c:\users\canis\dropbox\cpp\upp\uppsrc\core\json.h(4): error C2445: result type of conditional expression is ambiguous: types 'const char [5]' and 'Upp::String' can be converted to multiple common types
1>c:\users\canis\dropbox\cpp\upp\uppsrc\core\json.h(4): note: could be 'const char *'
1>c:\users\canis\dropbox\cpp\upp\uppsrc\core\json.h(4): note: or 'Upp::String'
1>c:\users\canis\dropbox\cpp\upp\uppsrc\core\json.h(5): error C2445: result type of conditional expression is ambiguous: types 'const char [5]' and 'Upp::String' can be converted to multiple common types
1>c:\users\canis\dropbox\cpp\upp\uppsrc\core\json.h(5): note: could be 'const char *'
1>c:\users\canis\dropbox\cpp\upp\uppsrc\core\json.h(5): note: or 'Upp::String'
1>Done building project "HW.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
And this is my project in zip file: https://www.dropbox.com/s/c25kyrfox9u1rd1/HW.zip?dl=0
|
|
|
Goto Forum:
Current Time: Fri Dec 13 23:40:06 CET 2024
Total time taken to generate the page: 0.02205 seconds
|
|
|