Comments (6)
describe your problem more. how are you trying to build echobot
?
from telebot.
gcc -static test/echobot.c -Iinclude libtelebot_static.a
from telebot.
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: libtelebot_static.a(telebot.c.o): in function `telebot_get_updates':
telebot.c:(.text+0x272): undefined reference to `json_object_new_array'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x2bd): undefined reference to `json_object_new_string'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x2cf): undefined reference to `json_object_array_add'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x2ea): undefined reference to `json_object_to_json_string'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x383): undefined reference to `json_object_put'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x39e): undefined reference to `json_object_put'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x3e0): undefined reference to `json_object_object_get_ex'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x3f0): undefined reference to `json_object_get_boolean'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x41f): undefined reference to `json_object_object_get_ex'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x4d1): undefined reference to `json_object_put'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: libtelebot_static.a(telebot.c.o): in function `telebot_get_me':
telebot.c:(.text+0x738): undefined reference to `json_object_object_get_ex'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x748): undefined reference to `json_object_get_boolean'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x774): undefined reference to `json_object_object_get_ex'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0x7bc): undefined reference to `json_object_put'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: libtelebot_static.a(telebot.c.o): in function `telebot_get_webhook_info':
telebot.c:(.text+0xb7c): undefined reference to `json_object_object_get_ex'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: telebot.c:(.text+0xb8c): undefined reference to `json_object_get_boolean'
And there are about 150 such errors
from telebot.
Any updates on this?
from telebot.
You need static versions of libcurl and json-c for that.
from telebot.
from telebot.
Related Issues (20)
- stdbool.h header is not added by default HOT 2
- Can we add static library to CMakeList.txt file? HOT 2
- User editing already send message will result in crash. HOT 3
- Possible deadlock in telebot-core.telebot_core_curl_perform() HOT 3
- echobot leaks memory HOT 1
- Telebot crashes if user send less then 3 characters. HOT 2
- No releases yet HOT 1
- Bot crashes when two identic messages were sent in a row HOT 1
- docs? HOT 8
- How to use buttons? HOT 4
- Telebot does not provide API result to user HOT 5
- run makefile console error in Centos 7.8 HOT 3
- can't get caption HOT 1
- make install would be nice HOT 4
- disable_notification is not working ? HOT 1
- too frequent fatal errors HOT 8
- Error on file send HOT 1
- Crash on messages forwarded from chats
- free(): invalid pointer - in telebot_put_user HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telebot.