-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
GLOG 0.4.0 : unresolved external symbol google::InitGoogleLogging #2494
Comments
Looking at test_package in glog recipe, it injects a definition if windows and not mingw. This definition should be in cpp_info. |
Ok so your comments are welcome, but they go right over my head. But I read so .... the recipe has if self.settings.os == "Windows":
del self.options.fPIC So the recipe deletes the fPIC option? As opposed to resetting it to False? Not sure how this really helps me at the moment... just ignorant on how to use the information |
Not related with PIC. In test_package: #include <iostream>
#ifdef _WIN32
#ifndef __MINGW32__
#define GOOGLE_GLOG_DLL_DECL
#endif
#endif
#include <glog/logging.h>
int main(int argc, char** argv) {
google::InitGoogleLogging(argv[0]);
LOG(INFO) << "It works";
return 0;
} This |
Good that means I dodged that bullet, not my fault. Thanks |
Package Name/Version: glog/0.4.0
Operating System+version: Win 10
Compiler+version: MSVS 2015 & MSVS 2019
Conan version: 1.28.0
cmake version:3.18.0
Ninja version:1.10.0
This may be similar to: #1691
Using conan-cmake:
main.cpp is simple enough:
Log attached below.
Conan_GLOG_Fail.log
The text was updated successfully, but these errors were encountered: