-
Notifications
You must be signed in to change notification settings - Fork 15.7k
$dllexport_decl$
is missing in generated .pb.cc
#13084
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
Comments
Can you provide some more details here? What version of C++ are you using? What's the full command you are running? And can you copy over error logs? |
They sent a PR that I am already reviewing, so no need for details |
For the usage in our project.
I think there is similar problems when we build these |
What version of protobuf and what language are you using?
Version: v21/v23
Language: C++
What operating system (Linux, Windows, ...) and version?
Windows,Linux
What runtime / compiler are you using (e.g., python version or gcc version)
GCC 13, GCC 4.8, MSVC 19.36
What did you do?
--cpp_out=dllexport_decl=XXX_API:<OUTPUT DIR>
..pb.cc
as shared libraries.What did you expect to see
Linking success.
What did you see instead?
Unresolved reference to
PACKAGE::_MESSAGE_default_instance_
.Anything else we should know about your project / environment
$dllexport_decl$
is missing for default instance in generated.pb.cc
.The text was updated successfully, but these errors were encountered: