-
Notifications
You must be signed in to change notification settings - Fork 21
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 compile in Debian #4
Comments
Update libviface will compile under Linux Mint 18.1, cmake version 3.5.1 and make 4.1 IF The libtins.cpp file under /examples/libtins has the following line added
|
Update to the update I THINK that the /include/viface/viface.cpp file needs to have the following added in order to get compilation working on my newer Debian system. I will try this when I get home.
If this is the case, something something something about explicit includes maybe. |
/include/viface/viface.cpp needed explicitly Everything compiles and works now :) |
Thanks for the report. Let's keep this open until we fix it in code. Thanks |
Added in e918b79 as it was clearly missing.
There is no such file. Do you mean What failed when you tried to build? The only think I see is using |
It's actually /include/viface/viface.hpp sorry, I didn't notice it was a header at first, I'm used to using .h even in c++. I'm bad, I know. Line 56 of that file specifically failed with the error, ‘function’ in namespace ‘std’ does not name a template type I believe I have a rather new version of gcc and that's why this happened. If you include functional in that specific header file it compiles. I'm not sure if this is the correct solution but I will get back to you on that as soon as I implement the library here in a second. |
When I tried to use the library last night I encountered an error while loading shared library object. So I believe I still have an issue. |
Update: I suppose it would have helped if after I installed the library to my system I had run ldconfig to update the ld.so.cache Testing now and everything compiles and works properly! So the two changes I mentioned above took care of everything. :) If you want to replicate my environment, I'm using a Debian Testing based Linux distribution, specifically Kali Linux. |
Last update, I promise. Here's a detailed list of the compilers included by default in the different Debian distributions And here's a detailed list of the compilers included by default in Ubuntu based distributions |
All good! Glad I could be of some help! :)
…On Fri, Sep 28, 2018, 8:29 PM Carlos Jenkins ***@***.***> wrote:
Closed #4 <#4>.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADvaOsO3t34-W7mzVzs0r5MctteGzDsuks5ufr7-gaJpZM4Sl_Ha>
.
|
cmake runs from build directory however I receive the following message when trying to run make:
error: ‘function’ in namespace ‘std’ does not name a template type
I'm assuming this is an issue with which version of the c++ standard is used to compile. I edited the CMakeLists.txt file in order to force both c++ 11 and later c++17 but received the same error message both times when running make.
I'm using cmake 3.10.2 and make 4.1
The text was updated successfully, but these errors were encountered: