Qt5Qftp编译报错,外部链接问题

我明明用的是源码,就是QFtp的源码编译,还是会出现
1>filetrans.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall QFtp::QFtp(class QObject *)" (??0QFtp@@QAE@PAVQObject@@@Z),该符号在函数 "public: __thiscall FileTrans::FileTrans(void)" (??0FileTrans@@QAE@XZ) 中被引用
1>filetrans.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall QFtp::~QFtp(void)" (??1QFtp@@UAE@XZ),该符号在函数 "public: virtual __thiscall FileTrans::~FileTrans(void)" (??1FileTrans@@UAE@XZ) 中被引用
1>filetrans.obj : error LNK2019: 无法解析的外部符号 "public: int __thiscall QFtp::get(class QString const &,class QIODevice *,enum QFtp::TransferType)" (?get@QFtp@@QAEHABVQString@@PAVQIODevice@@W4TransferType@1@@Z),该符号在函数 "public: void __thiscall FileTrans::DownlodFile(class QString const &,class QString const &)" (?DownlodFile@FileTrans@@QAEXABVQString@@0@Z) 中被引用
1>filetrans.obj : error LNK2019: 无法解析的外部符号 "public: int __thiscall QFtp::put(class QIODevice *,class QString const &,enum QFtp::TransferType)" (?put@QFtp@@QAEHPAVQIODevice@@ABVQString@@W4TransferType@1@@Z),该符号在函数 "public: void __thiscall FileTrans::UploadFile(class QString const &,class QString const &)" (?UploadFile@FileTrans@@QAEXABVQString@@0@Z) 中被引用
1>moc_filetrans.obj : error LNK2001: 无法解析的外部符号 "public: static struct QMetaObject const QFtp::staticMetaObject" (?staticMetaObject@QFtp@@2UQMetaObject@@B)
1>moc_filetrans.obj : error LNK2019: 无法解析的外部符号 "public: virtual void * __thiscall QFtp::qt_metacast(char const *)" (?qt_metacast@QFtp@@UAEPAXPBD@Z),该符号在函数 "public: virtual void * __thiscall FileTrans::qt_metacast(char const *)" (?qt_metacast@FileTrans@@UAEPAXPBD@Z) 中被引用
1>moc_filetrans.obj : error LNK2019: 无法解析的外部符号 "public: virtual int __thiscall QFtp::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@QFtp@@UAEHW4Call@QMetaObject@@HPAPAX@Z),该符号在函数 "public: virtual int __thiscall FileTrans::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@FileTrans@@UAEHW4Call@QMetaObject@@HPAPAX@Z) 中被引用
1>winscp.obj : error LNK2019: 无法解析的外部符号 "public: int __thiscall QFtp::connectToHost(class QString const &,unsigned short)" (?connectToHost@QFtp@@QAEHABVQString@@G@Z),该符号在函数 __catch$?slot_btn_Get_clicked@WinScp@@AAEXXZ$0 中被引用
1>winscp.obj : error LNK2019: 无法解析的外部符号 "public: int __thiscall QFtp::login(class QString const &,class QString const &)" (?login@QFtp@@QAEHABVQString@@0@Z),该符号在函数 __catch$?slot_btn_Get_clicked@WinScp@@AAEXXZ$0 中被引用
1>winscp.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall QFtp::abort(void)" (?abort@QFtp@@QAEXXZ),该符号在函数 __catch$?slot_btn_Get_clicked@WinScp@@AAEXXZ$0 中被引用
1>D:\workspace\test\WinScp\Win32\Debug\WinScp.exe : fatal error LNK1120: 10 个无法解析的外部命令
报错,运行环境是vs2012+Qt5.2,求大神解答。。

2个回答

这些源码有没有包含到工程中去。

