McSwaggens / linux-csgo-external

CSGO Hack for x64 Linux systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined reference to `libconfig::Setting::operator std::string() const'

opened this issue · comments

$ make
c++ .cpp *.h -Wunused -std=gnu++11 -lX11 -lconfig++ -o csgo_external
hack.cpp: In function ‘void hack::Glow(double
, remote::Handle_, remote::MapModuleMemoryRegion_)’:
hack.cpp:101:49: warning: pointer of type ‘void ’ used in arithmetic [-Wpointer-arith]
csgo->Read((void
) (g_glow[i].m_pEntity + 0x94), &entityId, sizeof(int));
^
/tmp/ccfqZMRR.o: In function getConfigValue(std::string)': main.cpp:(.text+0x3f): undefined reference tolibconfig::Setting::operator std::string() const'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libconfig++.so: undefined reference to VTT for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21' /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libconfig++.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libconfig++.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21' /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libconfig++.so: undefined reference tovtable for std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libconfig++.so: undefined reference to vtable for std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21' /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libconfig++.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_assign(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libconfig++.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits, std::allocator >::~basic_stringstream()@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
make: *** [run] Error 1

You need to install libconfigdev.

I have it installed.

sudo apt-get install libconfig++-dev

I made a mod just to not have to use that extra library that causes me problems.
http://pastebin.com/piDbBTiL

Sorry for commenting on closed issue, but are you sure the settings.cfg is in the same location as the binary? and are you executing linux-csgo-external from within that directory?

It is when compiled, not when running. And yes, I have the "settings.cfg" in the same directory, this library because I'm no errors. Anyway, as I made a small change to do not use that library.