Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
冷面1992
TDengine
提交
d9560c8b
TDengine
项目概览
冷面1992
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d9560c8b
编写于
3月 03, 2021
作者:
sangshuduo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-3160] <fix>: fix c demo program compile issue.
上级
f5fd1114
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
1 addition
and
27 deletion
+1
-27
tests/examples/c/apitest.c
tests/examples/c/apitest.c
+0
-1
tests/examples/c/asyncdemo.c
tests/examples/c/asyncdemo.c
+0
-2
tests/examples/c/demo.c
tests/examples/c/demo.c
+0
-5
tests/examples/c/makefile
tests/examples/c/makefile
+1
-1
tests/examples/c/prepare.c
tests/examples/c/prepare.c
+0
-6
tests/examples/c/stream.c
tests/examples/c/stream.c
+0
-6
tests/examples/c/subscribe.c
tests/examples/c/subscribe.c
+0
-6
未找到文件。
tests/examples/c/apitest.c
浏览文件 @
d9560c8b
...
...
@@ -467,7 +467,6 @@ int main(int argc, char *argv[]) {
const
char
*
passwd
=
"taosdata"
;
taos_options
(
TSDB_OPTION_TIMEZONE
,
"GMT-8"
);
taos_init
();
TAOS
*
taos
=
taos_connect
(
host
,
user
,
passwd
,
""
,
0
);
if
(
taos
==
NULL
)
{
...
...
tests/examples/c/asyncdemo.c
浏览文件 @
d9560c8b
...
...
@@ -99,8 +99,6 @@ int main(int argc, char *argv[])
tableList
=
(
STable
*
)
malloc
(
size
);
memset
(
tableList
,
0
,
size
);
taos_init
();
taos
=
taos_connect
(
argv
[
1
],
"root"
,
"taosdata"
,
NULL
,
0
);
if
(
taos
==
NULL
)
taos_error
(
taos
);
...
...
tests/examples/c/demo.c
浏览文件 @
d9560c8b
...
...
@@ -61,11 +61,6 @@ int main(int argc, char *argv[]) {
return
0
;
}
// init TAOS
if
(
taos_init
())
{
exit
(
1
);
}
TAOS
*
taos
=
taos_connect
(
argv
[
1
],
"root"
,
"taosdata"
,
NULL
,
0
);
if
(
taos
==
NULL
)
{
printf
(
"failed to connect to server, reason:%s
\n
"
,
"null taos"
/*taos_errstr(taos)*/
);
...
...
tests/examples/c/makefile
浏览文件 @
d9560c8b
...
...
@@ -6,7 +6,7 @@ TARGET=exe
LFLAGS
=
'-Wl,-rpath,/usr/local/taos/driver/'
-ltaos
-lpthread
-lm
-lrt
CFLAGS
=
-O3
-g
-Wall
-Wno-deprecated
-fPIC
-Wno-unused-result
-Wconversion
\
-Wno-char-subscripts
-D_REENTRANT
-Wno-format
-D_REENTRANT
-DLINUX
\
-
msse4
.2
-
Wno-unused-function
-D_M_X64
-I
/usr/local/taos/include
-std
=
gnu99
-Wno-unused-function
-D_M_X64
-I
/usr/local/taos/include
-std
=
gnu99
all
:
$(TARGET)
...
...
tests/examples/c/prepare.c
浏览文件 @
d9560c8b
...
...
@@ -22,12 +22,6 @@ int main(int argc, char *argv[])
return
0
;
}
// init TAOS
if
(
taos_init
())
{
printf
(
"failed to init taos
\n
"
);
exit
(
1
);
}
taos
=
taos_connect
(
argv
[
1
],
"root"
,
"taosdata"
,
NULL
,
0
);
if
(
taos
==
NULL
)
{
printf
(
"failed to connect to db, reason:%s
\n
"
,
taos_errstr
(
taos
));
...
...
tests/examples/c/stream.c
浏览文件 @
d9560c8b
...
...
@@ -54,12 +54,6 @@ int main(int argc, char *argv[])
exit
(
0
);
}
// init TAOS
if
(
taos_init
())
{
printf
(
"failed to init taos
\n
"
);
exit
(
1
);
}
strcpy
(
db_name
,
argv
[
2
]);
strcpy
(
tbl_name
,
argv
[
3
]);
...
...
tests/examples/c/subscribe.c
浏览文件 @
d9560c8b
...
...
@@ -216,12 +216,6 @@ int main(int argc, char *argv[]) {
}
}
// init TAOS
if
(
taos_init
())
{
printf
(
"failed to init taos
\n
"
);
exit
(
1
);
}
TAOS
*
taos
=
taos_connect
(
host
,
user
,
passwd
,
""
,
0
);
if
(
taos
==
NULL
)
{
printf
(
"failed to connect to db, reason:%s
\n
"
,
taos_errstr
(
taos
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录