Jussi
Who cannot compile with 17?
Rizky Khapidsyah
Anonymous
When I try to use key_t as key in unordered_map, it's throwing tonnes of errors
Anonymous
Hello, guys!
Needed in a link to powerful OSS LiDAR software lib or toolchain. Additionally, have someone a theoretical guides for cleaning and pattern recognition of LiDAR data clouds? C++11, 14 preferred. Thanks!
Mahesh
Thanks
Anonymous
using key_t=std::tuple<uuid, enum, uint64_t> I provided key_hash n key_equal implementation as well
Anonymous
Any idea?
Mat
Mat
Stop spamming your question
Mat
#howtoask
Anonymous
When I try to use key_t as key in unordered_map, it's throwing tonnes of errors
Anonymous
using key_t=std::tuple<uuid, enum, uint64_t> I provided key_hash n key_equal implementation as well
Anonymous
Not spamming
Anonymous
It's genuine query
Mat
.
Mat
One message, please
Dima
Parra
Parra
...
have fun with name mangling
why would name mangling break something there? i don't know about ELF but shouldnt exports prevent that?
Parra
Parra
also you will have other problems, like abi compatibility
Parra
the easiest way to solve this is to export c symbols
Parra
and if you pass objects outside, use them as void *
...
"returning pointers to objects" is never a good idea
Parra
you can solve that, demangling yourself the symbols
Parra
but then you end up with multiple implementations for multiple compilers
Parra
and you will need to make a plugin system specifying how the lib was compiled
Parra
a good example of C API for C++ is NodeJS N-API
Parra
it hides V8 objects with a simple C API that is consistent among multiple versions of V8 or Node
Parra
(they did 4 or 5 versions of the extension api until they found this is the best way of doing it)
...
i know for a fact that name mangling doesn't really break something under windows
...
if you export your stuff you will be able to get the functions via GetProcAddress
Parra
...
dafuq
...
exporting a class?
...
im talking about functions
Parra
ah
Parra
if you use plain c objects and c functions it should not be mangled
Parra
and extern "C"
Parra
whenever you do things like this (without extern c):
int a();
int a(int b);
Parra
then you have mangling
...
it obviously needs to be mangled
...
yea
Parra
no matter if you are win or linux
Parra
it's related to the compiler
...
yea for sure
Anonymous
helloo can i share link how to install library conio.h for linux ??
Parra
Parra
just avoid it
Anonymous
ahh oke sorry
Parra
you can use standard functions that do the same
Anonymous
i know,but on linux must install conio.h first
Anonymous
okei sorry
Elnee
Anonymous
Mihail
Anonymous
Kek
Anonymous
/ban
Maximus
Again -__-
Do you hate to bring jobs to the community
Dima
I think we should create another group for jobs, this one gets messy fast and it’s hard to see your posted job.
Maximus
We'll keep hiring, and it was nice that some ppl here applied already
Maximus
Dima
defined
Hyy
defined
Can anyone help
defined
I don't know nothing about programming
defined
But I want to learn
defined
So I have to buy a laptop for programming in a budget range
defined
Suggest a good one plz
Dima
Let’s discuss laptop picking in
Dima
#ot
Mat
Off topic goes here
Anonymous
sharks
sharon
👍 these are really good community guidelines, in fact one of the best ive ever seen.
Jairus Otiko
Ok I just did that...
Mandelbröt
Welcom
Anonymous
Welcome.