用vc编译proc报错 [问题点数:0分]

Bbs1
本版专家分:0
结帖率 100%
Bbs4
本版专家分:1505
Bbs1
本版专家分:0
Bbs8
本版专家分:35287
Bbs1
本版专家分:0
Bbs8
本版专家分:35287
Bbs1
本版专家分:0
Bbs4
本版专家分:1505
Bbs4
本版专家分:1505
proc链接时报错
<em>proc</em>链接时<em>报错</em>:rnc++ -o rtmain rtmain.o -L/export/home/guotao/sms/lib -L/opt/sfw/lib -L/usr/lib -L/u01/app/oracle/product/8.1.7/lib librtoracle.a -L-lm -lsocket -ldl -lnsl -lxml8 -lcore8 -lnls8 -lclient8rnUndefined first referencedrn symbol in filernsqlnul librtoracle.a(query.o)rnsqlald librtoracle.a(query.o)rnsqlprc librtoracle.a(query.o)rnsqlclu librtoracle.a(query.o)rnsqlcxt librtoracle.a(query.o)rnld: fatal: Symbol referencing errors. No output written to rtmainrncollect2: ld returned 1 exit statusrn*** Error code 1rnmake: Fatal error: Command failed for target `rtmain'rn其中librtoracle.a是我写的库文件。rnrn环境变量rnLD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/ccs/lib:/opt/sfw/lib:/u01/app/oracle/product/8.1.7/lib:/u01/app/oracle/product/8.1.7/precomp/lib:/u01/app/oracle/product/8.1.7/network/lib:/u01/app/oracle/product/8.1.7/rdbms/librnrn为什么还会出此错误?
windows2000 vc 编译 mysql报错
近日下载mysql 4.0的windows源代码,用<em>vc</em>6.0<em>编译</em>时,总时报内部函数不存在。rn什么原因啊?rn注:<em>vc</em>的sp5已经安装。rnrn有没有哪位兄台<em>编译</em>成功并且在本地运行的先例??rn
初用proc 请教编译问题
我写好PROC后,已预<em>编译</em>成C文件。用VC对C文件<em>编译</em><em>报错</em>。rnunresolved external symbol _sqlerrorrn这是怎么回事?rn还有。书上说要反目标模块与ORACLE运行库模块相连接。是如何操作的?rnrn
Proc报错:PCC-S-02201
大家好rn一个查询语句:rn=============================================================================================rnEXEC SQL DECLARE Inqmeriedc CURSOR forrn SELECT MID_EDC,MERCHANT_NAME_CH,MERCHANT_NAME_EN,MERCHANT_ADDR,CON_TEL,OWNER_LEGWORK_IDrn FROM tb_merchant_info_basern WHERE IN_DATE like :inqdt and OWNER_LEGWORK_ID [color=#FF0000]in[/color] :inqstr;rn=============================================================================================rn<em>编译</em>时会<em>报错</em>:rn=============================================================================================rnError at line 134, column 53 in file tran50.pcrn WHERE IN_DATE like :inqdt and OWNER_LEGWORK_ID in :inqstr;rn....................................................1rnPCC-S-02201, Encountered the symbol ":" when expecting one of the following:rnrn ( multiset, the,rnrnSyntax error at line 0, column 0, file tran50.pc:rnError at line 0, column 0 in file tran50.pcrnPCC-S-02201, Encountered the symbol "" when expecting one of the following:rnrn ; : an identifier, end-exec, random_terminalrnrnError at line 0, column 0 in file tran50.pcrnPCC-F-02102, Fatal error while doing C pre<em>proc</em>essingrnmake: *** [tran50.o] Error 1rn=============================================================================================rn其中Error at line 134就是有where语句的那一行rnrn把“in”改成“=”、“like”、“>”等等,都是正常的。只有是“in”时<em>报错</em>。rn请问是哪里出了问题?谢谢!rn
Proc 编译遇见问题
1.<em>proc</em>: error while loading shared libraries: libclntsh.so.12.1: cannot open shared object file: No such file or directory问题设置:export LD_LIBRARY_PATH=$ORACLE_HOME/lib2.错误:System default option values ...
PROC*C 编译问题
PROC*C <em>编译</em>的时候总是报找不到.h头文件,但是我<em>编译</em>的时候用-I 参数来指定.h的目录了,不懂为什么??rn错误如下:rnPCC-S-02015, unable to open include filernError at line 14, column 10 in file ./src/ExporterData.pcrn#include "ncftp.h" /* Library header. */rn.........1rnPCC-S-02015, unable to open include filernrn不知是<em>编译</em>时的参数写的有问题??
编译proc文件出错
我用<em>proc</em>写了一个往数据库中导数的文件,但<em>编译</em>一直有问题,请大家指教下。rn我的makefile文件为:rninsdata: insdata.orn CC -o $@ -f insdata.o -L$ORACLE_HOME/lib -lclntsh;rnrn执行make,错误如下:rnCC -o insdata-f insdata.o -L/opt/app/ora10g/orabase/product/10.2.0/lib -lclntsh;rnCC: Warning: Option -f passed to ld, if ld is invoked, ignored otherwisernld: fatal: option -f and building a dynamic executable are incompatiblernld: fatal: Flags <em>proc</em>essing errorsrnrnrnrn请高手帮忙解决一下吧,谢谢了
ProC编译问题
Windows环境、VS2012、Oracle11g和自带的Procrnrn问题一:<em>proc</em>预<em>编译</em>无法打开INCLUDE文件rnpcscfg.cfg的设置是:rnparse=fullrninclude=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\sysrninclude=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\includerninclude=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include"rninclude=D:\Oracle\product\11.2.0\dbhome_1\precomp\publicrninclude=D:\Oracle\product\11.2.0\dbhome_1\OCI\includerninclude=C:/PROGRA~2/MICROS~3/VC/Includerninclude=C:/PROGRA~2/MICROS~3/VC/Include/Sysrninclude=C:/PROGRA~2/MICROS~3/VC/ATLMFC/Includerninclude=C:/PROGRA~2/MICROS~3/VC/PlatformSDK/Includerninclude=C:/PROGRA~2/MICROS~3/VC/../SDK/v2.0/Includerninclude=%SRCHOME%/precomp/publicrndefine=WIN32rndefine=WIN32COMMONrndefine=WIN64rndefine=_WIN64rndefine=_AMD64_=1rndefine=SS_64BIT_SERVERrn使用<em>proc</em><em>编译</em>.pc文件提示无法打开INCLUDE文件rnrn问题二:提示_sqlcxt函数在_main中被引用rn我按照网上的教程,添加了<em>proc</em>的头文件、库文件,工程中设置的依赖项orasql11.lib,添加了源文件orasql11.lib,<em>编译</em>的时候就提示这个错误。rn求大侠们指教啊
proc 文件编译问题
#include rn#include rnrnEXEC SQL INCLUDE sqlca;rnEXEC SQL BEGIN DECLARE SECTION;rn VARCHAR username[20];rn VARCHAR password[20];rnEXEC SQL END DECLARE SECTION;rnrnint main(int argc,char *argv[])rnrn strcpy(username.arr, "system");rn strcpy(password.arr, "tiansh");rn username.len = strlen(username.arr);rn password.len = strlen(password.arr);rnrn EXEC SQL WHENEVER SQLERROR GOTO logon_error;rn EXEC SQL CONNECT :username IDENTIFIED BY :password;rnrn printf("connect sucessfull\n");rn return;rn logon_error:rn printf("connect error");rn return; rn rn我用<em>proc</em> iname=connect.pc预<em>编译</em>完后得到connect.c文件。rncc -o connect connect.c后提示错误:rnUndefined first referencedrn symbol in filernsqlcxt connect.ornld: fatal: Symbol referencing errors. No output written to connectrn请问怎样解决阿?
ProC编译求助,谢谢!
我在WINDOWS下写了几个PC文件,在WINDOWS下我是在CMD-DOS下进行<em>编译</em>的.rn问题如下rn1、在很多论坛里都说修改配置文件可以设置<em>编译</em>参数,但是我打开precomp/admin/pcscfg.cfg里面只有一句代码define=(WIN32_LEAN_AND_MEAN),不会弄,请指教!rn2、改不了配置文件情况下,我直接写命令<em>编译</em>:rn<em>proc</em> parse=full iname=f_atom_TabOperate.pc oname=f_atom_TabOperate.c include="d:\oracle\ora92\oci\include" include="d:\oracle\ora92\precomp\public" include="D:\oracle\ora92\precomp\lib" include="D:\WorkProgram\TUXDBTOOL\File"//这是引用的文件rnrn这时候总<em>报错</em>:rnpcc-s-02015:stdio.h 无法打开include文件rnpcc-s-02015:stdlib.h 无法打开include文件rnpcc-s-02015:sttring.h 无法打开include文件
proc编译问题
Project : error PRJ0019: 工具从"正在执行自定义生成步骤"rn在 .net2005<em>编译</em><em>proc</em>预<em>编译</em>出错
proc 编译问题
大家好, 我需要移植一些<em>proc</em>程序到另外一个服务器上,rn同样的<em>编译</em>指令, 在新机器上<em>报错</em>rn<em>编译</em>指令:rnrm *.crnrm *.ornrm *.lisrn<em>proc</em> ExtraMain.pcrn<em>proc</em> pub.pcrn/oracle/app/oracle/product/9.2.0/bin/oraxlc -O3 -q64 -c ExtraMain.crn/oracle/app/oracle/product/9.2.0/bin/oraxlc -O3 -q64 -c pub.crn/oracle/app/oracle/product/9.2.0/bin/oraxlc -q64 -o bi_exp pub.o ExtraMain.o -Lrn/oracle/app/oracle/product/9.2.0/lib/ -lclntsh -lld -lm `cat /oracle/app/oraclern/product/9.2.0/lib/sysliblist` -lm -lc_r -lpthreadsrn结果rn"pub.c", line 808.10: 1506-342 (W) "/*" detected in comment.rn"pub.c", line 2211.10: 1506-342 (W) "/*" detected in comment.rnld: 0706-006 Cannot find or open library file: -l clntshrn ld:open(): A file or directory in the path name does not exist.rnrn我想应该是环境变量没搞好 于是补充了环境变量。rnSHLIB_PATH=/oracle/app/oracle/product/9.2.0/lib32:/oracle/app/oracle/product/9.2rn.0/lib:/usr/lib:/librnrnLD_LIBRARY_PATH=/oracle/app/oracle/product/9.2.0/lib32:/usr/lib:/usr/local/lib:/rnoracle/app/oracle/product/9.2.0/librnrn还是<em>报错</em>。 最后到oracle lib下查看了一下rnfile libclntsh.arnlibclntsh.a: 0653-902 Cannot open the specified file for reading.rn这个文件好像有问题的。rn跟系统管理员说,他认为oracle安装没问题, 我的编程经验不多。 请大家帮忙分析下,还有些什么思路找到解决办法?rnrn谢谢
Proc编译问题
Windows环境、VS2012、Oracle11g和自带的Procrn rn问题一:<em>proc</em>预<em>编译</em>无法打开INCLUDE文件rn pcscfg.cfg的设置是:rn parse=fullrn include=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\sysrn include=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\includern include=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include"rn include=D:\Oracle\product\11.2.0\dbhome_1\precomp\publicrn include=D:\Oracle\product\11.2.0\dbhome_1\OCI\includern include=C:/PROGRA~2/MICROS~3/VC/Includern include=C:/PROGRA~2/MICROS~3/VC/Include/Sysrn include=C:/PROGRA~2/MICROS~3/VC/ATLMFC/Includern include=C:/PROGRA~2/MICROS~3/VC/PlatformSDK/Includern include=C:/PROGRA~2/MICROS~3/VC/../SDK/v2.0/Includern include=%SRCHOME%/precomp/publicrn define=WIN32rn define=WIN32COMMONrn define=WIN64rn define=_WIN64rn define=_AMD64_=1rn define=SS_64BIT_SERVERrn 使用<em>proc</em><em>编译</em>.pc文件提示无法打开INCLUDE文件rn rn问题二:提示_sqlcxt函数在_main中被引用rn 我按照网上的教程,添加了<em>proc</em>的头文件、库文件,工程中设置的依赖项orasql11.lib,添加了源文件orasql11.lib,<em>编译</em>的时候就提示这个错误。rn 求大侠们指教啊
Oracle9.2.0.1的Proc编译问题
在Oracle9.2.0.1版本下通过Proc<em>编译</em>得到的cpp文件在VC++中<em>编译</em>不通过,报下面的错误rnerror LNK2001: unresolved external symbol "void __cdecl sqlcxt(void * *,unsigned int *,struct sqlexd *,struct sqlcxp const *)" (?sqlcxt@@YAXPAPAXPAIPAUsqlexd@@PBUsqlcxp@@@Z)rnE:\工作目录\中科信\offer9I\StockOffer\Debug\OracleDBCon.dll : fatal error LNK1120: 1 unresolved externalsrn rn我尝试过用以下各种方法<em>编译</em>都不行rnC:><em>proc</em> win32_threads=true maxopencursors=100 prefetch=100 oname=E:\tmp\ODatabase2.cpp E:\tmp\ODatabase.pcrn rnC:><em>proc</em> win32_threads=true maxopencursors=100 prefetch=100 type_code=ansi mode=ansi dynamic=ansi oname=E:\tmp\ODatabase2.cpp E:\tmp\ODatabase.pcrn rn......rn rn用Oracle9.2以前的版本<em>编译</em>没有任何问题rnrn那位大虾指点一下,谢谢了
PROC 在windows上编译
最近上数据库应用这门课,老师让实现教材上的<em>proc</em><em>编译</em>的例子,这东西应该现在很少人用了吧,找了好多资料都不对。最后摸索出来了方法,在windows上实现的,分享给大家 1 下载 oracle 企业版(32 位) 文件应该是两个压缩包,解压时一起解压。64 位的会有一个函数找不到库,弄了好久还是 没找到。 2 安装完,运行命令行,输入 <em>proc</em> 会出现一堆它的用法那就证明成功了。 安装前,如果已
proc编译的问题
在linux测试一个简单的程序,程序是一个包含了的.pc文件,可是在用<em>proc</em><em>编译</em>的时候报ncurses_dll.h中的宏定义错,这是什么原因阿?rn
proc在linux下编译的问题
我是在linux下进行pro*c/c++的编程,rn当我用<em>proc</em> xxx.pc时,成功的生成了xxx.c文件,但是当我用gcc -I /opt/oracle/product/ora10g/precomp/public xxx.c时出现错误,rn说什么 sqlorat,sqlcxt没有定义,但是我的xxx.pc代码中没有写这些变量的,只是用<em>proc</em>生成的xxx.c文件中有这些变量。rnrn我猜想是否少了一个文件,在网上查找到要有一个orasql9.lib文件,但是在我的$oracle_home/precomp/lib中没有这个文件(oracle10g ,redhat linux es3),请问一下这是怎么回事?
unix下proc编译问题
大家好:rn我在aix5.3下用oracle自带的.mk文件<em>编译</em>pc文件报rnSyntax error at line 135, column 2, file /usr/include/standards.h:rnError at line 135, column 2 in file /usr/include/standards.hrn#warning The -qdfp option is required to <em>proc</em>ess DFP code in headers.rn.1rnPCC-S-02014, Encountered the symbol "warning" when expecting one of the followinrng:rnrn a numeric constant, newline, define, elif, else, endif,rn error, if, ifdef, ifndef, include, line, pragma, undef,rn an immediate pre<em>proc</em>essor command, a C token,rnThe symbol "newline," was substituted for "warning" to continue.rnrnSyntax error at line 60, column 12, file sample1.pc:rnError at line 60, column 12 in file sample1.pcrn size_t buf_len, msg_len;rn...........1rnPCC-S-02201, Encountered the symbol "buf_len" when expecting one of the followinrng:rnrn ; , = : ( [ * ? | & < > + - / % . ^ *= /= %= += -= <>=rn &&= ||= ^= | & == != = << >> ++ -- ->rnThe symbol ";" was substituted for "buf_len" to continue.rnrnError at line 0, column 0 in file sample1.pcrnPCC-F-02102, Fatal error while doing C pre<em>proc</em>essingrnmake: The error code from the last command is 1.rnrnrnStop.rnmake: The error code from the last command is 2.rnrn错误。rn后面上网查说是oracle数据库客户端和服务端的版本不一致导致的。rn我看了一下服务端是9i,服务端是11g。rn后面找了一台服务端和客户端都是9i的,<em>编译</em>同样的pc程序是没有问题的。rn请问下有谁碰到过类似的问题吗?rn这个问题是否一定要重新安装客户端版本才能解决?rn还是修改demo_<em>proc</em>.mk内容以适应服务端和客户端版本不一致的问题。rn希望有做过类似的朋友给予帮助和指导,先谢谢了。rnrn
linux下proC编译问题?
gcc -o <em>proc</em> <em>proc</em>.c -L $ORACLE_HOME/lib -lclntshrnrn<em>proc</em><em>编译</em>成功,用gcc<em>编译</em>时出现下面提示rn/vis/applvis/visora/8.0.6/lib/libclntsh.so: undefined reference to `slpmprodstab'rnrnoracle版本是9.2
编译proc出错,帮帮我
这个是<em>proc</em>源代码rn#includernusing namespace std;rnrnEXEC SQL BEGIN DECLARE SECTION;rn char userid[20]="chaijing/cj456";rn char v_name[5];rn short ind_name;rn int v_id;rnEXEC SQL END DECLARE SECTION;rnEXEC SQL INCLUDE sqlca;rnrnvoid sqlerror();rnrnint main()rn EXEC SQL WHENEVER SQLERROR DO sqlerror();rn EXEC SQL CONNECT :userid;rn cout << "enter id: ";rn cin >> v_id;rnrn EXEC SQL rn SELECT first_namern INTO :v_name:ind_namern FROM s_emprn WHERE id = :v_id;rnrn EXEC SQL COMMIT WORK RELEASE;rn cout << "hello, " << v_name << endl;rn cout << "ind_name: " << ind_name << endl;rn return 0;rnrnrnvoid sqlerror()rn EXEC SQL WHENEVER SQLERROR CONTINUE;rn cout << sqlca.sqlerrm.sqlerrmc << endl;rn EXEC SQL ROLLBACK WORK RELEASE;rn exit(-1);rnrnrn预<em>编译</em><em>proc</em>rn<em>proc</em> hello.pc oname=hello.cc parse=none rnrn<em>编译</em>:g++ -o hello hello.cc -lclntshrn到这一步骤就出错了。rnhell.cc:117: error: ISO C++ forbids declaration of `sqlcxt' with no typernhell.cc:119: error: ISO C++ forbids declaration of `sqlcx2t' with no typernhell.cc:121: error: ISO C++ forbids declaration of `sqlbuft' with no typernhell.cc:122: error: ISO C++ forbids declaration of `sqlgs2t' with no typernhell.cc:123: error: ISO C++ forbids declaration of `sqlorat' with no typernhell.cc: In function `int main()':rnhell.cc:117: error: too many arguments to function `int sqlcxt()'rnhell.cc:299: error: at this point in filernhell.cc:117: error: too many arguments to function `int sqlcxt()'rnhell.cc:352: error: at this point in filernhell.cc:117: error: too many arguments to function `int sqlcxt()'rnhell.cc:372: error: at this point in filernhell.cc: In function `void sqlerror()':rnhell.cc:117: error: too many arguments to function `int sqlcxt()'rnhell.cc:400: error: at this point in filernrn帮帮我、rnrnrnrnrnrn
proc编译问题
rnrn我写了<em>proc</em>的程序,已经从pc<em>编译</em>成.c的文件了,但是在将.c<em>编译</em>成.o的时候出现以下提示错误:rnrn/lib/libdl.so.2: undefined reference to `_dl_addr@GLIBC_PRIVATE'rn/lib/libdl.so.2: undefined reference to `_dl_open@GLIBC_PRIVATE'rn/lib/libdl.so.2: undefined reference to `_dl_close@GLIBC_PRIVATE'rn/lib/libdl.so.2: undefined reference to `_dl_sym@GLIBC_PRIVATE'rn/lib/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_PRIVATE'rnrnrn各位精通此道的指点一下,谢谢!rnrn我的系统是,rh7.3,+oracle 8.1.6rnrn谢谢!rn
vc连接proc问题
请问<em>vc</em>要使用<em>proc</em>到底要如何设置,网络上n个文章,照做了,没有一个可以成功的。。。rn比如这个:b) 当出现没有Exam01.pre 的对话框时单击OK,此时弹出PROC预<em>编译</em>对话框;rn  c) 利用菜单中的加入项或单击“+”按钮,将进行预<em>编译</em>的源文件如Exam01.pc及其路径添加到预<em>编译</em>对话框的Input项中,即Input项中出现E: \ PROCW \ Exam01 \ Exam01.pc。此时在Output项中自动显示输出文件如Exam01.c和路径(必要时可修改文件名和路径),即Output项中出现E: \ PROCW \ Exam01 \ Exam01.c。rnrnrn我用console控制台做的,根本就没有跳出所谓的对话框。。rnrnrn请问各位有没有完全的设置<em>proc</em>的说明啊。。。。谢谢。。
vc编译gettext
 原文地址:  https://github.com/kahrl/gettext-ms<em>vc</em> <em>编译</em>通不过在config.h修改配置。 Visual Studio 2013 solution for gettext-0.19.4 and libiconv-1.14 ===========================================================
用VC如何编译
有如下源码:rn//HELLO.Hrnclass CMyWinApp : public CWinApprnrnpublic:rn virtual BOOL InitInstance(); // –莱ノ祘Α常莱赣э糶ㄧΑrn virtual BOOL OnIdle(LONG lCount); // OnIdle ノㄓ矪瞶盯竚丁idle timern;rnrn//--------------------------------------------------------------------rnclass CMyFrameWnd : public CFrameWndrnrnpublic:rn CMyFrameWnd(); // constructorrn afx_msg void OnPaint(); // for WM_PAINTrn afx_msg void OnAbout(); // for WM_COMMAND (IDM_ABOUT)rn void IdleTimeHandler(LONG lCount); // we want it call by CMyWinApp::OnIdlernrnprivate:rn DECLARE_MESSAGE_MAP() // Declare Message Maprn static VOID CALLBACK LineDDACallback(int,int,LPARAM);rn // 猔種: callback ㄧΑゲ斗琌 "static"埃留旅 'this' 夹rn;rn//--------------------------------------------------------------------rn//HELLO.CPPrn#include "Hello.h"rn#include "Resource.h"rnrnCMyWinApp theApp; // application objectrnrn//--------------------------------------------------------------------rn// CMyWinApp's memberrn//--------------------------------------------------------------------rnBOOL CMyWinApp::InitInstance()rnrn m_pMainWnd = new CMyFrameWnd();rn m_pMainWnd->ShowWindow(m_nCmdShow);rn m_pMainWnd->UpdateWindow();rn return TRUE;rnrn//--------------------------------------------------------------------rn// CMyWinApp's memberrn//--------------------------------------------------------------------rnBOOL CMyWinApp::OnIdle(LONG lCount)rnrn CMyFrameWnd* pWnd = (CMyFrameWnd*)m_pMainWnd;rn pWnd->IdleTimeHandler(lCount);rnrn return TRUE;rnrn//--------------------------------------------------------------------rn// CMyFrameWnd's memberrn//--------------------------------------------------------------------rnCMyFrameWnd::CMyFrameWnd()rnrn Create(NULL, "Hello MFC", WS_OVERLAPPEDWINDOW, rectDefault,rn NULL, "MainMenu"); // "MainMenu" ﹚竡 RC 郎rnrn//--------------------------------------------------------------------rnBEGIN_MESSAGE_MAP(CMyFrameWnd, CFrameWnd)rn ON_COMMAND(IDM_ABOUT, OnAbout)rn ON_WM_PAINT()rnEND_MESSAGE_MAP()rn//--------------------------------------------------------------------rnvoid CMyFrameWnd::OnPaint()rnrnCPaintDC dc(this);rnCRect rect;rnrn GetClientRect(rect);rnrn dc.SetTextAlign(TA_BOTTOM | TA_CENTER);rnrn ::LineDDA(rect.right/2, 0, rect.right/2, rect.bottom/2,rn (LINEDDAPROC) LineDDACallback, (LPARAM) (LPVOID) &dc);rnrn//--------------------------------------------------------------------rnVOID CALLBACK CMyFrameWnd::LineDDACallback(int x, int y, LPARAM lpdc)rnrnstatic char szText[] = "Hello, MFC";rnrn ((CDC*)lpdc)->TextOut(x, y, szText, sizeof(szText)-1);rn for(int i=1; iDrawText(str, &rect, DT_LEFT | DT_TOP);rnrn//--------------------------------------------------------------------rn// resource.hrn#define IDM_ABOUT 100rn// hello.rcrn#include "resource.h"rn#include "afxres.h"rnrnJJHouRIcon ICON DISCARDABLE "JJHOUR.ICO"rnAFX_IDI_STD_FRAME ICON DISCARDABLE "JJHOUR.ICO"rnrnMainMenu MENU DISCARDABLErnrn POPUP "&Help"rn rn MENUITEM "&About HelloMFC...", IDM_ABOUTrn rnrnrnAboutBox DIALOG DISCARDABLE 34, 22, 147, 55rnSTYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENUrnCAPTION "About Hello"rnrn ICON "JJHouRIcon",IDC_STATIC,11,17,18,20rn LTEXT "Hello MFC 4.0",IDC_STATIC,40,10,52,8rn LTEXT "Copyright 1996 Top Studio",IDC_STATIC,40,25,100,8rn LTEXT "J.J.Hou",IDC_STATIC,40,40,100,8rn DEFPUSHBUTTON "OK",IDOK,105,7,32,14,WS_GROUPrnrn//STDAFX.CPPrn#include "stdafx.h"rn//STDAFX.Hrn#include
PROC集成到VC环境PROC集成到VC环境
PROC集成到VC环境PROC集成到VC环境PROC集成到VC环境
有关自己定义的/proc内核模块编译——狂报错!报狂错!
我的系统是ReaHat9rn在做OS内核实习的时候碰到极其郁闷的问题(可能你已经遇到了吧)rn源码如下:rn#include rn#include rn#include rnrnint my_read(char *kernel_buf, char **usr_buf, off_t offset, int buf_size, int size)rnrn int len; //buffer lengthrn static char my_buf[80];rn static int count = 1;rn static char *str = "1234567890";rnrn if(offset > 0)return 0;rn len = sprintf(my_buf, "%s" str);rn *usr_buf = my_buf;rn return len;rnrnrnstruct <em>proc</em>_dir_entry my_mod_<em>proc</em>_file = rn 0, rn 9, rn "my_module", rn S_IFREG | S_IRUSR, rn 1,rn 0,rn 0, rn 80, rn NULL, rn my_read, rn NULL rn;rnrnrnint init_module()rnrn return <em>proc</em>_register(&<em>proc</em>_root, &my_mod_<em>proc</em>_file);rnrnrnvoid cleanup_module()rnrn <em>proc</em>_unregister(&<em>proc</em>_root, my_mod_<em>proc</em>_file.low_ino);rnrn仅此而已,用rngcc -c -Wall -D__KERNEL__ -DMODULE my_module.crn<em>编译</em>时,报了一堆头文件错误:rn/linux/<em>proc</em>_fs line:57 parse error before "mode_t"....rn首先感激兄弟的耐心,麻烦问一下这是哪里的错误啊?rn焦头烂额中......rn
proc编译sqx文件报错.
项目中 一个sqx文件新增了个sql (类似下面这个,省略掉了大部分内容):rnselect A.APP_SNO, (SELECT COUNT(1) FROM OTC_MATCHED B WHERE A.APP_SNO = B.APP_SNO AND A.APP_DATE = B.APP_DATE) AS MATCHED_CNT rnFROM OTC_QUOTE A;rnrn<em>proc</em> 预<em>编译</em><em>报错</em>。(脚本命令没改过,项目都是用这个)rn<em>proc</em> def_sqlcode=yes release_cursor=yes sqlcheck=syntax ireclen=256 parse=none code=cpp cpp_suffix=cpp DBMS=V8 unsafe_null=yes char_map=string %BUILD_FILE%.sqx rnrn,(SELECT Crn1>OUNT(1) FROM OTC_MATCHED B WHERE A.APP_SNO = B.APP_SNO AND A.APP_DATE = B.APP_DArn1>TE) AS MATCHED_CNT rn1>................................................................................rn1>................................................................................rn1>................................................................................rn1>................................................................................rn1>................................................................................rn1>................................................................................rn1>...............................................................................1rn1>PCC-S-02201, 出现符号 "COUNT"在需要下列之一时:rn1> ( ) * + - / . @ | at,rn1> day, hour, minute, month, second, year,rn1>符号 "(" 被替换为 "COUNT" 后继续。rn1>语法错误出现在3646行,569列,rnrnrnrnrn
求教:编译PROC编译出来的文件出错
出错信息:rn/tmp/ccC3Emzt.o(.text+0xbc): In function 'main':rn: undefined reference to 'ECPGget_sqlca'
用mxmlc 编译 mxml 报错
我用命令行<em>编译</em>mxml文件,如果不带那个 &quot;-services=E:\..&quot;这个参数就没问题,带了这个参数就报了这个错误.搞过的兄弟给看看. 这个东东在MyEclipse(带Flex插件)的环境下<em>编译</em>没问题,发布之后调用Java方法没有问题. E:\flexworkspace\tyyz_flex\src&gt;mxmlc -services=E:\flexworkspace\testjava...
用VS2017编译QCharts报错
![图片说明](https://img-ask.csdn.net/upload/201712/25/1514212098_105613.png)n这句话<em>报错</em>是什么原因。n大佬们有什么方法可以解决<em>报错</em>内容。
关于proc*c的编译错误信息
我通过Proc*c把file.pc预编成file.pc,用VC60运行出现如下信息:(没有语法错误)rnLoaded 'C:\WINNT\System32\ntdll.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\ORASQL8.DLL', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\oracore8.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\ORANLS8.DLL', no matching symbolic information found.rnLoaded 'C:\WINNT\system32\kernel32.dll', no matching symbolic information found.rnLoaded 'C:\WINNT\system32\ms<em>vc</em>rt.dll', no matching symbolic information found.rnLoaded 'C:\WINNT\system32\advapi32.dll', no matching symbolic information found.rnLoaded 'C:\WINNT\system32\rpcrt4.dll', no matching symbolic information found.rnLoaded 'C:\WINNT\system32\winmm.dll', no matching symbolic information found.rnLoaded 'C:\WINNT\system32\user32.dll', no matching symbolic information found.rnLoaded 'C:\WINNT\system32\gdi32.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\oraclient8.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\oravsn8.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\oracommon8.dll', no matching symbolic information found.rnrn。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。rnrnrnLoaded 'D:\oracle\ora81\bin\orannds8.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\oranms.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\oranmsp.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\oratrace8.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\ORAPLS8.DLL', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\ORASLAX8.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\orawtc8.dll', no matching symbolic information found.rnLoaded 'C:\WINNT\system32\imm32.dll', no matching symbolic information found.rnLoaded 'D:\oracle\ora81\bin\oranbeq8.dll', no matching symbolic information found.rnThe thread 0x450 has exited with code 1 (0x1).rnThe program 'E:\tmp\pl_sql\debug\Debug\04-cv1.exe' has exited with code 1 (0x1).rnrnrn不知为什么,不能生成file.exe文件
在Linux下编译Oracle的ProC的问题
OS是Fedora Core release 4 (Stentz),在当前目录下有一个XXX.mk和一个XXX.pc文件,rn用make<em>编译</em>:rn[i][oracle@localhost src]$ make -f XXX.mkrnXXX.orncc -c -Aa -g -I/u01/app/oracle/10.2.0/db_1/precomp/public XXX.crn:1:2: error: missing '(' after predicaternmake: *** [XXX.o] Error 1[/i]rn总是报这个错,但是在HP Unix下都是通过的,是不是在Linux下要做些什么修改?rn请哪位大侠给指点一下.rnrnXXX.mk的内容:rn#include $(ORACLE_HOME)/precomp/lib/env_precomp.mkrnrn# RhrnCC = ccrnRM = rm -frnCP = cp -prnAR = ar -rrnPROC = <em>proc</em>rnEXE = execrnMV = mvrnrn# CC IvVrn#CCOPT = +DA2.0W -Aa -g -D_HPUX_SOURCE -D_PROTOTYPESrn#CCOPT = -Aa -g -DDEBUG -DERROR +DD64rn#aCpE32bitrn#CCOPT = -Aa -g +DD64rnCCOPT = -Aa -grnrn# fBNgYe[rnBASEDIR = $(HOME)/batch/w/wharnBINDIR = $(BASEDIR)/bin/crnINCDIR = $(BASEDIR)/incrnLIBDIR = $(BASEDIR)/librnSRCDIR = $(BASEDIR)/src/Whabtmm017B01rnCOMDIR = $(BASEDIR)/src/Whamm000B01rnORAINC = $(ORACLE_HOME)/precomp/publicrnrn# -LrnORACLE_LIBS = -L$(ORACLE_HOME)/lib\rn -lclntshrnrnLIBS = -L/lib/hpux64rnrn#-IrnINCDIR = $(HOME)/tk/incrnrnINCLUDES = -I$(ORACLE_HOME)/precomp/publicrnrn#PROCFLAGS = include=$(INCDIR) sqlcheck=semanticsrnPROCFLAGS = include=$(INCDIR) sqlcheck=semantics userid=wha/wharnrnOBJS = Whabtmm017B01.o\rn $(COMDIR)/src/Whamm000B01.ornrnSRCS = Whabtmm017B01.crnrn# exernWhabtmm017B01.exe : $(OBJS)rn @echo "Whabtmm017B01.exe"rn $(CC) $(CCOPT) -o $@ $(OBJS) $(LIBS) $(ORACLE_LIBS) $(INCLUDES) -lmrn $(MV) $@ $(BINDIR)/Whabtmm017B01.exern $(CC) $(CCOPT) -o $@ $(OBJS) $(LIBS) $(ORACLE_LIBS) $(INCLUDES) -lmrn $(RM) *.ornrn# ccrnWhabtmm017B01.o : Whabtmm017B01.crn @echo "Whabtmm017B01.o"rn $(CC) -c $(CCOPT) $(INCLUDES) Whabtmm017B01.crn# $(RM) Whabtmm017B01.lisrnrn$(COMDIR)/src/Whamm000B01.o : $(COMDIR)/src/Whamm000B01.crn @echo "$(COMDIR)/src/Whamm000B01.o $(CC) -c $(CCOPT) $(INCLUDES) $(COMDIR)/src/Whamm000B01.c"rn $(CC) -c $(CCOPT) $(INCLUDES) $(COMDIR)/src/Whamm000B01.crn# $(RM) Whabtmm000B01.lisrnrn# <em>proc</em>rnWhabtmm017B01.c : Whabtmm017B01.pcrn @echo "Whabtmm017B01.c"rn $(PROC) $(INCLUDES) $(PROCFLAGS) iname=Whabtmm017B01.pcrnclean:rn @echo "Cleaning ..."rn rm -i -f $(OBJS) Whabtmm017B01.c *.lis Whabtmm017B01.exe core *.cod *.cud *.dcl *.old *.jisrn @echo "done!"
proc编译后不能运行
我写了一个<em>proc</em>程序练习rn#include rnEXEC SQL BEGIN DECLARE SECTION;rnVARCHAR username[20];rnVARCHAR password[20];rnEXEC SQL END DECLARE SECTION;rnEXEC SQL INCLUDE SQLCA;rnvoid sqlerror();rnint main()rnrnint total_number;rnstrcpy(username.arr,"aa");rnusername.len=strlen(username.arr);rnstrcpy(password.arr,"bb");rnEXEC SQL CONNECT :username IDENTIFIED BY :password;rnprintf("\n connect to database as %s\n",username.arr);rnEXEC SQL COMMIT WORK RELEASE;rnexit(0);rnrn将程序保存为1.pcrn然后<em>proc</em> iname=1.pc oname=1.crncc 1.crn<em>报错</em>:rnld: 0711-317 ERROR: Undefined symbol: .sqlcxtrn哪位用过<em>proc</em>的大侠指点一下.
用VC编译嗅探器时的一个报错,解决不了了。。。
d:\<em>vc</em>\include\ntddndis.h(48) : error C2146: syntax error : missing ';' before identifier 'NDIS_OID'rnd:\<em>vc</em>\include\ntddndis.h(48) : fatal error C1004: unexpected end of file foundrnrn出错处的那段代码:rn// This is the type of an NDIS OID value.rn//rntypedef ULONG NDIS_OID, *PNDIS_OID;rnrn完全不知道怎么办了,ntddndis.h这个又不是我们自己写的怎么也会<em>报错</em>哦。。。而且这个错莫名其妙。。。rnrn问了下有说改下VC里面INCLUD顺序的,试了,不管用啊,头文件的顺序交换也不行。。。rn
急!!!proc 与 C的编译问题
现有4个<em>proc</em>的pc文件,预<em>编译</em>成cpp后,将4个CPP连同其他C的文件联编,rnVC<em>编译</em>器出现如下错误,rnerror LNK2005: "struct oraca oraca" (?oraca@@3U0@A) はすでに TDTCommon.obj で定義されていますrnerror LNK2005: "struct sqlca sqlca" (?sqlca@@3U0@A) はすでに TDTCommon.obj で定義されていますrnrn意思说"struct oraca oraca" 重复定义rn该如何解决这个问题.....?rn急rn
关于编译 Oracle 的 ProC 文件?
请问rn如何在Windows下<em>编译</em>ProC文件,rn或者rn如何在Unix下,不通过<em>proc</em>.mk<em>编译</em>ProC文件?
请教怎么编译proc文件?
<em>proc</em><em>编译</em>成C文件后怎么用C<em>编译</em>?rn需要加什么库吗?看过一位老兄说加:rncc -o test -g test.c rn-L $ORACLE_HOME/lib -lclntsh -I $ORACLE_HOME/precomp/publicrn可是提示说没有libclntsh这个库?rn郁闷中,那位老兄帮帮忙???
Proc SQLCODE 编译问题!!紧急!!
我的.pc源文件中,没有定义SQLCODE, <em>proc</em>的<em>编译</em>参数值def_sqlcode=false ,为什么<em>编译</em>出来的.c中有 SQLCODE=sqlca.sqlcode 的东东?导致把.c<em>编译</em>成.obj的时候<em>报错</em>:rnerror: 'SQLCODE' undeclared (first use in this function)rnrnrn大侠求救!!
windwos下如何编译proc程序?
我的oracle服务端在windwos2000平台下,rn我写了一段<em>proc</em>程序——employee.pcrn用 c:\><em>proc</em> iname=employee MODE=ORACLErn后成功生成了employee.c文件。rn请问再怎样处理才能生成可执行文件?rn我的机器上有VC和Turbor Crnrn我用tc<em>编译</em>时总出现连接错误,如下:rn Compiling E:\PROC\EMPLOYEE.C:rn Linking D:\TURBOC2\EMPLOYEE.EXE:rn Linker Error: Undefined symbol '__setargv' in module C0Srn Linker Error: Undefined symbol '__setenvp' in module C0Srn Linker Error: Undefined symbol '_sqlglm' in module EMPLOYEE.Crn Linker Error: Undefined symbol '_sqlcxt' in module EMPLOYEE.Crn Linker Error: Undefined symbol '__exitclean' in module EXITrnrn请高手指教。rnrnrn
proc例子编译问题?急!
<em>编译</em>/oracle/product/8.1.7/precomp/demo/<em>proc</em>/的sample1.pc报如下的提示信息rn[oracle@pc407-2kp <em>proc</em>]$ <em>proc</em> parse=no iname=sample1.pcrnrnPro*C/C++: Release 8.1.7.0.0 - Production on Wed May 24 15:00:08 2006rnrn(c) Copyright 2000 Oracle Corporation. All rights reserved.rnrnSystem default option values taken from: /data/oracle/oracle/product/8.1.7/precomp/admin/pcscfg.cfgrnrnSemantic error at line 97, column 23, file sample1.pc:rn EXEC SQL CONNECT :username IDENTIFIED BY :password;rn......................1rnPCC-S-02322, found undefined identifierrnSemantic error at line 97, column 47, file sample1.pc:rn EXEC SQL CONNECT :username IDENTIFIED BY :password;rn..............................................1rnPCC-S-02322, found undefined identifierrnSemantic error at line 120, column 19, file sample1.pc:rn INTO :emprec INDICATOR :emprec_indrn..................1rnPCC-S-02322, found undefined identifierrnSemantic error at line 120, column 37, file sample1.pc:rn INTO :emprec INDICATOR :emprec_indrn....................................1rnPCC-S-02322, found undefined identifierrnSemantic error at line 122, column 28, file sample1.pc:rn WHERE EMPNO = :emp_number;rn...........................1rnPCC-S-02322, found undefined identifierrnrn如何配置才可以避免?rn
求助linux下编译proc程序出错
写了个<em>proc</em>程序,windows下用<em>vc</em>跑的哇哇的,一点毛病没有,可在linux下连<em>proc</em> *.pc都通不过,满屏的错,大部分都是:rnPCC-S-02201,Encountered the symbol "_fd_mask" when expecting on of the following:........rn第一次在linux下写<em>proc</em>,谁知道这是怎么回事啊?rnrn后来我直接把windows下生成的.c文件拷到linux下,用gcc<em>编译</em>,也通不过,错误是:rn..../libclntsh.so:undefined reference to '_ctype_tolower'rn..../libclntsh.so:undefined reference to '_ctype_toupper'rn..../libclntsh.so:undefined reference to '_ctype_b'rn我已经指定libclntsh.so的位置了,gcc -L /home/oracle/product/9.2.0.1.0/lib -lclntsh ManageSystem_PROC.o -o ManageSystem_PROCrn怎么解决啊,折磨我2天了都,高人请指教..............rn
vcproc如何设置
请问<em>vc</em>要使用<em>proc</em>到底要如何设置,网络上n个文章,照做了,没有一个可以成功的。。。rn比如这个:b) 当出现没有Exam01.pre 的对话框时单击OK,此时弹出PROC预<em>编译</em>对话框;rn  c) 利用菜单中的加入项或单击“+”按钮,将进行预<em>编译</em>的源文件如Exam01.pc及其路径添加到预<em>编译</em>对话框的Input项中,即Input项中出现E: \ PROCW \ Exam01 \ Exam01.pc。此时在Output项中自动显示输出文件如Exam01.c和路径(必要时可修改文件名和路径),即Output项中出现E: \ PROCW \ Exam01 \ Exam01.c。rnrnrn前面全部照做了,根本就没有跳出所谓的对话框。。rnrnrn请问各位有没有完全的设置<em>proc</em>的说明啊。。。。谢谢。。rn
端口扫描程序,用vc编译的!
<em>vc</em>实现的端口扫描程序,上课的时候老师讲的,绝对有用!
网络编程用VC的编译问题
为什么我在VC中调用WSAStartup在Link的时候报告.obj:error LNK2001:unresolved external symbol __imp__WSAStartup@8错误rn一注释掉WSAStartup就什么事都没有了rn以下是部分代码rnrn.h文件中rn#include rn... ...rnrn.cpp文件中:rn... ...rn WORD wmav=1;rn WORD wmiv=2;rn WORD ver;rn LPWSADATA lpwsa;rn UpdateData(true);rn ver=MAKEWORD(wmav,wmiv);rn lpwsa=(LPWSADATA)malloc(sizeof(WSADATA));rn if (rn WSAStartup(ver,lpwsa);// != 0) rn rn MessageBox("WSAStart error!","Error!",MB_OK);rn rn rn困惑中ing...
用VC编译C++遇到问题
小弟初学MFC,后来觉得c++的基础还不够,想用VC来<em>编译</em>c++程序,但第一个'hello world!'程序就遇到困难,#include 就<em>编译</em>不过,说是找不到iostream.h,我手动可以找到,想来想去肯定是有什么设置我没弄好,我用的是VC7.0,我不想用别的<em>编译</em>器。忘有经验的指教,我发现有很多人跟我一样有同样问题。
用VC IDE进行编译
我有一程序Momentum.cpp, 用命令行方式<em>编译</em>rncl /c /w /IE:\Progra~1\ofeli\include Momentum.cpprn可以通过,而用VC IDE的Workspace却出现如下错误:rn我已将Project-setting-C++内的<em>编译</em>选项调整过了,还是有错rn请高手指点!谢谢!rnrnCompiling...rnMomentum.cpprnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(1632) : note C6311: E:\PROGRAM FILES\OFELI\INCLUDE\MemTrack.h(45) : see previous definition of 'DEBUG_NEW'rnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(122) : error C2059: syntax error : 'string'rnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(123) : error C2091: function returns functionrnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(123) : error C2802: static member 'operator new' has no formal parametersrnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(123) : error C2333: 'new' : error in function declaration; skipping function bodyrnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : error C2059: syntax error : 'string'rnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : error C2091: function returns functionrnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : error C2802: static member 'operator new' has no formal parametersrnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(135) : error C2059: syntax error : 'string'rnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(135) : error C2091: function returns functionrnE:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(135) : error C2556: 'void *(__cdecl *__stdcall CNoTrackObject::operator new(void))(unsigned int,const char *,int)' : overloaded function differs only by return type from 'void *(__cdecl *__stdcall CNoTrackObject::operator new(void))(unsigned int)'rn E:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxtls_.h(131) : see declaration of 'new'rnError executing cl.exe.rnrn
用VC编译C的问题
: fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limitrnError executing cl.exe.rnrn出现这,怎么使用这/Zm?????????
为什么在vc编译老是报错
本人初学c语言 知道有的程序在tc和<em>vc</em>中<em>编译</em>的结果不一样 ,但这个程序在tc中可以运行,但是在<em>vc</em>中老是<em>报错</em>,请高手指点一下 该怎么修改rnincludernincludernmain()rnrnint i=1;rnfor(;i0;n--)rns*=n;rnreturn(s);rn
在VC中配置ProC开发环境
在VC中配置Proc开发环境rnrn在ora8 、9 中有一个 <em>proc</em>ui.exern在ora10g中怎么不存在了呢,我没有找到rnrn请教熟悉的朋友,为了公平,第一位告知正确答案者,将赠予所有分
用proc执行存储过程?
本来也很容易,只是我的存储过程是动态的,参数也是动态的,如何做呢,是不是proc就解决不了
proc剖析文件系统
/<em>proc</em> 文件系统包含了丰富的信息 —— 用一点点脚本就可以用它来 剖析服务器。
用ProC 插入数据不成功
[code=C/C++]#include rnEXEC SQL INCLUDE SQLCA;rnvoid main()rnrn /*声明宿主变量*/rn EXEC SQL BEGIN DECLARE SECTION;rn VARCHAR usr[20],pass[20],serv[20];rn char name[20];rn int id,score;rn EXEC SQL END DECLARE SECTION;rn /*设置连接数据库的用户名、密码和数据库服务名*/rn strcpy(usr.arr,"orcl");rn usr.len=(unsigned short)strlen((char *)usr.arr);rn strcpy(pass.arr,"123456");rn pass.len=(unsigned short)strlen((char *)pass.arr);rn strcpy(serv.arr,"orcl");rn serv.len=(unsigned short)strlen((char *)serv.arr);rn rn EXEC SQL CONNECT :usr IDENTIFIED BY :pass USING :serv;rn /*如果正式编程,最好加入对sqlca.sqlcode的判断rn if(sqlca.sqlcode)rn rn printf("ORA-ERROR: sqlca.sqlcode=%d\n",sqlca,sqlcode);rn exit(0);rn */rn printf("Connect!\n");rn /*用户输入欲查询的ID号*/rn id=4;rn strcpy(name,"liu");rn score=98;rn /*执行动态的SQL查询语句*/rn EXEC SQL INSERT INTO student(id,name,score) VALUES (:id,:name,:score);rn printf("id=%d Name=%s Score=%d\n",id,name,score);rn /*提交事务并断开与数据库的连接*/rnEXEC SQL COMMIT WORK;rnEXEC SQL COMMIT WORK RELEASE;rn printf("Disconnect!\n");rnrn[/code]rn错在哪里了呢?
winnt.h文件报错 VC编译通过 VS2008编译不通过
c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C2146: 语法错误 : 缺少“;”(在标识符“PVOID64”的前面)rnc:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 intrnc:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C2146: 语法错误 : 缺少“;”(在标识符“Buffer”的前面)rnc:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 intrnc:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 intrne:\opengl\chapter18\loadmd2\texture.h(5) : fatal error C1083: 无法打开包括文件:“iostream.h”: No such file or directoryrnrn总共六个错误rn<em>编译</em>一个OPENGL关于MD2文件的载入例子程序rn书上的例子rn例子在VC6中<em>编译</em>很正常 但在VS2008中就是通不过rn该如何配置VS啊
编译 报错
新建一个动态web项目,web.xml的第一行<em>报错</em>,但是好像不影响程序运行rnrnrnrn错误内容如下:rnThe errors below were detected when validating the file "javaee_6.xsd" via the file "web.xml". In most cases these errors can be detected by validating "javaee_6.xsd" directly. However it is possible that errors will only occur when javaee_6.xsd is validated in the context of web.xml.
谁帮我用oracle 8.0的proc编译一个pc文件
谢谢
Linux平台上编译proc*c 代码用的Makefile
自用的用来<em>编译</em>pro*c 代码的makefile, 包括2个部分,一个是common.mak, 定义一些共通属性,一个则是用来<em>编译</em>main程序。   1. common.mak .SUFFIXES: .pc .c vpath %.h ../inc vpath %.tbl ../tbl CC = gcc PROC = <em>proc</em> LD = ld RM = rm -f DE...
初学者问题:PROC程序用什么来编译呢?
-
请问:用C++写的proc程序,怎样编译啊?
在a.h, a.cpp文件中有一些函数,其中的<em>proc</em>*c程序也在其中,rn文件main.pc中调用a.h,a.cpp中写的函数进行运行,rnrn我用rn<em>proc</em> iname=main.pc oname=main.cpp 预<em>编译</em>,有错误,不知道是怎么回事啊rnrn错误为:rnrnPro*C/C++: Release 8.1.7.0.0 - Production on Tue Sep 4 18:43:23 2007rnrn(c) Copyright 2000 Oracle Corporation. All rights reserved.rnrnSystem default option values taken from: /oracle/8.1.7/precomp/admin/pcscfg.cfgrnrnSyntax error at line 1, column 1, file /usr/local/include/g++-3/iostream:rnError at line 1, column 1 in file /usr/local/include/g++-3/iostreamrn// -*- C++ -*- forwarding header.rn1rnPCC-S-02201, Encountered the symbol "/" when expecting one of the following:rnrn ; ( * auto, char, const, double, enum, extern, float, int,rn long, ulong_varchar, OCIBFileLocator OCIBlobLocator,rn OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,rn OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,rn short, signed, sql_context, sql_cursor, static, struct,rn typedef, union, unsigned, utext, uvarchar, varchar, void,rn volatile, an identifier, a typedef name,rn a precompiled header, an immediate pre<em>proc</em>essor command,rn exec oracle, exec oracle begin, exec, exec sql,rn exec sql begin, exec sql type, exec sql var,rn exec sql include,rnrnError at line 0, column 0 in file main.pcrnPCC-F-02102, Fatal error while doing C pre<em>proc</em>essingrnrn
proc 文件系统,proc 文件系统
<em>proc</em> 文件系统 <em>proc</em> 文件系统 <em>proc</em> 文件系统 <em>proc</em> 文件系统 <em>proc</em> 文件系统
VC报错
向服务器发送 "PORT 192,168,1,3,4,15\r\n"时返回如下错误:rnrn0x0012f010 "500 Invalid PORT Command.rnrn这是由什么原因引起的,还是跟本就没有这个命令,rn如何解决??
ProC编程 ProC入门
Proc编程入门,详细介绍内部数据类型、外部数据类型、SQL变量、动态SQL等,一本必备的参考书籍哦
proc
请问.pc的文件在unix下如何<em>编译</em>成可执行的文件啊?
proc?
请问装了ORACLE后,是不是自带<em>proc</em><em>编译</em>器啊,在哪里可以找到<em>proc</em>啊?rn使用它的话要做些什么工作啊?
proc 全连接 full join 报错问题
以下全联结语句在pl/sql 下可以执行,到了<em>proc</em>就不能执行了rn select a.boss_seq, b.boss_seqrn from posp_trans_info a FULL JOIN posp_trans_info b on a.boss_seq = b.boss_seq ;rnrn<em>报错</em>:rnPCC-S-02201, Encountered the symbol "FULL" when expecting one of the following:rnrn ; , for, union, connect, group, having, intersect, minus,rn order, start, where, with,rnrnrnrn我换了左连接 left outer join 一样的,除非换成另外一种写法 a.boss_seq(+) = b.boss_seqrnrn问高人,全连接的这个<em>proc</em>错误如何处理?
PROC动态执行SQL,多次执行报错...
PROC动态执行SELECT查询,建立数据库连接后,调用SELECT动态查询函数,第一次查询成功返回,第二次调用的时候<em>报错</em>:ORA-01012 "not logged on"rn动态SQL查询代码如下:rn[code=c]int select_sql(char *sql_str, char *out_var, char *in_var)rnrn printf("********The program begin!!********\n");rn /* 错误处理说明. */rn EXEC SQL WHENEVER SQLERROR GOTO sqlerror;rn int ret, i;rn EXEC SQL BEGIN DECLARE SECTION;rn char var[150][128]; /* 存放输入/输出变量 */rn int param_num = 0; /* 输入变量个数 */rn int col_num; /* 输出变量个数 */rn char *getdept;rn VARCHAR deptno[10];rn VARCHAR sql[256]; /* 存放SQL语句 */rn char *tmp;rnrn VARCHAR emp_name[10];rn VARCHAR job[10];rn VARCHAR emp_number[10];rn VARCHAR salary[10];rn EXEC SQL END DECLARE SECTION;rn rn tmp = convert(sql_str);rn strcpy(sql.arr, tmp);rn sql.len = strlen(sql.arr);rn puts(sql.arr);rn /* 用PREPARE语句分析当前的动态SQL语句,语句名是s_sql */rn printf("prepare start!\n");rn EXEC SQL PREPARE s_sql FROM :sql;rn /* 说明光标c */rn EXEC SQL DECLARE my_select CURSOR FOR s_sql;rn ret = compile_var_str( out_var, in_var, &col_num, &param_num , var );rn if ( ret != 0 )rn rn printf("SQL[%s]执行出错, OUT_VAR[%s], IN_VAR[%s]", sql_str, out_var, in_var);rn return -1;rn rnrn /* 给变量赋值 */rn strcpy(deptno.arr, "20");rn deptno.len = strlen(deptno.arr);rn printf("%s:%s():%d deptno=%s\n", __FILE__, __FUNCTION__, __LINE__, _FunFmlGet("deptno"));rn EXEC SQL OPEN my_select USING :deptno;rn /* 如果提取完则分支到标号notfound */rn EXEC SQL WHENEVER NOT FOUND GOTO notfound;rn /* 循环提取,直到NOT FOUND成立结束 */rn while (TRUE)rn rn EXEC SQL FETCH my_select INTO :emp_number,:emp_name,:job,:salary;rn /* NULL结束字符串 */rnrn emp_name.arr[emp_name.len] = '\0';rn job.arr[job.len] = '\0';rn emp_number.arr[emp_number.len] = '\0';rn salary.arr[salary.len] = '\0';rn printf("\n%s\t%s\t%s\t%s",rn emp_number.arr, emp_name.arr, job.arr, salary.arr);rn rnnotfound:rn /* 提取结束时,打印检索的行数 */rn printf("\nQuery returned %d row%s.\n\n", sqlca.sqlerrd[2],rn (sqlca.sqlerrd[2] == 1) ? "" : "s");rn /* 关闭光标 */rn EXEC SQL CLOSE my_select;rn exit(0);rnsqlerror:rn /* 打印错误信息文本 */rn printf("error info:\n");rn printf("\n%d:%70s\n", sqlca.sqlerrm.sqlerrml,rn sqlca.sqlerrm.sqlerrmc);rn return -1;rn[/code]rn哪位大神指点一下,不胜感激!!!
proc学习proc学习
<em>proc</em>学习<em>proc</em>学习<em>proc</em>学习<em>proc</em>学习<em>proc</em>学习<em>proc</em>学习
VC编译
请问一个问题:rn如果要<em>编译</em>一个Release版本的程序,其依赖的所有的dll是不是一定要<em>编译</em>成Release版的,如果其中的一些为Debug版会引起什么问题?谢谢rn
用cygwin编译c文件时报错
<em>编译</em>一个makefile文件rn$ makerngcc inference.o gsl-wrappers.o ctm.o estimate.o corpus.o params.o -o ctm -lm -lgsl -latlas -lgslcblasrn/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -latlasrncollect2: ld returned 1 exit status rnrn<em>报错</em>了……求教~
为啥用VC++编译报错??
#include rnusing namespace std;rnclass CArnrnpublic:rn void f();rn;rnvoid CA::f()rnrn cout << "CC.f()" << ::endl;rnrnclass CBrnrnpublic:rn void f();rn;rnvoid CB::f()rnrn cout << "CB.f()" << endl;rnrnclass CC : public CB, public CArnrn;rnint main(void)rnrn CA *ca = (CA*) new CC();rn ca->f();rn CB *cb = (CB*) new CC();rn cb->f();rn delete cb;rn delete ca;rn return 0;rn
用命令编译package body报错
ALTER PACKAGE BODY pkgyujing2 RECOMPILE package ,报ora-00922 选项缺失或无效,有哪位大虾碰到啊,怎么解决啊?SOS。在线等待!rn
VC6 用StlPort5.2.1 编译StdString.h, 报错
// FILE: StdString.hrn// AUTHOR: Joe O'Leary (with outside help noted in comments)rn这个实现版本的StdString.h 用StlPort5.2.1 <em>编译</em> 报下面的错 rnerror C2059: syntax error : '::*'rn对应的代码行是rnrnconst SSCodeCvt& conv = SS_USE_FACET(loc, SSCodeCvt);rnrn而用STlPort5.1 则可以正常<em>编译</em>使用, 求高手解决rnrn相关代码如下rn自己单独写这几行代码也是这样<em>编译</em>不过去rnrn[code=c]typedef std::codecvt SSCodeCvt;rn#define SS_USE_FACET(loc, fac) std::use_facet(loc)rnrnstd::locale& loc("");rnconst SSCodeCvt& conv = SS_USE_FACET(loc, SSCodeCvt);[/code]rn
用qt4.6编译qt-extended4.4.3 configure报错
$QTOPIA_SOURCE_PATH/configure -system-qt -verbosernrn错误:rnTesting the system Qt: rnLooking in:rn /usr/local/Trolltech/Qt-4.6.3/binrn /usr/local/sbinrn /usr/sbinrn /sbinrn /usr/local/binrn /usr/binrn /binrn /root/binrn /usr/local/build/qt-extended/build/sdk/qtopiacore/host/binrnTrying /usr/local/Trolltech/Qt-4.6.3/bin/qmakern---rnQMake version 2.01arnUsing Qt version 4.6.3 in /usr/local/Trolltech/Qt-4.6.3/librn---rnFound Qt 4.6.3rnProject MESSAGE: QT_PREFIX=/usr/local/Trolltech/Qt-4.6.3rnProject MESSAGE: QT_LIBS=/usr/local/Trolltech/Qt-4.6.3/librnProject MESSAGE: QT_BINS=/usr/local/Trolltech/Qt-4.6.3/binrnProject MESSAGE: QT_INCS=/usr/local/Trolltech/Qt-4.6.3/includernUsing Qt 4.6.3rnFAILrnFound Qt 4.6 while expecting Qt 4.4.rnERROR: You requested "-system-qt" but it was disabled.rngmake: *** [src/build/mkconf/configure] 错误 255rn
linux下用xlC编译C++报错
[color=#0000FF]a.cpp[/color]rnrnrn#include rn#include rn#include rn#include rn#include "test.h"rnusing namespace std;rn#define GETS(msg) printf("%s\n",msg);rnstruct Studentrnchar name[30];rnint age;rnchar sex[4];rnrnstu1,stu2="zhangsan",22,"boy";rnFILE *p_fp;rnchar c_str[1000];rnchar c_Str[10];rn[color=#800000]map my_Map;[/color]rnchar *ps[3];rnchar *pd[3]="username","userpass","database";rnrnint k=0;rnint main(int argc,char *argv[])rnrn[color=#800000]cout<);;rnvoid add();rnrn;rnrnrn[color=#0000FF]makefile[/color]rnrnrnrn#################################C++程序#########################rnCPP = xlC_r7 -q64 -bh:5 -g rnCFLAGS = -c -o rnLFLAGS = $(PLATFORM_DEF) -D_REENTRANT -D_THREAD_SAFE -g -w -ornLIB = -L$(PATH_LIB)rnPATH_TEST =/ngbss/mddms/interface/other/SRBI/testrnrnOBJ_TEST =\rn$(PATH_TEST)/a.o\rnrnrnrnexec_test:rn@$(CPP) $(OBJ_TEST) rnrn$(PATH_TEST)/a.o:rn@$(CPP) $(CFLAGS) $@ $(PATH_TEST)/a.cpprnrnrnrntest:$(OBJ_TEST) exec_test rn@cc a.o -o a rn@arnrnrnrnrn[color=#0000FF]make test[/color]rnrnrn[color=#993300][/ngbss/mddms/interface/other/SRBI/test]$make testrnld: 0711-317 ERROR: Undefined symbol: .clear__Q2_3std8ios_baseFibrnld: 0711-317 ERROR: Undefined symbol: __dl__FPvrnld: 0711-317 ERROR: Undefined symbol: .uncaught_exception__3stdFvrnld: 0711-317 ERROR: Undefined symbol: .__dt__Q2_3std7_LockitFvrnld: 0711-317 ERROR: Undefined symbol: .__dl__FPvrnld: 0711-317 ERROR: Undefined symbol: .__ct__Q2_3std7_LockitFirnld: 0711-317 ERROR: Undefined symbol: .__ReThrowV6rnld: 0711-317 ERROR: Undefined symbol: .__setUncaughtExceptionFlag__3stdFbrnld: 0711-317 ERROR: Undefined symbol: .__CleanupCatchV6arnld: 0711-317 ERROR: Undefined symbol: cout__3stdrnld: 0711-317 ERROR: Undefined symbol: .unexpected__3stdFvrnld: 0711-317 ERROR: Undefined symbol: .terminate__3stdFvrnld: 0711-317 ERROR: Undefined symbol: .__ThrowV6rnld: 0711-317 ERROR: Undefined symbol: ._Toupperrnld: 0711-317 ERROR: Undefined symbol: ._Tolowerrnld: 0711-317 ERROR: Undefined symbol: ._Getctype__FPCcrnld: 0711-317 ERROR: Undefined symbol: _Cltab__Q2_3std5ctypeXTc_rnld: 0711-317 ERROR: Undefined symbol: .__dt__Q2_3std8_LocinfoFvrnld: 0711-317 ERROR: Undefined symbol: .__ct__Q2_3std8_LocinfoFPCcirnld: 0711-317 ERROR: Undefined symbol: .__nw__FUlrnld: 0711-317 ERROR: Undefined symbol: _Id_cnt__Q3_3std6locale2idrnld: 0711-317 ERROR: Undefined symbol: id__Q2_3std5ctypeXTc_rnld: 0711-317 ERROR: Undefined symbol: ._Getfacet__Q2_3std6localeCFUlrnld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.rnmake: The error code from the last command is 8.[/color]rnrn用到string CString map cout cin等等是总是报这样的错误,请教各位是为什么
关于用csc 编译.cs文件报错
例如在a.cs 中用到了自定义的b.cs对象 命名空间都是c rnrn结果<em>编译</em> rnC:\>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe /target:library C:\C rnRM\a.cs rnrn提示 rn类型或命名空间名称“b”在类或命名空间“c”中不存在(是否缺少程序集引用 rn?) rnrnrn如果能让<em>编译</em>器找到命名空间中c的b对象
求救:用javac 编译报错“找不到符号”!
问题描述:rnrn>javac course.javarn[color=#FF0000]course.java:31:找不到符号rn符号:类sqlBeanrn位置:类bean.coursern sqlBean db=new sqlBean<>;[/color]rnrn……rnrncourse.java和sqlBean.java及其他一些文件同放于bean文件夹下rn[color=#FF0000]course.java:[/color]rnpackage bean;rnimport java.sql.*;rnpublic class course rn private String id;rn private String name;rn private String dep;rn private String prepare;rn private int mark;rn rn public void setPrepare(String s)prepare=s;rn public String getPrepare()return prepare;rn public void setMark(int s)mark=s;rn public int getMark()return mark;rn public void setDep(String s)dep=s;rn public String getDep()return dep;rn public String getId() rn return id;rn rn public void setId(String id) rn this.id = id;rn rn public String getName() rn return name;rn rn public void setName(String name) rn this.name = name;rn rnrn public ResultSet getPrepares() //得到所能选择的预修课rn String sql="select name,id from course ";rn sqlBean db = new sqlBean();rn ResultSet rs = db.executeQuery(sql);rn return rs; rn rn rn rn public String getPrepareDep() //察看预修课所在系rn String s="no";rn String sql="select dep from course where id='"+prepare+"' ";rn sqlBean db = new sqlBean();rn tryrn ResultSet rs = db.executeQuery(sql);rn if(rs.next())rn s=rs.getString("dep"); rn rn catch(Exception e) e.getMessage(); rn return s;rn rn rn public ResultSet getCourse() //察看所有课程rn String sql="select * from course ";rn sqlBean db= new sqlBean();rn ResultSet rs = db.executeQuery(sql);rn return rs;rn rn rn rn public int deleteCourse(String id) rn int num=0; rn String sql="delete from Course where id ='"+id+"' ";rn sqlBean db= new sqlBean();rn num=db.executeDelete(sql);rn return num;rn rn rn public String getPrepareDep(String id)rn String dep="";rn String sql="select dep from course where id='"+id+"'";rn sqlBean db= new sqlBean();rn tryrn ResultSet rs = db.executeQuery(sql);rn if(rs.next()) rn dep=rs.getString("dep");rn catch(SQLException e)System.out.print(e.toString());rn return dep;rn rn public void updateCourse(String id) rn String sql="update course "+rn " set name='"+name+"',prepare='"+prepare+"',"+rn "dep='"+dep+"',mark='"+mark+"' "+rn " where id='"+id+"' ";rn sqlBean db= new sqlBean();rn db.executeInsert(sql);rn rn rn rn public void addCourse() rn String sql="insert into course(id,name,mark,prepare,dep) "+rn "VALUESrnrn('"+id+"','"+name+"','"+mark+"','"+prepare+"','"+dep+"') ";rn sqlBean db = new sqlBean();rn db.executeInsert(sql); rn rn rn public boolean hasLogin( String id)rn boolean f=true;rn String sql="select id from course where id='"+id+"' ";rn sqlBean db = new sqlBean();rn tryrn ResultSet rs =db.executeQuery(sql);rn if(rs.next())rn f=false;rn catch(Exception e) e.getMessage();rn return f; rn rnrnrnrn[color=#FF0000]sqlBean.java:[/color]rnpackage bean;rnimport java.io.*; rnimport java.sql.*; rnrnpublic class sqlBean/// rnrnpublic Connection conn=null; rnrnpublic ResultSet rs=null; rnrnprivate String DatabaseDriver="sun.jdbc.odbc.JdbcOdbcDriver"; rn//DataSource 数据源名称DSN rnprivate String DatabaseConnStr="jdbc:odbc:ClassDB2,'sa',";rnrn//定义方法 rn/*setXxx用于设置属性值;getXxx用于得到属性值*/ rnpublic void setDatabaseDriver(String Driver) rnthis.DatabaseDriver=Driver; rn rnpublic String getDatabaseDriver() rnreturn (this.DatabaseDriver); rn rnrnpublic void setDatabaseConnStr(String ConnStr) rnthis.DatabaseConnStr=ConnStr; rn rnpublic String getDatabaseConnStr() rnreturn (this.DatabaseConnStr); rn rnrnpublic sqlBean()/////构造函数 rntry rnrnrnClass.forName(DatabaseDriver); rn rncatch(java.lang.ClassNotFoundException e) rnSystem.err.println("加载驱动器有错误:"+e.getMessage( )); rnSystem.out.print("执行插入有错误:"+e.getMessage());//输出到客户端 rn rn rnrn rnpublic int executeInsert(String sql) rnint num=0;rntry rnconn = DriverManager.getConnection("jdbc:odbc:ClassDB","sa","");rnStatement stmt=conn.createStatement( ); rnnum=stmt.executeUpdate(sql); rn rncatch(SQLException ex) rnSystem.err.println("执行插入有错误:"+ex.getMessage() ); rnSystem.out.print("执行插入有错误:"+ex.getMessage());//输出到客户端 rnrnrnCloseDataBase();rnreturn num;rn rn// display data rn rnpublic ResultSet executeQuery(String sql) rnrs=null; rntry rnconn = DriverManager.getConnection("jdbc:odbc:ClassDB","sa","");rnStatement stmt=conn.createStatement( ); rnrs=stmt.executeQuery(sql);rn rncatch(SQLException ex) rnSystem.err.println("执行查询有错误:"+ex.getMessage() ); rnSystem.out.print("执行查询有错误:"+ex.getMessage()); //输出到客户端 rn rnrnreturn rs; rn rn// delete data rnpublic int executeDelete(String sql) rnint num=0;rntry rnrnconn = DriverManager.getConnection("jdbc:odbc:ClassDB","sa","");rnStatement stmt=conn.createStatement( ); rnnum=stmt.executeUpdate(sql); rn rncatch(SQLException ex) rnSystem.err.println("执行删除有错误:"+ex.getMessage() ); rnSystem.out.print("执行删除有错误:"+ex.getMessage()); //输出到客户端 rn rnCloseDataBase();rnreturn num;rn rn////////////////// rnpublic void CloseDataBase() rntry rnconn.close(); rn rncatch(Exception end) rnSystem.err.println("执行关闭Connection对象有错误:"+end.getMessage( ) ); rnSystem.out.print("执行执行关闭Connection对象有错误:有错误:"+end.getMessage()); //输出到客户端 rn rn rn rnrnrnrn
用jdk编译ejb,报错:javax.ejb找不到
怎么办?
请教LINUX上PROC的编译问题?
我在REDHAT上<em>编译</em>PROC程序出现如下错误(原来在UNIX上是正常的):rn======================================================================rncc -O3 -DPRECOMP -I. -I/home/oracle/Oracle817/product/8.1.7/precomp/public -rnI/home/oracle/Oracle817/product/8.1.7/rdbms/public -I/home/oracle/Oracle817/prodrnuct/8.1.7/rdbms/demo -I/home/oracle/Oracle817/product/8.1.7/plsql/public -I/homern/oracle/Oracle817/product/8.1.7/network/public -DLINUX -D_GNU_SOURCE -DSLTS_ENABrnLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS -c option.crn<em>proc</em> iname=dbinfrnrnPro*C/C++: Release 8.1.7.0.0 - Production on Sun Nov 16 18:26:38 2003rnrn(c) Copyright 2000 Oracle Corporation. All rights reserved.rnrnSystem default option values taken from: /home/oracle/Oracle817/product/8.1.7/prrnecomp/admin/pcscfg.cfgrnError at line 33, column 10 in file /usr/include/stdio.hrn#include rn.........1rnPCC-S-02015, unable to open include filernError at line 38, column 10 in file /usr/include/stdio.hrn#include rn.........1rnPCC-S-02015, unable to open include filernError at line 29, column 10 in file /usr/include/bits/types.hrn#include rn.........1rnPCC-S-02015, unable to open include filernError at line 14, column 10 in file /usr/include/_G_config.hrn#include rn.........1rnPCC-S-02015, unable to open include filernError at line 48, column 11 in file /usr/include/libio.hrn# include rn..........1rnPCC-S-02015, unable to open include filernrn===================================================================rn只粘上部分错误提示,经查,确实没有stddef.h和stdarg.h等头文件,但我安装rnLINUX是是把所有的开发包都装上了。且<em>编译</em>非PROC程序却又是正常的!rnrn不知何固?
请教有关linux下编译proc的问题
先看看我处理<em>proc</em>程序的步骤对不对?rn假设我有一个<em>proc</em>程序test.pc,经过预<em>编译</em>:<em>proc</em> INAME=test.pc ONAME=test.crn可以得到test.cwenj,然后在linux下进行gcc的<em>编译</em>。rn如果以上步骤正确的话,我现在遇到这个问题:rn[lihh@<em>proc</em>ess lihh]$ gcc -o test test.crn/tmp/ccpYA659.o: In function `main':rn/tmp/ccpYA659.o(.text+0x2c4): undefined reference to `sqlcxt'rn/tmp/ccpYA659.o(.text+0x444): undefined reference to `sqlcxt'rncollect2: ld returned 1 exit statusrn********rn我看了test.c文件中的sqlcxt,是这样的:rn/* SQLLIB Prototypes */rnextern sqlcxt (/*_ void **, unsigned long *,rn struct sqlexd *, struct sqlcxp * _*/);rnrn请教,我该如何处理这个问题?rn是不是要在gcc中加library的路径?还是用其它的办法。rn谢谢!!rn
proc编译时候的联结错误?请帮忙!
rn[Linker error] undefined reference to `sqlcxt'rn我用c<em>编译</em>器<em>编译</em>预<em>编译</em>好的c文件,结果联结的时候抱错!rn在windows 2000 server gcc<em>编译</em>器rn这是为什么?rn函数原形rnextern void sqlcxt (void **, unsigned long *,rn struct sqlexd *, const struct sqlcxp *);rn我在c文件里面也找不到它的实现,rn因该如何更正呢!
gcc编译proc编译后的c代码出错
现在有一个代码文件如下:rntestPRO.pcrnrn#include rn#include rn#include rn#include rn#include rnrnEXEC SQL BEGIN DECLARE SECTION;rn varchar *names; /* varchar can be in lower case */rn int limit; /* for use in FETCH FOR clause */rn char *username = "scott/tiger";rnEXEC SQL END DECLARE SECTION;rnvoid main()rnrn return ;rnrnrn<em>proc</em> testPRO.pc 能正常通过rngcc testPRO.c 但却提示如下错:rntestPRO.c:134: sqlca.h: No such file or directoryrntestPRO.c:135: sqlda.h: No such file or directoryrntestPRO.c:136: sqlcpr.h: No such file or directoryrnrn 请问这该如何是好?急!!!
用ProC开发多线程应用程序
用ProC开发多线程应用程序,对开发操作Oracle数据库大数据量表的高并发、多线程的程序有所帮助
有谁知道linux下proc编译
有谁知道linux下<em>proc</em>的<em>编译</em>过程,我想知道详细步骤
在Windows XP下编译PROC遇到的两个问题
第一个rn[code=C/C++]rnEXEC SQLrn CREATE VIEW TOTAL_PRODUCT(PRODUCT,TOTAL_WAFER)rn ASrn SELECT PRODUCT,COUNT(*)rn FROM WAT_TEST_RESULTrn WHERE TO_CHAR(MEAS_TIME, 'YYYY-MM-DD') = :gsStartDatern GROUP BY PRODUCT;rnrn if (sqlca.sqlcode)rn rn CheckSqlError("GetData() CREATE VIEW TOTAL_PRODUCT");rn return FAIL;rn rn EXEC SQL COMMIT WORK;rnrn[/code]rnrn这段代码<em>编译</em>的时候报如下错误:rnParser error at line 426, column 50, file D:\Work\WATpassfail\passrate\passrate.pc:rnError at line 426, column 50 in file D:\Work\WATpassfail\passrate\passrate.pcrn WHERE TO_CHAR(MEAS_TIME, 'YYYY-MM-DD') = :gsStartDatern.................................................1rnPCC-S-02206, Host variables are not permitted within a DDL statementrnrn第二个:rn[code=C/C++]rnEXEC SQL DECLARE PRODCUT_CURSOR CURSOR FOR rn SELECT A.PRODUCT,rn A.TOTAL_WAFER,rn nvl(B.PASS_WAFER,'0')rn FROM TOTAL_PRODUCT Arn LEFT JOIN TOTAL_PASS_PRODUCT Brn ON A.PRODUCT = B.PRODUCT;rn rn EXEC SQL OPEN PRODCUT_CURSOR;rn rn if (sqlca.sqlcode)rn rn CheckSqlError("GetData() OPEN PRODCUT_CURSOR");rn return FAIL;rn rn[/code]rnrn错误信息:rnSyntax error at line 458, column 8, file D:\Work\WATpassfail\passrate\passrate.pc:rnError at line 458, column 8 in file D:\Work\WATpassfail\passrate\passrate.pcrn LEFT JOIN TOTAL_PASS_PROrnDUCT Brn.......1rnPCC-S-02201, Encountered the symbol "LEFT" when expecting one of the following:rn rn ; , for, union, connect, group, having, intersect, minus,rn order, start, where, with,rn rnSyntax error at line 459, column 21, file D:\Work\WATpassfail\passrate\passrate.pc:rnError at line 459, column 21 in file D:\Work\WATpassfail\passrate\passrate.pcrn ON A.PRODUCT = B.PRODUCTrn;rn....................1rnPCC-S-02201, Encountered the symbol "=" when expecting one of the following:rn rn : ) [ ] / . an identifier, a numeric constant,rn rnError at line 0, column 0 in file D:\Work\WATpassfail\passrate\passrate.pcrnPCC-F-02102, Fatal error while doing C pre<em>proc</em>essingrnrn以上两句SQL语句在PL/SQL里能运行通过
嵌入式Linux基础教程 英文版 pdf Embedded Linux Primer: A Practical Real-World Approach下载
请注意: 下载完,评论的同时,请点击评论框上方的五角星(共5个五角星),这样你的被扣的积分就可以返还了。 如果只评论,不点击小五角星,积分不会返还。 一定要先下载完,再评论。如果先评论后下载,或者在下载的过程中评论,积分同样不会返还。 *************************************************************** 更多linux、ARM和C语言资源请参考: http://blog.csdn.net/arkofnoach/archive/2010/10/23/5960560.aspx 相关下载链接:[url=//download.csdn.net/download/arkofnoach/2689468?utm_source=bbsseo]//download.csdn.net/download/arkofnoach/2689468?utm_source=bbsseo[/url]
汇编零起点教学.rar下载
汇编零起点教学.rar汇编零起点教学.rar汇编零起点教学.rar汇编零起点教学.rar 相关下载链接:[url=//download.csdn.net/download/mengyuan510/2986681?utm_source=bbsseo]//download.csdn.net/download/mengyuan510/2986681?utm_source=bbsseo[/url]
希尔波特变换(hilbert)下载
通过使用FFT进行的希尔波特变换,包括DFT程序,希望对大家有所帮助 相关下载链接:[url=//download.csdn.net/download/hzyd_2010/3051983?utm_source=bbsseo]//download.csdn.net/download/hzyd_2010/3051983?utm_source=bbsseo[/url]
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview
我们是很有底线的