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

I am dumb, error with Glog. #2

Open
Syberyn opened this issue Aug 6, 2019 · 2 comments
Open

I am dumb, error with Glog. #2

Syberyn opened this issue Aug 6, 2019 · 2 comments

Comments

@Syberyn
Copy link

Syberyn commented Aug 6, 2019

/usr/bin/ld: /tmp/ccaISolJ.o: in function `main':
main.cpp:(.text+0x2a): undefined reference to `google::InitGoogleLogging(char const*)'
/usr/bin/ld: main.cpp:(.text+0x66): undefined reference to `google::LogMessage::LogMessage(char const*, int, int)'
/usr/bin/ld: main.cpp:(.text+0x72): undefined reference to `google::LogMessage::stream()'
/usr/bin/ld: main.cpp:(.text+0x8d): undefined reference to `google::LogMessage::~LogMessage()'
/usr/bin/ld: main.cpp:(.text+0xdb): undefined reference to `google::LogMessage::~LogMessage()'
/usr/bin/ld: /tmp/ccRXsZzt.o: in function `WindowManager::Create()':
window_manager.cpp:(.text+0x22): undefined reference to `XOpenDisplay'
/usr/bin/ld: window_manager.cpp:(.text+0x4a): undefined reference to `google::LogMessage::LogMessage(char const*, int, int)'
/usr/bin/ld: window_manager.cpp:(.text+0x56): undefined reference to `google::LogMessage::stream()'
/usr/bin/ld: window_manager.cpp:(.text+0x72): undefined reference to `XDisplayName'
/usr/bin/ld: window_manager.cpp:(.text+0x89): undefined reference to `google::LogMessage::~LogMessage()'
/usr/bin/ld: window_manager.cpp:(.text+0xda): undefined reference to `google::LogMessage::~LogMessage()'
/usr/bin/ld: /tmp/ccRXsZzt.o: in function `WindowManager::~WindowManager()':
window_manager.cpp:(.text+0x1a7): undefined reference to `XCloseDisplay'
/usr/bin/ld: /tmp/ccRXsZzt.o: in function `_XDisplay*& google::CheckNotNull<_XDisplay*&>(char const*, int, char const*, _XDisplay*&)':
window_manager.cpp:(.text._ZN6google12CheckNotNullIRP9_XDisplayEET_PKciS6_OS4_[_ZN6google12CheckNotNullIRP9_XDisplayEET_PKciS6_OS4_]+0x86): undefined reference to `google::LogMessageFatal::LogMessageFatal(char const*, int, google::CheckOpString const&)'
/usr/bin/ld: window_manager.cpp:(.text._ZN6google12CheckNotNullIRP9_XDisplayEET_PKciS6_OS4_[_ZN6google12CheckNotNullIRP9_XDisplayEET_PKciS6_OS4_]+0x92): undefined reference to `google::LogMessageFatal::~LogMessageFatal()'
collect2: error: ld returned 1 exit status

help

@Syberyn Syberyn changed the title I am dumb, why it no work. I am dumb, error with Glog. Aug 6, 2019
@necromancerthedark
Copy link

Have you installed Glog? I assume you have to install the library via package manager.

@RdXDavidaz
Copy link

I have the same problem, and libgoogle-glog-dev is installed. I'm on debian 11. The basic_wm file must be in a specific location maybe ?

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

No branches or pull requests

3 participants