Compiling with VS2010 (not express), under 64-bits Windows 7, throws several
errors.
This is how I fixed it. It would be great if it was integrated in the current
version.
First, you can't compile the solution at once, you must compile the libprotobuf
and libprotoc projects separately first. You can choose to compile Debug or
Release; here I chose Release. The Readme could be updated with this.
Then, the solution file that ships with protobuf can be replaced with one that
incorporates the following changes:
Right-click "protoc" project -> Properties -> Configuration Properties ->
Linker -> General. Disable Incremental Linking.
Under the same Linker -> Input, add additional dependencies:
Release\libprotobuf.lib
Release\libprotoc.lib
(Or Debug if you chose to compile the release version.)
Finally, the file "matlab_generator.cc" must be added under Source to the
protoc project.
I've attached files that incorporate these changes (except the readme
instructions). They should replace the 2 files in "protobuf-2.4.1/vsprojects/".
Note that they assume you compiled the libraries for Release.
That's it -- hope I didn't forget anything.
Original issue reported on code.google.com by jota...@hotmail.com on 6 Mar 2014 at 12:20
Original issue reported on code.google.com by
jota...@hotmail.com
on 6 Mar 2014 at 12:20Attachments: