Skip to content
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

Not possible to build executable with .c and .h files generated from two .proto files. Multiple definitions of _memset etc. #20

Open
GoogleCodeExporter opened this issue Jul 7, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Generate C code from 2 different .proto files.
2. Include the generated files in builing the same executable file.
3. Build.

What is the expected output? What do you see instead?
I expect to be able to link the executable. But I get linking error for 
multiple definitions of _memset and a few more general functions. 

What version of the product are you using? On what operating system?
Version 1.0M2 on windows. 

Please provide any additional information below.
Because of the layered structure of our design we want to have some data 
handled by a generinc base system and other data by application specific files. 
We therefore want one .proto file for the base system lib and one .proto file 
for each application. 

We have currently solved the issue by declaring _memset and a few more 
functions as static in the .stg file. 

Original issue reported on code.google.com by [email protected] on 28 Dec 2012 at 8:07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant