bumpy-b / protobuf-embedded-c

Automatically exported from code.google.com/p/protobuf-embedded-c
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 anderssa...@yahoo.se on 28 Dec 2012 at 8:07

GoogleCodeExporter commented 9 years ago
Maybe this is related to issue 8.

Original comment by wolfgang.schwitzer on 13 Mar 2013 at 12:04