关于LINUX下编译OTL出现的OCI.H找不到的问题
程序很简单就是一个连接库的小程序,编译的时候找不到OCI.H,求大虾们看看
程序
#include <iostream>
#include <stdio.h>
using namespace std;
#define OTL_ORA9I // Compile OTL 4.0/OCI9i
#include "otlv4.h" // include the OTL 4.0 header file
otl_connect db; // connect object
int main()
{
otl_connect::otl_initialize(); // initialize OCI environment
try
{
cout < <"Connect to database..." < <endl;
db.rlogon("asion/asion@cost219"); // connect to Oracle
cout < <"连接成功" < <endl;
}
catch(otl_exception& p)
{
// intercept OTL exceptions
cerr < <p.msg < <endl; // print out error message
cerr < <p.stm_text < <endl; // print out SQL
相关问答:
大家好,本人目前刚刚接触Linux。现在公司的项目需要缩减Linux的Kernel和APP部分的Code Size。目前我们使用的是Linux2.6.22.15版本,应用于ADSL Modem(家庭网关)。
1.我们产品应用是ADSL Gateway,Kernel部 ......
我没有安装操作系统的经验,即使是WINDOWS。现在想在LINUX操作系统大环境下学C语言,又要买本本,请问如果操作系统安装不当,会不会对电脑造成什么大的破坏?有没有必要先买一个二手电脑练一下LINUX的 ......
Linux不正常关机导致系统坏,请问怎么检查和修复系统?
在刚启动的时候会有提示的。
修复可以靠livecd
或者把基本系统部分重新安装即可
是不是系统编程了read-only的啦?无法往系统写入数据啊?
有的情 ......
• 实验目的
通过本实验,了解Linux系统的组织和行为,观察各种存储系统状态信息的内核变量;熟悉这些结构与信息。
• 实验内容
编写程序打印出如 ......
#include "stdlib.h"
#include "stdio.h"
#include "errno.h"
#include "string.h"
#include "netdb.h"
#include "sys/types.h"
#i ......