有的,我没有用库文件,直接用的是源码,这样的话不是应该不会链接库文件的,但是编译开始时就去默认链接了库文件

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
关于硬件外部链接的问题
我打算编一个关于照相机的界面编程,我编好的程序通过了内部编译。但却告诉我缺少外部链接,所有的关于相机硬件的函数不能被调用。那位大大能告诉我是怎么回事啊?rn不胜感激啊!rnrn下面是相关的错误提示:rnrnError 1 error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CuEyeCam::GetRuntimeClass(void)const " rn(?GetRuntimeClass@CuEyeCam@@UBEPAUCRuntimeClass@@XZ) UcamDlg.obj UcamrnrnError 2 error LNK2019: unresolved external symbol "public: int __thiscall CuEyeCam::GetEnableDirect3D(void)" (?GetEnableDirect3D@CuEyeCam@@QAEHXZ) rnreferenced in function "protected: void __thiscall CUcamDlg::UpdateControls(void)" (?UpdateControls@CUcamDlg@@IAEXXZ) UcamDlg.obj UcamrnrnError 3 error LNK2019: unresolved external symbol "public: class ATL::CStringT rn> > __thiscall CuEyeCam::GetSensorName(void)" (?GetSensorName@CuEyeCam@@QAE?AV?$CStringT@_WV?$StrTraitMFC_DLL@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@XZ) rnreferenced in function "protected: void __thiscall CUcamDlg::UpdateControls(void)" (?UpdateControls@CUcamDlg@@IAEXXZ) UcamDlg.obj UcamrnrnError 4 error LNK2019: unresolved external symbol "public: class ATL::CStringTrn > > __thiscall CuEyeCam::GetSerialNumber(void)" (?GetSerialNumber@CuEyeCam@@QAE?AV?$CStringT@_WV?$StrTraitMFC_DLL@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@XZ) rnreferenced in function "protected: void __thiscall CUcamDlg::UpdateControls(void)" (?UpdateControls@CUcamDlg@@IAEXXZ) UcamDlg.obj Ucamrnrn这几个错误都是同一个类型的错误。缺少外部链接。rn
外部链接JS的问题
rnrn rnrnrn……rnrn当上的那段js保存成 head.js并做好链接时,代码就不起作用了,请问该如何解决?rnrnrnrnrn rnrn
框架页面与外部链接问题??
假如有一个框架页面 default.asp,rn它包含两也页面left.asp 和index.asp ,left.asp是起到导航index.asp的作用。rn但是如果有一个外部的链接,假如是index.asp?id=1,直接链接进来的话,那这个页面就脱离了default.asp这个框架页面,而从新打开了宽是100%的index.asp 这个页面。rn但是我想实现,打开的这个链接仍然在框架页面 default.asp下,如何实现呢??
datalist绑定外部链接问题
我有个datalistrnrn有个超链接,文本取得是数据的字段 如百度,rnurl 也是绑定的数据库内容,如:www.baidu.comrnrn但我的程序运行时,点击百度,却打不开百度,地址栏显示的是 我的程序地址+www.baidu.comrnrn请问该怎么办?
CSS外部链接无效问题
绝对路径:从根目录到目标文件的所有路径 相对路径:相对于当前文件的路径。                          "./":代表目前所在的目录。                          "../":代表上一层目录。                         以"/"开头:代表根目录。
js外部链接问题
一个html文件中外链的js文件,是不是只是供本页面来使用的?rnrn就是说 假如,我一个html文件中,只用到了4个js方法,并且这些方法在内嵌在本页的 中,那我再rn 等等这样的链接,是不是就没有意义了呢?只是会浪费资源,是吗?
新闻系统的外部链接问题
新手总遇到问题,愁。rn发布文章时,rn正常发布文章时前台则正常显示。rn我想加个文本框,里面添网就能链接到外部链接。rn只要点文章标题就转到另外一个网站的URL了。rnrnrn找到一个ASP的,谁能帮忙改成PHP的。rn输入部分:rn" size="40">rn输出部分:rn rn <%rnstartrw = 0rnendrw = HLooper1__indexrnnumberColumns = 3rnnumrows = 6rnwhile((numrows <> 0) AND (Not zhsc.EOF))rn startrw = endrw + 1rn endrw = endrw + numberColumnsrn %>rn rn <%rnWhile ((startrw <= endrw) AND (Not zhsc.EOF))rn%>rn rn rn rn rn <% if zhsc("bj")=1 then %>rn " target="_blank" rnrnclass="style6"><%=(zhsc.Fields.Item("scname").Value)%>rn <%else%>rn " target="_blank" rnrnclass="black"><%=(zhsc.Fields.Item("scname").Value)%> rn <%end if%>rn rn rn rn <%rn startrw = startrw + 1rn zhsc.MoveNext()rn Wendrn %>rn rn <%rn numrows=numrows-1rn Wendrn %>rn
编译报错的问题?
编译时,出现"Read error on ‘c:\program files\borland\delphi7\Lib\system.dcu'"
编译报错的问题
编译报错:rnUnhandled execption in ***.exe 0xc0000005: Access Violation.rn一般是什么原因?
编译报错???
我在编译一个用DirectX8显示的一个正方体时报错:DX Project 3 fatal error LNK1104: cannot open file 'libci.lib' rn我都连接了winmm.lib d3dx8.lib d3d8.lib odbc32.lib odbccp32.lib 在加上rnlibci.lib 还是不行 我用的环境是 .net2003/xp professionalrnrn
编译报错
在VC 6.0的环境下,编译以下代码:rn[code=C/C++]rn#includernvoid main()rnrn static int a[3];rn printf("%d\n",a[0]);rn char *str[3] = "Hello,this is a sample!", "Hi,good morning.", "Hello world" ;rnrn[/code]rn会报错:error C2143: syntax error : missing ';' before 'type'rn但是rn[code=C/C++]rn#includernvoid main()rnrn char *str[3] = "Hello,this is a sample!", "Hi,good morning.", "Hello world" ;rn static int a[3];rn printf("%d\n",a[0]);rnrn[/code]rn这样,或者这样:rn[code=C/C++]rn#includernchar *str[3] = "Hello,this is a sample!", "Hi,good morning.", "Hello world" ;rnvoid main()rnrn static int a[3];rn printf("%d\n",a[0]);rnrn[/code]rn就不报错了,为什么?
编译报错!
这是_stddef.h里的内容rnrn/* _stddef.hrnrn multi-includable Definitions for common types, and NULLrnrn*/rnrn/*rn * C/C++ Run Time Library - Version 9.5rn *rn * Copyright (c) 1987, 1999 by Inprise Corporationrn * All Rights Reserved.rn *rn */rn rn/* $Revision: 9.1 $ */rnrn#ifndef ___STDDEF_Hrn#define ___STDDEF_Hrnrn#if !defined(___DEFS_H)rn#include <_defs.h>rn#endifrnrn#ifndef NULLrn#include <_null.h>rn#endifrnrn#ifdef __cplusplusrnnamespace stdrn#endif /* __cplusplus */rnrn/* Define __STD to expand to std:: or nothing depending on being in C++. */rn#ifdef __cplusplusrn# define __STD std::rn#elsern# define __STDrn#endifrnrn/*rn Define the size_t type in the std namespace if in C++ or globally if in C.rn If we're in C++, make the _SIZE_T macro expand to std::size_trn*/rnrn#if !defined(_SIZE_T) && !defined(_SIZE_T_DEFINED)rn# define _SIZE_T_DEFINEDrn typedef unsigned int size_t;rn# if defined(__cplusplus)rn# define _SIZE_T std::size_trn# elsern# define _SIZE_T size_trn# endifrn#endifrnrnrn#if !defined(RC_INVOKED)rnrn#if defined(__STDC__)rn#pragma warn -nakrn#endifrnrn#endif /* !RC_INVOKED */rnrn#ifndef _PTRDIFF_Trn#define _PTRDIFF_Trntypedef int ptrdiff_t;rn#endifrnrnrn#define offsetof( s_name, m_name ) (_SIZE_T)&(((s_name _FAR *)0)->m_name)rnrn#ifndef __cplusplusrn#if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED)rn#define _WCHAR_Trn#define _WCHAR_T_DEFINED /* For WINDOWS.H */rntypedef unsigned short wchar_t;rn#endifrn#endifrnrn/*rn Define the wint_t type in the std namespace if in C++ or globally if in C.rn If we're in C++, make the _WINT_T macro expand to std::wint_trn*/rnrn#if !defined(_WINT_T)rntypedef wchar_t wint_t;rn# ifdef __cplusplusrn# define _WINT_T std::wint_trn# elsern# define _WINT_T wint_trn# endifrn#endifrnrn#ifndef _WCTYPE_T_DEFINEDrntypedef wchar_t wctype_t;rn#define _WCTYPE_T_DEFINEDrn#endifrnrn#ifdef __cplusplusrnextern "C" rn#endifrnextern unsigned long _RTLENTRY _EXPFUNC __threadid(void);rn#define _threadid (__threadid())rnrn#ifdef __cplusplusrnrn#endifrnrn#if !defined(RC_INVOKED)rnrn#if defined(__STDC__)rn#pragma warn .nakrn#endifrnrn#endif /* !RC_INVOKED */rnrn#ifdef __cplusplusrn //stdrn#endif /* __cplusplus */rnrn#endif /* __STDDEF_H */rnrn#if defined(__cplusplus) && !defined(__USING_CNAME__) && !defined(___STDDEF_H_USING_LIST)rn#define ___STDDEF_H_USING_LISTrn using std::ptrdiff_t;rn using std::__threadid;rn using std::size_t;rn using std::wint_t;rn using std::wctype_t;rn#endif /* __USING_CNAME__ */rnrn报的第一个错是declaration syntax errorrn报的第一个错是qualifier 'std' is not a class or namespace namern这是怎么回事呀,_stddef.h里的内容是干什么用的
没有解决的外部链接???
我写了一个makefile文件,在Windows下用nmake 命令去编译程序,但链接时出现一个unresolved external symbol _main.我的makefile文件如下:rnSalesitem.exe : mainSalesitem.obj Salesitem.objrn link mainSalesitem.obj Salesitem.objrn rnmainSalesitem.obj : Salesitem.hrn cl -c mainSalesitem.cpp rn rnSalesitem.obj : Salesitem.hrn cl -c Salesitem.cpp
外部链接统计数据
&amp;#13; 不得不说,Google 的 Webmaster Tools 功能越来越强大了。参考车东的这篇网站的外链/内链统计:来自Google的网站管理员工具,也对 dbanotes.net 进行了一下简单分析。站外链接的前三十条如下: 13975 www.openrss.net 10829 cang.baidu.com 10586 www.itpub.net 3935 ...
css外部链接
html:rnrnrn cssrn rnrncss(xj.css[绝对没打错文件名]):rnh1text-align:leftrnh3text-align:centerrn rnpbackground-color:red; color:green;background-repeat:no-repeat;background-image:urlrnrn(E:\html\photo\logo[1].gif);float:centerrnbodybackground-repeat:repeat-y;background-position:center;background-image:urlrn(e:\html\photo\2009121812521983642[1].jpg)rnh4color:green;font-family:华文新魏;font-size:40pxrnatext-decoration:blink;color:greenrn为什么外部样式表链接无效果。
外部链接文档
1. SpringCloud AOP编程参考文档地址:http://412887952-qq-com.iteye.com/blog/2305333
编译报错,
更新了bmpsoap 包, 全项目报错 ,  原因是原项目代码里有 相同路径的原文件包, 删除后错误消失。
编译报错了
class picturernpublic:rn /..../rnprivate:rn int height,width;rn char *data;rn rn;rnostream& operator<<(ostream& o,const picture& p)rn for(int i=0;i
编译报错!
编译Javac HelloWorldApplet.java出错!rnrnHelloWorldApplet.java:1: package java.awr does not existrnimport java.awr.*;rn^rnHelloWorldApplet.java:4: cannot resolve symbolrnsymbol : class Graphicsrnlocation: class HelloWorldAppletrn public void paint(Graphics g)rn ^rn2 errorsrn请问怎么解决!
编译报错?
QDBCHECK : TQUERY;rnbeginrn TRYrn QDBCHECK:=TQUERY.Create(APPLICATION.Owner);rn QDBCHECK.DATABASENAME:='MAIN';rn QDBCHECK.SQL.CLEAR;rn以上程序中“QDBCHECK : TQUERY;”编译报错。
【STM32新手问题】编译报错
学8位的51学了一段时间了,今天准备开始入门STM32。 跟着正点原子的教程一步一步建立了新的工程模板,比51把所有文件都放在一个文件夹里麻烦了不少,不过把M3核心文件,用户文件,库文件和板上资源分类放好确实规则了许多,有利于高效的编程。 不过当编译工程文件时,MDK自动停止工作,编译不通过,开始以为是我文件那儿没创立好,于是我直接拿着原子的给的教程函数编译还是报错,不行。又怀疑是不是因为混合
创建子类编译报错问题
在继承关系中父类和子类会分别存在默认   1)父类和子类中(适用于所有类),编译器会自动创建无参构造函数,   一旦有自定义的构造函数,编译器便不会创建这个默认无参构造函数;   2)子类构造函数会默认调用父类无参构造函数super(),   一旦父类中没有无参构造(自定义有参构造,没有自定义无参构造),编译器便不会有这个默认 综上,为保证在创建子类时不会编译报错
property_get的编译报错问题
在使用property_get的时候,竟然发现有个坑, char value[64] = {0};//PROPERTY_VALUE_MAX property_get("debug.slamlog", value, "0"); 编译的时候会出错, frameworks/native/cmds/tam/tamService.cpp:253:6: err...
eclipse模拟器编译报错的问题
大神们,我最近把在android源码下编译正常通过了的,自己写的应用,拿回家里安装的eclipse上面来跑,结果报了一大堆错,上图:rn[img=http://img.my.csdn.net/uploads/201303/29/1364572566_4789.jpg][/img]rnrn分析原因,我想可能是安装环境不对。我的eclipse安装过程如下:rn1:安装JDK 7rn2:下载adt-bundle-windows-x86-20130219,这个里面包含了eclipse和sdkrn3:在eclipse里help-Install New Software里,配置ADT的URL,在线安装ADTrn4:在Window-Preferences里,配置SDK的目录为E:\android\adt-bundle-windows-x86-20130219\sdk,即刚刚下载的ADT目录rn5:将E:\android\adt-bundle-windows-x86-20130219\sdk\tools添加到系统变量里去。rn5:在E:\android\adt-bundle-windows-x86-20130219\sdk\tools目录下,通过android create avd --target id --name savd 来创建好模拟器rn做完这几步后,就把我在android源码上编译通过并生成了APK的自己写的应用,添加到eclipse上来编译,结果编译报了一大堆错,像是没有找到对应的包一样的。后来我以为是JDK版本太高了,我把JDK 7删掉后装了JDK 6,效果还是一样的。请问这是肿么一回事啊
关于cJSON编译报错的问题
我在windows下用CodeBlocks编译我的文件是可以正常运行的rn但在linux下rngcc cJSON.c cJSON.h run.c -o run -lmrncJSON.h:58: 错误:expected ‘)’ before ‘sz’rncJSON.h:59: 错误:expected ‘;’ before ‘void’rn报这个错,我认为cJSON.h应该是没有问题。但不知道如何解决rnrntypedef struct cJSON_Hooks rn void *(*malloc_fn)(size_t sz);rn void (*free_fn)(void *ptr);rn cJSON_Hooks;rn上面就是报错的那两句话
发送邮件的问题,编译报错!!!!
dim mailobj as new mailmessagerndim smtp as new smtpmailrnsmtp.smtpserver="127.0.1"rnmailobj.From="guo_juan@tom.com"rnmailobj.to="guojuan@htigc.com"rnmailobj.subject="您的密码"rnmailobj.body="您的密码是:" & userpaw rnmailobj.bodyformat = mailformat.htmlrnsmtp.send(mailobj)rnlabcontent.text="您的密码已经发送到您的邮箱中"rnrn错误:Line 31: dim smtp as new smtpmailrnCompiler Error Message: BC30390: “System.Web.Mail.SmtpMail.Private Sub New()”是“Private”,因此它在此上下文中无法访问。rnrn怎么回事啊?我照书上写的,不给用啊。。。谁给解释解释,谢谢!!!
Spark编译报错问题日志记录
能生成spark-assembly-1.5.1-hadoop2.6.0.jar之后报错 [warn] Strategy 'discard' was applied to 3 files [warn] Strategy 'first' was applied to 247 files [info] Assembly up to date: D:\dev\spark-1.5.1\assembly
模板类编译报错的问题
for (typename list::space>::iterator iter = addr_vec.begin(); iter != addr_vec.end(); ++iter) rn这是我从网上拷下来的代码,codeblocks编译时报错如下:rnerror: type/ value mismatch at argument 1 in template parameter list for `template class std::list'|rn请教下各位这里的正确写法....rnrn模板类部分定义如下:rntemplate rnclass AddressTablernrnpublic:rn typedef struct _space_rn rn long begin;rn long end;rn T data;rn _space_():begin(0),end(0) memset(&data,0,sizeof(data)); rn ~_space_()rn space;rnrnrn全部分奉上.........rn代码已上传至百度云盘:http://pan.baidu.com/s/1pJziz71rn使用codeblocks打开build/WProtect.cbp工程进行编译即可。
#include 后,编译报错的问题
程序中用到CRect、CPoint类rn可是#include 后,编译报错:rnc:\program files\microsoft visual studio\vc98\mfc\include\afx.h(15) : fatal error C1189: #error : MFC requires C++ compilation (use a .cpp suffix)rn望回复,谢谢。
关于 gradle 编译报错的问题
Execution failed for task ‘:AutoOwnersHome:dexC1Debug’. com.android.ide.common.internal.LoggedErrorException: Failed to run command: 如果是以上错误(下面是全部内容): 则去掉 dexOptions { preDexLibraries =
编译报错一直找不到问题!
#include rn#include rnrntypedef struct sockaddr_in SA_IN;rnstruct Trnrn SA_IN serv;rn;rnrnintrnmain(int argc, char **argv)rnrnrn printf("helloworld\n");rn return 0;rnrn在linux下gcc编译总是报错:rn[root@localhost src]# gcc -o test -g test.crntest.c:8: field `serv' has incomplete typerntest.c:9: confused by earlier errors, bailing outrn
关于vs2003编译报错的问题
rn我的应用是vb.netrnrn点击编译的时候,报错的文件是下面这个rnSafety_menu.aspx.vbrn报错的总结下来就是rnsSQL和SQL_SUCCESS没有声明,rn下面是关于这两段代码,不知道这东西在哪里声明,为什么编译的时候说没有声明?rn[code=VB.NET]rnPublic Class Safety_menurn Inherits System.Web.UI.Pagern Protected WithEvents ImgMenuTitle As System.Web.UI.WebControls.Imagern Protected WithEvents lblMenuTitle As System.Web.UI.WebControls.Labelrn Protected WithEvents spsData As FarPoint.Web.Spread.FpSpreadrn Protected WithEvents Mn As System.Web.UI.HtmlControls.HtmlGenericControlrn Dim sMenuId As Stringrn Private strTabMn As Stringrn Protected ascPublic As ascPublicrnrn Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loadrn ascPublic = New ascPublic(Me)rn If Not Page.IsPostBack Thenrn sMenuId = Request("MenuId")rnrn If Trim(sMenuId) = "" Thenrn ImgMenuTitle.Visible = Falsern lblMenuTitle.Visible = Falsern lblMenuTitle.Text = ""rn Elsern ImgMenuTitle.Visible = Truern lblMenuTitle.Visible = Truernrn sSQL = ""rn sSQL = sSQL & " Select menu_name From CMT_MENU " & vbCrLfrn sSQL = sSQL & " Where menu_id = " & sMenuIdrn[/code]rn[code=VB.NET]rn While ascPublic.RecordSet.Readrn If rv = SQL_SUCCESS Thenrn[/code]rn
关于EC编译报错的问题
这是代码:rn[code=C/C++]rn#include rnvoid main()rnrn $ int id;rn $ char sname[10];rnrn EXEC SQL connect to "clannt" ;rnrn $ select id,snane into :$id,$snamern from test_song where id=1;rnrn if(SQLCODE != 0)rn rn printf("Error!");rn rn elsern rn printf("Success!");rn rnrn EXEC SQL disconnect current ;rnrn[/code]rn编译的时候报错:rnesqlc: "temp.ec", line 9: Error -33051: Syntax error on identifier or symbol '$'.rn1 error(s) foundrnrnrn我刚学EC,请各位多多指点!!
vc编译报错的基础问题
才学c,在vc里写了个语句rn// SqListStudy.cpp : Defines the entry point for the console application.rn//rnrn#include "stdafx.h"rnrntypedef int elemtype;rnrn#define maxsize 10rnrntypedef structrnrn elemtype elem[maxsize];rn int length;rn sqlist;rnrnvoid initsqlist(sqlist *p)rnrn p=(sqlist *)malloc(sizeof(sqlist));rn p->length=0;rnrnrnvoid main()rnrn struct sqlist *k;rn initsqlist(k);rnrnrnrn然后编译时报错如下rn--------------------Configuration: SqListStudy - Win32 Debug--------------------rnCompiling...rnSkipping... (no relevant changes detected)rnStdAfx.cpprnCompiling...rnSqListStudy.cpprnd:\microsoft visual studio\myprojects\sqliststudy\sqliststudy.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug/SqListStudy.pch': No such file or directoryrn执行 cl.exe 时出错.rnrnSqListStudy.exe - 1 error(s), 0 warning(s)rn
ANT编译报错问题?
我的jar包都加上去了,可就是报错。。。?rnrnprepare:rncompile:rn [javac] Compiling 56 source files to D:\workspace\spp_alm_sys\build\WEB-INF\classesrn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\AbstractDBCP.java:13: package org.apache.log4j does not existrn [javac] protected static org.apache.log4j.Logger logger = org.apache.log4j.Loggerrn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBAlm_sys.java:3: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBAlm_sys.java:4: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBHkbn1.java:2: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBHkbn1.java:3: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBInc.java:3: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBInc.java:4: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBSms_msg.java:3: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBSms_msg.java:4: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBSso.java:2: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBSso.java:3: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPAlm_sys.java:2: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPAlm_sys.java:3: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPHkbn1.java:3: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPHkbn1.java:4: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPInc.java:2: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPInc.java:3: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPSso.java:3: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPSso.java:4: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\alm_log\AlmLogControl.java:4: package net.hkbn.prov does not existrn [javac] import net.hkbn.prov.*;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\alm_log\AlmLogControl.java:5: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\alm_log\AlmLogControl.java:6: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\maint_result_code\MyJOXController.java:2: package com.wutka.jox does not existrn [javac] import com.wutka.jox.*;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\servlet\CalculateAffectCustomer.java:22: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\servlet\CalculateAffectCustomer.java:23: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSGroupUserHelper.java:11: package org.apache.log4j does not existrn [javac] import org.apache.log4j.Logger;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSGroupUserHelper.java:24: cannot resolve symbolrn [javac] symbol : class Loggerrn [javac] location: class sms.SMSGroupUserHelperrn [javac] Logger logger = Logger.getLogger(SMSGroupUserHelper.class);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSSender.java:15: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSSender.java:16: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSSender.java:18: package org.apache.log4j does not existrn [javac] import org.apache.log4j.Logger;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSSender.java:43: cannot resolve symbolrn [javac] symbol : class Loggerrn [javac] location: class sms.SMSSenderrn [javac] private Logger logger = Logger.getLogger("SMSSender_tomcat");rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:6: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnection;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:7: package net.hkbn.prov.sql does not existrn [javac] import net.hkbn.prov.sql.SqlConnectionFactory;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:5: package jxl does not existrn [javac] import jxl.*;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:6: package jxl.write does not existrn [javac] import jxl.write.*;rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\AbstractDBCP.java:13: package org.apache.log4j does not existrn [javac] protected static org.apache.log4j.Logger logger = org.apache.log4j.Loggerrn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\AbstractDBCP.java:19: package org.apache.log4j does not existrn [javac] org.apache.log4j.PropertyConfiguratorrn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBAlm_sys.java:22: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class ConnectionFactory.Production.CMDDBAlm_sysrn [javac] SqlConnection.JDBC).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBAlm_sys.java:21: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class ConnectionFactory.Production.CMDDBAlm_sysrn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("alm_sys",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBHkbn1.java:16: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class ConnectionFactory.Production.CMDDBHkbn1rn [javac] SqlConnection.JDBC).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBHkbn1.java:15: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class ConnectionFactory.Production.CMDDBHkbn1rn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("hkbn",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBInc.java:18: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class ConnectionFactory.Production.CMDDBIncrn [javac] SqlConnection.JDBC).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBInc.java:17: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class ConnectionFactory.Production.CMDDBIncrn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("inc",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBSms_msg.java:19: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class ConnectionFactory.Production.CMDDBSms_msgrn [javac] SqlConnection.JDBC).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBSms_msg.java:18: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class ConnectionFactory.Production.CMDDBSms_msgrn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("sms_msg",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBSso.java:16: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class ConnectionFactory.Production.CMDDBSsorn [javac] SqlConnection.JDBC).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\CMDDBSso.java:15: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class ConnectionFactory.Production.CMDDBSsorn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("sso",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPAlm_sys.java:17: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class ConnectionFactory.Production.DBCPAlm_sysrn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("alm_sys",SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPAlm_sys.java:17: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class ConnectionFactory.Production.DBCPAlm_sysrn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("alm_sys",SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPHkbn1.java:18: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class ConnectionFactory.Production.DBCPHkbn1rn [javac] SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPHkbn1.java:17: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class ConnectionFactory.Production.DBCPHkbn1rn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("hkbn",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPInc.java:15: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class ConnectionFactory.Production.DBCPIncrn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("inc",SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPInc.java:15: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class ConnectionFactory.Production.DBCPIncrn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("inc",SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPSso.java:18: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class ConnectionFactory.Production.DBCPSsorn [javac] SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\ConnectionFactory\Production\DBCPSso.java:17: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class ConnectionFactory.Production.DBCPSsorn [javac] paytvCon = SqlConnectionFactory.getSqlConnection("sso",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\alm_log\AlmLogControl.java:30: cannot resolve symbolrn [javac] symbol : method Close ()rn [javac] location: class staff.DBconnectionrn [javac] myCon.Close();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\connect\est.java:31: package oracle.jdbc.driver does not existrn [javac] DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\maint_result_code\MyJOXController.java:17: cannot resolve symbolrn [javac] symbol : class JOXBeanInputStreamrn [javac] location: class maint_result_code.MyJOXControllerrn [javac] JOXBeanInputStream joxIn = new JOXBeanInputStream(in);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\maint_result_code\MyJOXController.java:17: cannot resolve symbolrn [javac] symbol : class JOXBeanInputStreamrn [javac] location: class maint_result_code.MyJOXControllerrn [javac] JOXBeanInputStream joxIn = new JOXBeanInputStream(in);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\maint_result_code\MyJOXController.java:31: cannot resolve symbolrn [javac] symbol : class JOXBeanOutputStreamrn [javac] location: class maint_result_code.MyJOXControllerrn [javac] JOXBeanOutputStream joxOut = new JOXBeanOutputStream(out);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\maint_result_code\MyJOXController.java:31: cannot resolve symbolrn [javac] symbol : class JOXBeanOutputStreamrn [javac] location: class maint_result_code.MyJOXControllerrn [javac] JOXBeanOutputStream joxOut = new JOXBeanOutputStream(out);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\servlet\listBuildJS.java:33: package oracle.jdbc.driver does not existrn [javac] DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\servlet\listBuildJSBox.java:33: package oracle.jdbc.driver does not existrn [javac] DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\servlet\searchBSJS.java:71: package oracle.jdbc.driver does not existrn [javac] DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\servlet\searchCorpBuildingJS.java:31: package oracle.jdbc.driver does not existrn [javac] DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\servlet\searchCorpBuildingJSBox.java:32: package oracle.jdbc.driver does not existrn [javac] DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\servlet\searchEstateJS.java:34: package oracle.jdbc.driver does not existrn [javac] DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\servlet\searchEstateJSBox.java:34: package oracle.jdbc.driver does not existrn [javac] DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSGroupUserHelper.java:24: cannot resolve symbolrn [javac] symbol : variable Loggerrn [javac] location: class sms.SMSGroupUserHelperrn [javac] Logger logger = Logger.getLogger(SMSGroupUserHelper.class);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSSender.java:43: cannot resolve symbolrn [javac] symbol : variable Loggerrn [javac] location: class sms.SMSSenderrn [javac] private Logger logger = Logger.getLogger("SMSSender_tomcat");rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSSender.java:269: cannot resolve symbolrn [javac] symbol : class SqlConnectionrn [javac] location: class sms.SMSSenderrn [javac] SqlConnection abCon=SqlConnectionFactory.getSqlConnection("sms_msg",SqlConnection.JDBC);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSSender.java:269: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class sms.SMSSenderrn [javac] SqlConnection abCon=SqlConnectionFactory.getSqlConnection("sms_msg",SqlConnection.JDBC);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSSender.java:269: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class sms.SMSSenderrn [javac] SqlConnection abCon=SqlConnectionFactory.getSqlConnection("sms_msg",SqlConnection.JDBC);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\sms\SMSSender.java:549: cannot resolve symbolrn [javac] symbol : variable Loggerrn [javac] location: class sms.SMSSenderrn [javac] smsSender.logger = Logger.getLogger("SMSSender_cronjob");rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:31: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class staff.DBconnectionrn [javac] SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:30: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class staff.DBconnectionrn [javac] con = SqlConnectionFactory.getSqlConnection("alm_sys",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:65: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class staff.DBconnectionrn [javac] SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:64: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class staff.DBconnectionrn [javac] sms = SqlConnectionFactory.getSqlConnection("sms_msg",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:98: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class staff.DBconnectionrn [javac] SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:97: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class staff.DBconnectionrn [javac] ora = SqlConnectionFactory.getSqlConnection("hkbn",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:131: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class staff.DBconnectionrn [javac] SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:130: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class staff.DBconnectionrn [javac] sso = SqlConnectionFactory.getSqlConnection("sso",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:164: cannot resolve symbolrn [javac] symbol : variable SqlConnectionrn [javac] location: class staff.DBconnectionrn [javac] SqlConnection.JNDI).getConnection();rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\staff\DBconnection.java:163: cannot resolve symbolrn [javac] symbol : variable SqlConnectionFactoryrn [javac] location: class staff.DBconnectionrn [javac] inc = SqlConnectionFactory.getSqlConnection("inc",rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:35: cannot resolve symbolrn [javac] symbol : class WritableWorkbookrn [javac] location: class view.CreateAlmExcelrn [javac] WritableWorkbook book= Workbook.createWorkbook(new File(fp));rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:35: cannot resolve symbolrn [javac] symbol : variable Workbookrn [javac] location: class view.CreateAlmExcelrn [javac] WritableWorkbook book= Workbook.createWorkbook(new File(fp));rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:36: cannot resolve symbolrn [javac] symbol : class WritableSheetrn [javac] location: class view.CreateAlmExcelrn [javac] WritableSheet sheet=book.createSheet("sheep1",0);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:37: cannot resolve symbolrn [javac] symbol : class WritableFontrn [javac] location: class view.CreateAlmExcelrn [javac] WritableFont wf = new WritableFont(WritableFont.TIMES,10,WritableFont.NO_BOLD,false);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:37: cannot resolve symbolrn [javac] symbol : class WritableFontrn [javac] location: class view.CreateAlmExcelrn [javac] WritableFont wf = new WritableFont(WritableFont.TIMES,10,WritableFont.NO_BOLD,false);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:37: cannot resolve symbolrn [javac] symbol : variable WritableFontrn [javac] location: class view.CreateAlmExcelrn [javac] WritableFont wf = new WritableFont(WritableFont.TIMES,10,WritableFont.NO_BOLD,false);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:37: cannot resolve symbolrn [javac] symbol : variable WritableFontrn [javac] location: class view.CreateAlmExcelrn [javac] WritableFont wf = new WritableFont(WritableFont.TIMES,10,WritableFont.NO_BOLD,false);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:38: cannot resolve symbolrn [javac] symbol : class WritableCellFormatrn [javac] location: class view.CreateAlmExcelrn [javac] WritableCellFormat wcfblue = new WritableCellFormat(wf);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:38: cannot resolve symbolrn [javac] symbol : class WritableCellFormatrn [javac] location: class view.CreateAlmExcelrn [javac] WritableCellFormat wcfblue = new WritableCellFormat(wf);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:39: cannot resolve symbolrn [javac] symbol : variable Colourrn [javac] location: class view.CreateAlmExcelrn [javac] wcfblue.setBackground(Colour.ICE_BLUE);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:40: cannot resolve symbolrn [javac] symbol : class WritableCellFormatrn [javac] location: class view.CreateAlmExcelrn [javac] WritableCellFormat wcfred = new WritableCellFormat(wf);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:40: cannot resolve symbolrn [javac] symbol : class WritableCellFormatrn [javac] location: class view.CreateAlmExcelrn [javac] WritableCellFormat wcfred = new WritableCellFormat(wf);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:41: cannot resolve symbolrn [javac] symbol : variable Colourrn [javac] location: class view.CreateAlmExcelrn [javac] wcfred.setBackground(Colour.CORAL);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:42: cannot resolve symbolrn [javac] symbol : class WritableCellFormatrn [javac] location: class view.CreateAlmExcelrn [javac] WritableCellFormat wcfyellow = new WritableCellFormat(wf);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:42: cannot resolve symbolrn [javac] symbol : class WritableCellFormatrn [javac] location: class view.CreateAlmExcelrn [javac] WritableCellFormat wcfyellow = new WritableCellFormat(wf);rn [javac] ^rn [javac] D:\workspace\spp_alm_sys\java_src\view\CreateAlmExcel.java:43: cannot resolve symbolrn [javac] symbol : variable Colourrn [javac] location: class view.CreateAlmExcelrn [javac] wcfyellow.setBackground(Colour.GREY_50_PERCENT);rn [javac] ^rn [javac] Note: Some input files use or override a deprecated API.rn [javac] Note: Recompile with -deprecation for details.rn [javac] 100 errorsrnrnBUILD FAILEDrnD:\workspace\spp_alm_sys\build.xml:105: Compile failed; see the compiler error output for details.rnrnrnn[b]问题补充:[/b]n我把path加进去了,但问题依然存在rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn
关于XML的编译报错问题
我原来在JB9里用org.w3c.dom,org.jaxen,javax.xml三个主要的包开发了一个面向XML操作的类,其中org.jaxen是非JB9自带的外包,JB9里一切正常,现在换了JBX的IDE,就总是报“"CommonXML.java": cannot access org.saxpath.SAXPathException,org.saxpath.SAXPathException at line 104, column 5”请问问题在哪里呢?出问题的方法的代码如下:rn public Node getNode(String xpath) rn XPath path = null;rn Node node = null;rn try //这里就是line 104rn path = new DOMXPath(xpath);rn SimpleNamespaceContext nsc = new SimpleNamespaceContext();rn nsc.addNamespace("db", "http://pmrc.hunu.edu.cn/db");rn nsc.addNamespace("xs", "http://www.w3.org/2001/XMLSchema");rn path.setNamespaceContext(nsc);rn node = (Node) path.selectSingleNode(this.document);rn rn catch (JaxenException ex) rn rn return node;rn
Apache-2.4.34源码编译报错问题
Apache编译过程报错问题解决方法: configure: error: APR not found. Please read the documentation 解决: cd /tools wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz tar -xzvf apr-1.4.5.tar.gz cd /tools/ap...
udev-182编译报错的问题
现在需要将udev移植到arm平台,在udev-182的版本上移植,先进行configure进行配置:rn#./configure --prefix=/opt/work/TI/ti-sdk-am335x-evm/ --target=arm-linux --host=arm-arago-linux-gnueabi LD=arm-arago-linux-gnueabi-ld --with-pci-ids-path=/usr/local/share/rn然后make进行编译,报如下错误rnrn[root@forsafeRD udev-182]# makernmake --no-print-directory all-recursivernMaking all in .rn CC src/udevadm-udev-builtin-blkid.ornsrc/udev-builtin-blkid.c: In function 'probe_superblocks':rnsrc/udev-builtin-blkid.c:110:46: error: 'BLKID_PARTS_ENTRY_DETAILS' undeclared (first use in this function)rnsrc/udev-builtin-blkid.c:110:46: note: each undeclared identifier is reported only once for each function it appears inrnmake[2]: *** [src/udevadm-udev-builtin-blkid.o] 错误 1rnmake[1]: *** [all-recursive] 错误 1rnmake: *** [all] 错误 2rn[root@forsafeRD udev-182]# rnrn查找后发现'BLKID_PARTS_ENTRY_DETAILS'是在#include 中定义,而blkid.h中是如下定义的rn/*rn * Deprecated functions/macrosrn */rn#ifndef BLKID_DISABLE_DEPRECATEDrnrn#define BLKID_PROBREQ_LABEL BLKID_SUBLKS_LABELrn#define BLKID_PROBREQ_LABELRAW BLKID_SUBLKS_LABELRAWrn#define BLKID_PROBREQ_UUID BLKID_SUBLKS_UUIDrn#define BLKID_PROBREQ_UUIDRAW BLKID_SUBLKS_UUIDRAWrn#define BLKID_PROBREQ_TYPE BLKID_SUBLKS_TYPErn#define BLKID_PROBREQ_SECTYPE BLKID_SUBLKS_SECTYPErn#define BLKID_PROBREQ_USAGE BLKID_SUBLKS_USAGErn#define BLKID_PROBREQ_VERSION BLKID_SUBLKS_VERSIONrnrnextern int blkid_probe_set_request(blkid_probe pr, int flags);rnextern int blkid_probe_filter_usage(blkid_probe pr, int flag, int usage);rnextern int blkid_probe_filter_types(blkid_probe pr, int flag, char *names[]);rnextern int blkid_probe_invert_filter(blkid_probe pr);rnextern int blkid_probe_reset_filter(blkid_probe pr);rnrn#endif /* BLKID_DISABLE_DEPRECATED */rnrnlibllkid也已经通过apt安装,应该怎样解决这个问题啊?
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数