From 1c69f15ceadd4753bb8beac0d1ae8639001a7949 Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Sun, 18 Oct 2020 11:18:51 +0000 Subject: [PATCH] Edit samples git-svn-id: svn://kolibrios.org@8109 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/ktcc/trunk/samples/build_all.sh | 10 +++++----- programs/develop/ktcc/trunk/samples/dynamic.c | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/programs/develop/ktcc/trunk/samples/build_all.sh b/programs/develop/ktcc/trunk/samples/build_all.sh index 62562b1aed..d1aa93a117 100644 --- a/programs/develop/ktcc/trunk/samples/build_all.sh +++ b/programs/develop/ktcc/trunk/samples/build_all.sh @@ -1,9 +1,9 @@ #SHS -../tcc asm_ex.c /kolibrios/develop/tcc/lib/libck.a -o asm_ex -../tcc consoleio.c /kolibrios/develop/tcc/lib/libck.a -o consoleio -../tcc files.c /kolibrios/develop/tcc/lib/libck.a -o files -../tcc winbasics.c /kolibrios/develop/tcc/lib/libck.a -o winbasics -../tcc dynamic.c -lconsole -lhttp -linputbox -o dynamic +../tcc asm_ex.c -lck -o asm_ex +../tcc consoleio.c -lck -o consoleio +../tcc files.c -lck -o files +../tcc winbasics.c -lck -o winbasics +../tcc dynamic.c -lhttp -linputbox -o dynamic ../tcc load_coff.c -o load_coff -lck ../tcc clayer/msgbox.c -lck -lmsgbox -o msgbox ../tcc graphics.c -lck -lgb -o graphics diff --git a/programs/develop/ktcc/trunk/samples/dynamic.c b/programs/develop/ktcc/trunk/samples/dynamic.c index be51992cb7..2915dc907e 100644 --- a/programs/develop/ktcc/trunk/samples/dynamic.c +++ b/programs/develop/ktcc/trunk/samples/dynamic.c @@ -1,8 +1,9 @@ -#include +#include #include #include int main() { + if (con_init_console_dll()) return 1; // init fail con_write_asciiz("Wait, I'll ask you... when I'll done to fetch one site...\n"); con_set_title("Dynamicaly linked app"); http_msg *h = get("http://example.com", 0, HTTP_FLAG_BLOCK, "");