dbx
dbx[@more@]dbx是UNIX下基于命令行界面的程序调试器,假如不能学会dbx,无疑将为你在UNIX端的编程上增添许多的困难。 dbx是通过交互执行dbx子命令来达到调试的目的的。在调试程序前,必须先将-g选项包含在编译信息中,编译生成带调试信息的文件,即:cc -o filename -g file.c。进入dbx通常只需输入"dbx filename"即可,filename为待调试的可执行程序名。dbx加载后就显示提示符:(dbx),此时用户就可以输入dbx子命令进行调试了。 下面是一些dbx的常用子命令: 1.基本操作命令 run arg1 arg2 ... :以arg1,arg2,
proc_exp
proc_exp[@more@]exp_test.pc/* 一般头文件*/#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <fcntl.h>#include <dirent.h>#include <unistd.h>#include <errno.h>#include <time.h>#include <ctype.h>#include <sys/stat.h>#include <stdarg.h>#include <strings.h>#include <netdb.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <sys/wait.h>#include <setjmp.h
PROC提取数据
PROC提取数据[@more@]1.创建fetch_data.pc文件,内容如下:#include "sqlca.h"#include <stdio.h>#include <string.h>#include <stdlib.h>#include <sqlda.h>#include <sqlcpr.h>#include <ctype.h>#include <extension.h>#include "oci.h"//定义列和绑定变量的最大个数#define MAX_ITEMS 40//定义列名的最大值#define MAX_VNAME_LEN 30#define MAX_INAME_LEN 30extern void sqlnul( unsigned short*, unsigned short*, int*);extern void sqlprc( unsigned int*, int*, int
使用makefile编译c程序
使用makefile编译c程序[@more@]一、Makefile的规则 Makefile的规则如下: target ... : prerequisites ... command 这里的command是指生成或是处理target随执行的命令;prerequisites指的是生成target所需要依赖的文件.二、一个示例 自行编写了2个C文件(get_max.c,fn_max.c),我们为了完成前面所述的那三个规则,我们的Makefile应该是下面的这个样子的。 SHELL = /usr/bin/kshLINK.c = ccget_max:get_max.o fn_max.o <tab>cc -o get_max get_max.o fn_max.oget_max.o:get_max.c <tab>cc -c get_max.cfn_max.