Hi, I really need help. I've been trying to fix it for a long time.
I've been trying to compile ReactivePlusPlus, but for some reason it doesn't work.
Could you please help me to find a solution?
I did as described BUILDING.md and it didn't work.
I'll show below the erros I found and what I did to create my project.
These are the errors messages when I try to build on Visual Studio 2022 version 4.8.04161:
Severity Code Description Project File Line Suppression State
Error C3539 a template-argument cannot be a type that contains 'auto' DemoRPP D:\cpp\DemoRPP\DemoRPP\rpp\observers\specific_observer.hpp 81
Error C3539 a template-argument cannot be a type that contains 'auto' DemoRPP D:\cpp\DemoRPP\DemoRPP\rpp\observers\specific_observer.hpp 87
Error C3539 a template-argument cannot be a type that contains 'auto' DemoRPP D:\cpp\DemoRPP\DemoRPP\rpp\observers\specific_observer.hpp 94
Error C3539 a template-argument cannot be a type that contains 'auto' DemoRPP D:\cpp\DemoRPP\DemoRPP\rpp\observers\specific_observer.hpp 101
Error C2672 'rpp::details::member_overload<Type,SpecificObservable,rpp::details::subscribe_tag>::subscribe_impl': no matching overloaded function found DemoRPP D:\cpp\DemoRPP\DemoRPP\rpp\operators\fwd\subscribe.hpp 60
Error C2672 'make_specific_subscriber': no matching overloaded function found DemoRPP D:\cpp\DemoRPP\DemoRPP\rpp\operators\fwd\subscribe.hpp 60
This is how I created my project:
(1) Empty C++ project on VS22 > Created main.cpp file ( https://pastebin.com/raw/qMBkwkiM )
main.cpp screenshot: https://ibb.co/fpPbKP6
(2) After that, I changed it to C++20 and later to C++ latest
C++20 project screenshot: https://ibb.co/q9FRGGV
(3) I downloaded the latest release and I added it to my project. rpp_release
Added RPP screenshot: https://ibb.co/3mPkdBk
How I added to my project: Properties > C/C++ > Additional Include Directories.
- I can see that VS recognizes the folders and the lib - I can navigate inside the functions/methods definitions.
- I tried different paths when I added it to my project.
- I tried build x64 - Release and Debug mode
What should I do to fix it?
Thanks in advance
EDIT: VS22 preview is the issue here