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

Compilation error on Windows when trying to use the library. #81

Closed
GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

I am building using the following system:
* Windows, Visual Studio 2013.
* CMake GUI 2.8.12.
* Gflags' Github master
* BUILD_gflags_LIB
* BUILD_STATIC_LIBS

The problem is that the resulting gflags_declare.h in the include folder has 
the following lines in it:

#ifndef GFLAGS_DLL_DECL
#  if  && defined(_MSC_VER)
#    define GFLAGS_DLL_DECL __declspec(dllimport)
#  else
#    define GFLAGS_DLL_DECL
#  endif
#endif

This results in a compilation error when I try to use the library.


Original issue reported on code.google.com by petter.s...@gmail.com on 29 Mar 2014 at 5:55

@GoogleCodeExporter
Copy link
Author

Yes, sorry about that. This has been reported and fixed in the develop branch 
(see issue 77). Another issue with gflags_declare.h you might run into was 
reported and fixed in develop as well (see issue 79).

Original comment by andreas....@gmail.com on 30 Mar 2014 at 1:43

  • Changed state: Duplicate
  • Added labels: Milestone-v2.1.1

@GoogleCodeExporter
Copy link
Author

Thanks for the reply. I apologize for not looking at the previous issues first. 
Great that it has been fixed!

Original comment by petter.s...@gmail.com on 30 Mar 2014 at 9:11

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