techoe / gflags

Automatically exported from code.google.com/p/gflags
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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