-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't Build Jinja2Cpp on Windows with Visual Studio 2017 Anymore #75
Comments
That's not a problem in Jinja2Cpp lib itself. Something wrong with compiler configuration/MSVC installation. This message shouldn't be shown during normal build setup process;
Look at this: https://ci.appveyor.com/project/flexferrum/jinja2cpp/build/job/p4g3g5gef22wtujk?fullLog=true |
I'll try repairing my installation of VS2017 and see if that fixes it. In the meantime, though: in my Dockerfile project, I got to compiling the part in the
I'm not using it before initializing it, though, am I? It's talking about code in the initialization step itself. So what should I do here? This is the code it's talking about: // Receive the HTTP response
http::read(socket, buffer, res, ec);
auto insert_result = insert_or_assign(m_cache, query_data, std::make_pair(std::chrono::steady_clock::now(), json::parse(res.body())));
found = insert_result.first; |
Looks like you've made the forward declaration of the |
So I shouldn't have made the function prototype? Or did I do it wrong? Should I have put the definition before the function I'm using it in, too? |
I think instead of |
@DragonOsman , everything should be fine with auto.
In general, regarding to function templates, the full function template definition should be visible before any usage. There are some exceptions from this rule, but not in your case. So, will you explicitly specify the return type or replace it with |
I'll leave the function prototype, and just define the function before |
With C++14/C++17 you don't need to specify trailing return type for |
I want to try building Jinja2Cpp on Windows with MinGW g++ instead. How should I edit the CMakeLists.txt file for this? |
MinGW build is currently not tested for Jinja2Cpp. |
What about clang++ on Windows? I can install LLVM+Clang. |
I'm subscribing to the CMake user mailing list. I'll try asking there for help on the issue that I originally opened this thread for. |
Just now, just to check, I tried to build the library on Windows again by cloning fresh into
Jinja2Cpp
, updating the submodule, and then runningcmake -DCMAKE_INSTALL_PREFIX=../install
and got this result:When I did it before, it worked fine. Why is there this error now?
The text was updated successfully, but these errors were encountered: