I have always been able to compile a custom copy of mapbox-gl-native, but with the installation of Xcode 12 this has broken. I am getting the following errors:
No matching function for call to 'get'
How can I fix this C++ error that is showing? I am assuming this is happening because of updated Xcode tools.
Related
In C++ within Xcode I am using curlpp, yet I get prompted with the following error: Undefined symbol: curlpp::Cleanup::Cleanup(). I've read that I must add the following flags to the compiler: -lcurlpp, -lcurl. Yet, once I have added them, I still get the same issue.
Has anyone ever gotten FastMM4BCB.cpp to compile and work successfully with C++ Builder 10.1 or later?
I am using 10.2.3 and I keep getting the following error when I try and compile it in my application:
[C++ Error] typeinfo.h(154, 2): E2367 Can't inherit RTTI class from non-RTTI base 'exception'
It has been this way for YEARS and I can't seem to find a fix. I am trying to track down a memory leak issue.
I am working through some example code from Lazar and Penea, Mastreing Qt5:
https://github.com/PacktPublishing/Mastering-Qt-5
I think I am starting to understand the code, but I am stuck with a compilation error in the method "addAlbum" in the class "AlbumModel", The offending line is
unique_ptr<Album> newAlbum(new Album(album));
which yields the error message
error: use of deleted function ‘Album::Album(const Album&)’
unique_ptr<Album> newAlbum(new Album(album));
^
I am using CMake 3.10.2 and cpp 7.5.0. I presume the github code is correct, so this error is a bit puzzling. Although there are a lot of "use of deleted function" discussions here on stackoverflow, I have not been able to determine the cause of the error.
I'm getting the 'MSB6006 "CL.exe" exited with code 2' error. The problem is that my code used to work fine. The issue came when I tried to add another library from xtensor (the xtensor-blas) and I couldn't get it to work correctly. I just erased everything I tried to add and get a clean run, but it now fails every time.
While trying to compile the Error List says things like "C1083 fatal error: cannot open source file: 'files that I have deleted'". Whenever I stop the build, it then only gives the MSB6006 error.
It has become extremely frustrating since my code is identical to what it used to be and now doesn't work.
Is there any way around this?
Answer given by Quentin: There may still be references in the vcxproj file created by Visual Studio. Delete those references and it should work.
I'm fairly new to c++ and decided to start learning by creating several basic projects. About halfway through I realized I was getting the same compiler errors when building my solutions, even though I was changing my code. I figured I had errors somewhere, so I decided to slowly undo until my errors went away. But, the same compiler errors were still there. I kept using undo until the only code that was left was:
#include <iostream>
These were the errors printed to my console:
../src/client.cpp:10:18: error: Note.h: No such file or directory
../src/client.cpp:12: error: 'bst' is not a namespace-name
../src/client.cpp:12: error: expected namespace-name before ';' token
../src/client.cpp: In function 'int main()':
../src/client.cpp:16: error: 'bst' has not been declared
../src/client.cpp:16: error: 'n' was not declared in this scope
The first error was due to a mispelling of "Node.h". I fixed the spelling mistake and the error persisted. But, I only have 1 line of code, and apparently line 16 contained an error.
HAS anybody ever had an issue like this before? I've been searching for a solution all night and havent had any luck. I'm running osx 10.6.8 (64bit) with a the newest 32bit version of eclipse. It started for no apparent reason. Thanks!!