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

Compiling with Visual Studio 2010 (solution) #11

Open
GoogleCodeExporter opened this issue Jul 27, 2015 · 0 comments
Open

Compiling with Visual Studio 2010 (solution) #11

GoogleCodeExporter opened this issue Jul 27, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link


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 [email protected] on 6 Mar 2014 at 12:20

Attachments:

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

No branches or pull requests

1 participant