-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
undefined reference to `google::protobuf::internal::SerializeInternal' #4799
Comments
Those two functions are defined in |
It seems the function is included in the library (same for SerializeInternalToArray):
|
I've found the problem, the declaration and definition of SerializeInternal and SerializeInternalToArray is different:
should be
When changing int to int32 in the declaration, the linker can find the definition and my program compiles! |
Nice, I'm glad to hear you got it working! If you're interested you can send us a pull request with that fix and I'll merge it. |
here you go! |
Thanks! |
Compiling protocolbuffers 3.5.1 for Cortex-M4 processor.
using the following commands:
note: you need arm-none-eabi_gcc_6.3.1
This builds with after minor modifications to the Mutex library (replace the implementation with empty functions)
When linking the created libprotobuf-lite.a with my project, the linker complains about the following:
The text was updated successfully, but these errors were encountered: