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

GOOGLE_GLOG_DLL_DECL needs to be put into header file #469

Closed
bruceOctree opened this issue Sep 9, 2019 · 1 comment · Fixed by #619
Closed

GOOGLE_GLOG_DLL_DECL needs to be put into header file #469

bruceOctree opened this issue Sep 9, 2019 · 1 comment · Fixed by #619
Assignees
Milestone

Comments

@bruceOctree
Copy link

Having CMake set this by compiler command line means anyone using an already compiled library must know what the value was at glog compile time. This should be put directly into the header (include) files or better into a global config header file.

@serhatgiydiren
Copy link

Hi.
There is ifndef statement in logging.h, what type of error or problem you are getting?

// Annoying stuff for windows -- makes sure clients can import these functions
#ifndef GOOGLE_GLOG_DLL_DECL
# if defined(_WIN32) && !defined(__CYGWIN__)
#   define GOOGLE_GLOG_DLL_DECL  __declspec(dllimport)
# else
#   define GOOGLE_GLOG_DLL_DECL
# endif
#endif

@sergiud sergiud added this to the 0.5 milestone Mar 30, 2021
@sergiud sergiud self-assigned this Mar 30, 2021
@sergiud sergiud mentioned this issue May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants