Open eniv opened 2 weeks ago
Are there other versions of drogon on your system?
No, I just checked. Or to be more accurate, not installed. There is a very old one in a local trash folder. I'm pretty sure the examples are linked against the version of libdrogon being built.
Maybe you could empty the build directory and rebuild
Thanks for the suggestion. I've already tried that. In order to prove to myself that I'm linking against the correct version of libdrogon, I checked the dependencies of a different example which did not fail linking. As you can see in the screenshot below, it links against libdrogon1.9.8:
Also, I should have noted that earlier. I'm using g++12.3
Looks like DROGON_EXPORT
is missing in RequestStream.h
for the RequestStreamReader
class.
Once I add it, the linker is satisfied
Thanks for the suggestion. I've already tried that. In order to prove to myself that I'm linking against the correct version of libdrogon, I checked the dependencies of a different example which did not fail linking. As you can see in the screenshot below, it links against libdrogon1.9.8:
Also, I should have noted that earlier. I'm using g++12.3
It's very strange,I can compile by using gcc13.1 14.2.
Something must have changed after 12.3 with the visibility attribute.
It's strange. I'm using gcc 11.1 and it works fine.
It's strange. I'm using gcc 11.1 and it works fine.
maybe only gcc12.not work
Maybe it's because the shared lib. I'm using static lib. But shared lib linkage is also tested in ci.
Looks like an issue with the async_stream example:
Am I missing something?