ThinkPHP5.1 'status' => ['neq',-1], 用echo输出后是`status` IN (0,-1)怎么解决??

代码如下:
图片说明

用echo $this->getLastSql();输出的结果如下:
图片说明

1个回答

检查下你其他地方有没有重新赋值什么的,这样放写是没错的

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
XmlHttpRequest的status是0
写了个最简单的ajax:rnrnrnrn Simple XMLHttpRequestrn rn rnrnrnrn rn rn rnrnrn为什么单击button后,alert出来的是0啊,也就是status是0,我的simpleRequest.xml和这个html是放在同一目录下的啊?rn
0 1 status查询拼接问题
if (!empty($_GET['status']) ||($_GET['stauts'] == '0')){ $status = (int)$_GET['status']; $where['status'] = $status; $this->assign('status',$status); }
Id returned 1 exit status
对这一行: printf(maxtable[h][k]); rnrn报的错是: Id returned 1 exit statusrnrn看不懂是啥意思.rnrnrnrnrn
status bar 怎么用?
status bar 怎么用?最好举个例子好不
XMLHttpRequest对象status=0
status=0 真的是本地响应成功吗 ?rn我怎么感觉不是啊 ! 那本地响应不成功是什么呢?
编译器错误怎么解决[Error] ld returned 1 exit status
小白刚刚开始学c,下了dev c++ 打印了一个helloworld 运行了 然后修改一次代码再编译运行就出现了 rn[Error] ld returned 1 exit statusrn的错误rnrn然后我想删除编译好的文件和源代码 结果说没有权限 上网找了很多方法都解决不了 然后重新下了一个c free 5 也是一样 求大神帮帮忙
HTTP Status 500 怎么解决
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletExceptionrn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn com.quotation.util.EncodingFilter.doFilter(EncodingFilter.java:28)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn com.quotation.daoimp.UserLoginDaoImp.findUser(UserLoginDaoImp.java:22)rn com.quotation.serviceimp.UserLoginImp.findUser(UserLoginImp.java:18)rn com.quotation.action.LoginAction.one(LoginAction.java:31)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:585)rn org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)rn org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)rn org.apache.struts.actions.MappingDispatchAction.execute(MappingDispatchAction.java:169)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn com.quotation.util.EncodingFilter.doFilter(EncodingFilter.java:28)rnrnrnJAVA页面的代码rnpublic class UserLoginDaoImp implements UserLoginDao rn List list=null;rn public List findUser(String name, String password) rn Session session=HibernateSessionFactory.getSession();rn Transaction tx=null;rn String hql=null;rn try rn hql="from User as a where a.YONGHU_YHMC='"+name+"' and a.YONGHU_YHMM='"+password+"'";rn tx=session.beginTransaction();rn list=session.createQuery(hql).list();rn tx.commit();rn return list;rn catch (HibernateException e) rn e.printStackTrace();rn if(tx!=null) tx.rollback();rn return null;rn finallyrn HibernateSessionFactory.closeSession();rn rn rnrn貌似是Session session=HibernateSessionFactory.getSession();这一句出了问题session取不到值rnrn我是一个新手,这是别人写的代码,先还可以运行的,我也没有改代码,就调试了之后就不知道怎么回事不能运行了rn谢谢那位大哥帮帮小弟吧,小弟在这跟你磕头了
http status 400怎么解决
我安装的是tomcat 4.1,系统采用structs技术,我运行一块程序时出现http status 400rn不知道什么原因,怎么解决,多谢!
HTTP Status 404怎么解决?
这个示例的web.xml太简单了,完全和网上的对不上号啊……rnrn[code=XML]rnrn rn rn contextConfigLocationrn rn WEB-INF/classes/com/us/jack/config/applicationContext.xmlrn WEB-INF/classes/com/us/jack/config/applicationContext-services.xmlrn rn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rn rn rn rn rn rn struts2rn rn org.apache.struts2.dispatcher.FilterDispatcherrn rn rn rn struts2rn /*rn rn rn rn index.jsprn rn[/code]rnrn求各位帮忙了。另外这个示例的index.jsp文件有两个,分别属于user文件夹和sbook文件夹。这样做没问题吗?
错误提示collect2: error: ld returned 1 exit status怎么解决
本人做了一个课后练习题 代码如下 编译的时候出现rn[jli52@1005-20 chap_7]$ g++ -g struMeth.cpp -o struMethrn/tmp/ccNELBUx.o: In function `main':rn/home/122/j/jli52/Documents/chap_7/struMeth.cpp:51: undefined reference to `calculate(box*)'rncollect2: error: ld returned 1 exit statusrncollect2: error: ld returned 1 exit statusrn哪位大神能给解答一下 谢谢啦rn还有一个问题 有个练习题 不太明白 有个结构candyBar 包含三个成员 分别是 名称 重量 和卡路里 要求用new来动态分配数组 而不是声明一个包含三个元素的candyBar数组 我不明白的是 如果是用数组的话 数组只能储存同一个类型的数据 但是这个结构中的数据类型是不同的 如何用数组去储存这些数据rnrnrn[code=c]rn#includern#includernrnrnstruct boxrnrn char maker[40];rn float height;rn float width;rn float length;rn float volume;rn;rnrnrnconst void show(box info);rnbox calculate (box *info);rnrnrnrnrnconst void show(box info,box info1)rnrn using namespace std;rn cout<<"The maker of the box is: "<height*info->length*info->width;rn return result;rnrnrnrnint main()rnrn using namespace std;rn box info;rn box result;rn cout<<"Please enter the maker, height, width, and length of the box respectly"rn <>info.height;rn cin>>info.width;rn cin>>info.length;rn result=calculate(&info);rn show(result,info);rn return 0;rnrnrn[/code]rnrn
STATUS BAR 是怎么更新的??
我加了一个ONSETTEST按钮,加入如下代码rnvoid CInterfaceView::OnSettext() rnrn // TODO: Add your command handler code herern CStatusBar * pStatus=(CStatusBar*)AfxGetMainWnd()->GetDescendantWindow (AFX_IDW_STATUS_BAR);rn //pStatus->SetPaneText(1,"hoho");rn rnrn怎么一按就出错诶~~~~
System.exit(int status)中的status具体是什么意思,比方System.exit(0),System.exit(1)
System.exit(int status)中的status具体是什么意思,比方System.exit(0),System.exit(1)
写存储过程 查询表,得到俩个整数做比较,如果a>b,status=0,否则status=1
写存储过程 查询表,得到俩个整数做比较,如果a>b,status=0,否则status=1rncreate table testrn(rna int ,rnb.int ,rnstatur int default 0rn)rnrninsert into test values(1,12,0),(32,2,0),(1,12,0),(1,12,0),(1,12,0),(1,12,0);
XMLHTTP status是pending
我连续发多条命令,后面的状态会出现[color=#FF0000]pending[/color]是什么原因?
status是定义是什么?
status是定义是什么?rn还有enum statusCONTINUE,WON,LOST;是什么意思,有什么用?rnrn
多个记录具有相同的pId,至少1条的Status为1,而且至少一条的Status不为1
找符合这样条件的记录不:rn多个记录具有相同的pId,rn其中至少1条的Status为1,而且至少一条的Status不为1。rnrn这个语句如何写rn表结构 (id,pid,status)rnrn如何做这个sql
报错:ld returned 1 exit status
QT Creater 关闭再打开都没有用rnrn在任务管理器里面 也没找到刚才运行的东西啊...
AJAX返回status的值经常是-1
代码如下,不知道各位有没有遇见过这种问题。代码不是运行在IE里,是widget。开发文档里写的支持javascript,但是用ajax请求数据时,有时候就会出xhr.status = -1 的情况,其他时候正常返回status =200 。请各位大侠帮忙解答rn[code=JScript]rnfunction getNews(id,url,type,sort)rnrn var xhr;rn //call the right constructor for the browser being usedrn if (window.ActiveXObject)rn xhr = new ActiveXObject("Microsoft.XMLHTTP");rn else if (window.XMLHttpRequest)rn xhr = new XMLHttpRequest();rn elsern alert("AJAX request not supported");rn rn //prepare the xmlhttprequest objectrn xhr.open("GET", url, true);rn xhr.setRequestHeader("Cache-Control", "no-cache");rn xhr.setRequestHeader("Pragma", "no-cache");rn xhr.onreadystatechange = function() rn if (xhr.readyState == 4)rn rn if (xhr.status == 200)rn rn if (xhr.responseText != null)rn rn //process sina newsrn processNews(xhr.responseXML, id,type,sort,url);rn rn elsern rn alert("Failed to receive RSS file from the server - file not found.");rn return false;rn rn rn elsern rn alert("Error code " + xhr.status + " received: " + xhr.statusText);rn rn rn rn //send the requestrn xhr.send(null);rnrn[/code]rn
collect2.exe: error: ld returned 1 exit status
最近qt把linux移植到windows,到这个错误捣鼓半天没搞出来,看过网上的解答也没有得到解决,看看各位大神有什么见解。nps:程序并没有编译出来(.exe程序没有编译出来,所以不存在程序正在运行)n![图片说明](https://img-ask.csdn.net/upload/201809/11/1536665537_713032.png)nn编译器:Qt 5.7.1 mingw32n.pro文件:nQT += core gui sql networknLIBS += -LF:\WORK\test\new\lib -lBaseLib -llibxml2.dlln其中libBaseLib.a是自己用qt mingw32编译的,里面用到了libxml2.a
ld returned 1 exit status的问题
[img=https://img-bbs.csdn.net/upload/201602/16/1455631603_66338.png][/img]rn[img=https://img-bbs.csdn.net/upload/201602/16/1455631896_214202.png][/img]rnrn代码是抄钱能的书《C++程序设计教程》P302~304的代码,又没抄错,为什么会遇到这种问题?rn还有,第二张图的头文件一个是灰色字体,一个是黑体,为什么会不一样?是不是这里出现问题?rn百度了一下,有人说是链接出现问题,但是解决方法看不懂,在此求大神大侠帮忙~[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/18.gif][/img]
collect2 ld returned 1 exit status
代码如下:rnrn头文件:rn#ifndef EX_2_Hrn#define EX_2_Hrnrn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rnrnrnclass StandardDialogs : public QDialogrnrn Q_OBJECTrnpublic:rn StandardDialogs(QWidget *parent = 0, Qt::WindowFlags = 0);rn //~StandardDialogs();rnpublic:rn QGridLayout *layout;rn QPushButton *FileButton;rn QPushButton *ColorButton;rn QPushButton *FontButton;rn QLineEdit *FileLine;rn QLineEdit *FontLine;rn QFrame *ColorFrame;rnprivate slots:rn void slotOpenFileDlg();rn void slotOpenColorDlg();rn void slotOpenFontDlg();rn;rnrn#endif // EX_2_Hrnrn资源文件:rn#include"Ex_2.h"rnrnStandardDialogs::StandardDialogs(QWidget *parent, Qt::WindowFlags f):rn QDialog(parent, f)rnrn this->setWindowTitle("StandardDialog");rn layout = new QGridLayout(this);rnrn FileButton = new QPushButton();rn FileButton->setText("File Dialog");rnrn ColorButton = new QPushButton();rn ColorButton->setText("Color Dialog");rnrn FontButton = new QPushButton();rn FontButton->setText("Font Dialog");rnrn FileLine = new QLineEdit();rnrn ColorFrame = new QFrame();rn ColorFrame->setFrameShape(QFrame::Box);rn ColorFrame->setAutoFillBackground(true);rnrn FontLine = new QLineEdit();rn FontLine->setText("Hello");rnrn layout->addWidget(FileButton, 0, 0);rn layout->addWidget(FileLine, 0, 1);rn layout->addWidget(ColorButton, 1, 0);rn layout->addWidget(ColorFrame, 1, 1);rn layout->addWidget(FontButton, 2, 0);rn layout->addWidget(FontLine, 2, 1);rnrn connect(FileButton, SIGNAL(clicked()), this, SLOT(slotOpenFileDlg()));rn connect(ColorButton, SIGNAL(clicked()), this, SLOT(slotOpenColorDlg()));rn connect(FontButton, SIGNAL(clicked()), this, SLOT(slotOpenFontDlg()));rnrnrnvoid StandardDialogs::slotOpenFileDlg()rnrn QString s = QFileDialog::getOpenFileName(rn this,rn "Open file dialogs",rn "/",rn "C++files(*.cpp)::C files::HeadFiles(*h)");rn FileLine->setText(s.toAscii());rnrnrnvoid StandardDialogs::slotOpenColorDlg()rnrn QColor c = QColorDialog::getColor(Qt::blue);rn if(c.isValid())rn rn ColorFrame->setPalette(QPalette(c));rn rnrnrnvoid StandardDialogs::slotOpenFontDlg()rnrn bool ok;rn QFont f = QFontDialog::getFont(&ok);rn if(ok)rn rn FontLine->setFont(f);rn rnrnrnMain:rn#include"Ex_2.h"rnrnint main(int argc, char *argv[])rnrn QApplication app(argc, argv);rn StandardDialogs s;rn return app.exec();rnrnrnrnBuild Issus:rncollect2 ld returned 1 exit statusrnComplie Output:rnRunning build steps for project Ex_2...rnStarting: e:/qt/qt/bin/qmake.exe F:/Qt Program/Ex_2/Ex_2.pro -spec win32-g++ -r rnExited with code 0.rnStarting: E:/QT/mingw/bin/mingw32-make.exe -w rnmingw32-make: Entering directory `F:/Qt Program/Ex_2'rnE:/QT/mingw/bin/mingw32-make -f Makefile.Debugrnmingw32-make[1]: Entering directory `F:/Qt Program/Ex_2'rng++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\Ex_2.exe debug/Ex_2.o debug/Main.o debug/moc_Ex_2.o -L"e:\QT\qt\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4rnmingw32-make[1]: Leaving directory `F:/Qt Program/Ex_2'rnmingw32-make: Leaving directory `F:/Qt Program/Ex_2'rne:/qt/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cannot open output file debug\Ex_2.exe: Permission deniedrncollect2: ld returned 1 exit statusrnmingw32-make[1]: *** [debug\Ex_2.exe] Error 1rnmingw32-make: *** [debug] Error 2rnExited with code 2.rnError while building project Ex_2rnWhen executing build step 'Make'
问题:collect2: ld returned 1 exit status
在程序开始包含了math.h头文件,在函数中调用了POW()指数函数,在编译程序的时候出现了上面那个错误:rn/usr/bin/ld: /tem/cckJBf9P.O Undefined pow:in function..rncollect2: ld returned 1 exit statusrn我变换编译方式:gcc -O2 -Wall -o a a.c -lmath 还是不行?rn请大虾门指点??
collect2: ld returned 1 exit status的问题
定义了一个win类:rnrnwin::win(QWidget *parent):QListWidget(parent)rnrnrn setViewMode(QListWidget::ListMode);rn setSelectionMode(QAbstractItemView::SingleSelection);rnrn for( int i=0; i<10; i++ )rn rnrn QListWidgetItem *item = new QListWidgetItem();rn QToolButton *btn=new QToolButton();rnrn btn->setText("23");rnrn setItemWidget(item, btn);rnrn rnrnrnrnrn然后:rnrnrnvoid MainWindow::createcombobox()rnrn ui->comboBox->setStyleSheet("QComboBox min-height:16px;min-width:16px;padding-right: 16px; "rn "QComboBox QAbstractItemView::itemmin-height:50px;min-width:150px");rnrn win *view = new win(this);rn ui->comboBox_2->setModel(view->model());rn ui->comboBox_2->setView(view);rnrnrn编译的时候就出现如题的问题。求指教!!!
collect2: ld returned 1 exit status链接错误
编译网上下载的开源软件opencapwap,使用make命令成功编译rn但是默认的编译器是gcc,而我需要交叉编译,需要编译出能在MIPS下运行的程序。rn编译结果如下(输出信息不多,全拷贝出来):rn[root@SS-SERVER1 capwap-0.93.3]# make allrn/home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-gcc -Wall -g -O0 -D_REENTRANT -DBCM -I /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -DCW_DEBUGGING -c -o CWThread.o CWThread.crn[color=#0000FF]CWThread.c: In function `CWThreadTimedSemWait':rnCWThread.c:466: warning: implicit declaration of function `sem_timedwait'[/color]/home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-gcc -Wall -g -O0 -D_REENTRANT -DBCM -I /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -DCW_DEBUGGING -c -o CWBinding.o CWBinding.crn/home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-gcc -Wall -g -O0 -D_REENTRANT -DBCM -I /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -DCW_DEBUGGING -c -o WTPBinding.o WTPBinding.crn/home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-gcc -Wall -g -O0 -D_REENTRANT -DBCM -I /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -DCW_DEBUGGING -c -o WTPBcmDriverInteraction.o WTPBcmDriverInteraction.crn/home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-gcc -Wall -g -O0 -D_REENTRANT -DBCM -I /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -DCW_DEBUGGING -c -o WTPSettingsFile.o WTPSettingsFile.crn/home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-gcc -Wall -g -O0 -D_REENTRANT -DBCM -I /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -DCW_DEBUGGING -c -o timerlib.o timerlib.crn/home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-gcc -DWRITE_STD_OUTPUT WTP.o WTPBcmFrameReceive.o WTPConfigFile.o WTPProtocol.o WTPProtocol_User.o WTPDiscoveryState.o WTPJoinState.o WTPConfigureState.o WTPDataCheckState.o WTPRunState.o WTPRunStateCheck.o WTPRetransmission.o WTPSulkingState.o CWCommon.o CWConfigFile.o CWErrorHandling.o CWSafeList.o CWList.o CWLog.o CWNetwork.o CWProtocol.o CWRandom.o CWSecurity.o CWOpenSSLBio.o CWStevens.o CWThread.o CWBinding.o WTPBinding.o WTPBcmDriverInteraction.o WTPSettingsFile.o timerlib.o /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/lib/libssl.a /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/lib/libcrypto.a /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/lib/libpthread.a /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/lib/libdl.a /home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-[color=#FF0000]1/staging_dir_mipsel/usr/lib/libpcap.a -D_REENTRANT -o WTPrnWTP.o: In function `main':rn/home/yang/trunk/capwap-0.93.3/WTP.c:410: undefined reference to `CWWTPReceiveStats'rn/home/yang/trunk/capwap-0.93.3/WTP.c:422: undefined reference to `CWWTPReceiveFreqStats'rnWTPRunState.o: In function `CWParseVendorMessage':rn/home/yang/trunk/capwap-0.93.3/WTPRunState.c:1055: undefined reference to `CWParseVendorPayload'rnWTPRunState.o: In function `CWSaveVendorMessage':rn/home/yang/trunk/capwap-0.93.3/WTPRunState.c:1275: undefined reference to `CWWTPSaveUCIValues'rn/home/yang/trunk/capwap-0.93.3/WTPRunState.c:1285: undefined reference to `CWWTPSaveWUMValues'rncollect2: ld returned 1 exit statusrnmake: *** [WTP] Error 1[/color][root@SS-SERVER1 capwap-0.93.3]#rnrnrnMakefile内容如下:rn[color=#FF0000]KAMIKAZEDIR=/home/yang/openwrt_sdk/OpenWrt-SDK-Linux-i686-1rnrnCC = $(KAMIKAZEDIR)/staging_dir_mipsel/bin/mipsel-linux-gcc[/color]rnLDFLAGS = $(KAMIKAZEDIR)/staging_dir_mipsel/usr/lib/libssl.a $(KAMIKAZEDIR)/staging_dir_mipsel/usr/lib/libcrypto.a $(KAMIKAZEDIR)/staging_dir_mipsel/lib/libpthread.a $(KAMIKAZEDIR)/staging_dir_mipsel/lib/libdl.a $(KAMIKAZEDIR)/staging_dir_mipsel/usr/lib/libpcap.a -D_REENTRANTrnrnCFLAGS = -Wall -g -O0 -D_REENTRANT -DBCM -I $(KAMIKAZEDIR)/staging_dir_mipsel/usr/include #-DCW_NO_DTLSrnrn# Memory leakrn#LDFLAGS += ../dmalloc-5.5.0/libdmallocth.arn#CFLAGS += -DDMALLOCrnrn# Capwap DebuggingrnCFLAGS += -DCW_DEBUGGINGrnrnRM = /bin/rm -frnrn# list of generated object files for WTP.rnWTP_OBJS = WTP.o WTPBcmFrameReceive.o WTPConfigFile.o WTPProtocol.o WTPProtocol_User.o WTPDiscoveryState.o WTPJoinState.o WTPConfigureState.o WTPDataCheckState.o WTPRunState.o WTPRunStateCheck.o WTPRetransmission.o WTPSulkingState.o CWCommon.o CWConfigFile.o CWErrorHandling.o CWSafeList.o CWList.o CWLog.o CWNetwork.o CWProtocol.o CWRandom.o CWSecurity.o CWOpenSSLBio.o CWStevens.o CWThread.o CWBinding.o WTPBinding.o WTPBcmDriverInteraction.o WTPSettingsFile.o timerlib.ornrnWTP_SRCS = $(WTP_OBJS:.o=.c)rnrnWTP_DEPS := $(WTP_OBJS:.o=.d)rnrn# program executables.rnWTP_NAME = WTPrnrn.PHONY: deps clean clean_libs libsrnrn# top-level rule, to compile everything.rnall: $(WTP_NAME)rnrn$(WTP_NAME): $(WTP_OBJS)rn $(CC) -DWRITE_STD_OUTPUT $(WTP_OBJS) $(CC_FLAGS) $(LDFLAGS) -o $(WTP_NAME)rnrnclean:rn $(RM) $(WTP_NAME) $(WTP_OBJS) $(WTP_DEPS)rnrnclean_deps:rn $(WTP_DEPS)rnrndeps: $(WTP_SRC)rn $(CC) -MD -E -DWRITE_STD_OUTPUT $(WTP_SRCS) $(CFLAGS) >/dev/nullrnrn-include $(WTP_DEPS)rnrn
error: collect2: ld returned 1 exit status
在compile output出现这样的错误,我自己有一个自定义的库,我该怎么加载进去,需要哪些文件我只有.lib和.h文件,输出.DLL文件该怎么得来?还是本身就不需要的?rndebug/mainwindow.o:F:\2013-02-25\mde-build-desktop/../mde/mainwindow.cpp:19: undefined reference to `MddSys_EnableBoard'rnrndebug/mainwindow.o:F:\2013-02-25\mde-build-desktop/../mde/mainwindow.cpp:21: undefined reference to `MddSys_GetLastErrMsg'rn
collect2: ld returnd 1 exit status
我用arm-none-linux-gnueabi 交叉编译工具 编译codeblocks下的rn一个工程,结果编译时出现了这个提示,也没有生成可执行文件。rn大家知道是怎么回事吗?和链接库有关吗?链接库我也已经加进去了呀!rn大家帮帮忙~~rnubuntu 10.04
报错“collect2: ld returned 1 exit status”
一直都是正常的,今天编译的时候就错,如下:rn======================================================================rnpublic.o(.bss+0x0): In function `get_date':rn/home/opt/src/public.c:282: multiple definition of `errno_r'rn/tmp/ccf9Volt.o(.bss+0x130):/home/opt/src/BatchMain.c:884: first defined hererncollect2: ld returned 1 exit statusrnmake: *** [BatchMain] Error 1rn======================================================================rn其中,get_date是public中的第一个函数。rn报错说errno_r变量重复定义了。在BatchMain.c:884第一次定义,问题是我变量errno_r根本就没有定义过。rn所以我怀疑可能是编译环境出问题了,请问如何查找?thx
collect2: ld returned 1 exit status
E:/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: jni/libStreamMediaLib.a(UdxClient.o): in function CUdxClient::BindAddListen(char*, long):E:/FUdx_Android//jni/../jni/FastUdx/StreamMediaLib/build/android/../..//UdxClient.cpp:39: error: undefined reference to 'CreateFastUdx()'rnE:/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: jni/libStreamMediaLib.a(UdxClient.o): in function typeinfo for CUdxClient:UdxClient.cpp(.data.rel.ro+0x0): error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'rncollect2: ld returned 1 exit statusrnmake.exe: *** [obj/local/armeabi/libtest.so] Error 1
chrome里的ajax, status=0???
为何XMLHttpRequest在IE下正常运行(readyState=4,status=200),rn可是chrome里的readyState能达到4,而status一直为0?rnrnrn[code=JScript]rnfunction getHttp() rn var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP")rn if (xmlhttp == null) return;rn tryrn rnalert("1");rn xmlhttp.open("get", "http://www.baidu.com");rnalert("2");rn rn catch (e)rn rn xmlhttp = null;rn return;rn rnalert("3");rn xmlhttp.onreadystatechange = function()rn rn if (!xmlhttp) return;rn if (xmlhttp.readyState == 4)rn rnalert("4");rn if (xmlhttp.responseText)rn rnalert("5");rn alert(xmlhttp.responseText);rn rn xmlhttp = null;rn rn rnalert("6");rn xmlhttp.send(null);rnrn[/code]
collect2: ld returned 1 exit status make: *** [mplayer.exe] Error 1
我在编译Mplayer时rn出错:rncollect2: ld returned 1 exit statusrnmake: *** [mplayer.exe] Error 1rnrn这是什么意思?
:-1: error: collect2: ld returned 1 exit status
我的程序现在[color=#FF0000]编译过程已经没有任何警告[/color],因为要用到两个外部的动态库,就在pro中加入了以下内容:rnLIBS += -L/usr/lib \rn -lnet \rn -lpcaprn我在/usr/lib下有两个库文件,分别是libnet.so.1.5.0, libpcap.1.0.0,我已经用ln在该目录下生成了分别叫做libnet.so 和libpcap.so的链接,但是为何仍然报错?困惑中,求解
:-1: error: collect2: ld returned 1 exit status 是什么错误??
写Qt的时候出现的....好奇怪的说
id returned 1 exit status c++问题如何解决?
跳出来的提示如下:rn# Project: Project4_12rn# Makefile created by Dev-C++ 5.11rnrnCPP = g++.exernCC = gcc.exernWINDRES = windres.exernOBJ = example4_12.o student.ornLINKOBJ = example4_12.o student.ornLIBS = -L"D:/program files (x86)/Dev-Cpp/MinGW64/lib" -L"D:/program files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgccrnINCS = -I"D:/program files (x86)/Dev-Cpp/MinGW64/include" -I"D:/program files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/program files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"rnCXXINCS = -I"D:/program files (x86)/Dev-Cpp/MinGW64/include" -I"D:/program files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"D:/program files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"D:/program files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"rnBIN = Project4_12.exernCXXFLAGS = $(CXXINCS) rnCFLAGS = $(INCS) rnRM = rm.exe -frnrn.PHONY: all all-before all-after clean clean-customrnrnall: all-before $(BIN) all-afterrnrnclean: clean-customrn $RM $(OBJ) $(BIN)rnrn$(BIN): $(OBJ)rn $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)rnrnexample4_12.o: example4_12.cpprn $(CPP) -c example4_12.cpp -o example4_12.o $(CXXFLAGS)rnrnstudent.o: student.cpprn $(CPP) -c student.cpp -o student.o $(CXXFLAGS)rnrn
error: collect2: ld returned 1 exit status错误如何解决?
调试程序出现错误:error: collect2: ld returned 1 exit statusrnCompile output:rn......rndebug/moc_finddialog.o:moc_finddialog.cpp:(.rdata$_ZTV10FindDialog[vtable for FindDialog]+0x18): undefined reference to `FindDialog::~FindDialog()' rndebug/moc_finddialog.o:moc_finddialog.cpp:(.rdata$_ZTV10FindDialog[vtable for FindDialog]+0xfc): undefined reference to `non-virtual thunk to FindDialog::~FindDialog()' rndebug/moc_finddialog.o:moc_finddialog.cpp:(.rdata$_ZTV10FindDialog[vtable for FindDialog]+0x100): undefined reference to `non-virtual thunk to FindDialog::~FindDialog()' rncollect2: ld returned 1 exit status rnmingw32-make[1]: *** [debug\finddialog.exe] Error 1 rnmingw32-make: *** [debug] Error 2 rnThe process "D:/Qt/2010.04/mingw/bin/mingw32-make.exe" exited with code %2.rnError while building project finddialog (target: Desktop)rnWhen executing build step 'Make'rn请问如何解决?
codeblocks编译后显示Process terminated with status 1
rt,编译过了,不运行,而且显示Process terminated with status 1,是什么意思?
Qt4.5编译后报错collect2: ld return 1 exit status
collect2: ld return 1 exit statusrn各位帮忙看看,编译后那个播放器教程的源码后会出现这个错误,不知道怎么解决,求正解。rn网上搜到了一篇博客,说是正在后台运行,需要先结束或重启creator,我重启后再编译还是报错
大于1输出1等于0输出0小于1输出-1?????
用C#语言写一个方法一个参数 ,rn大于1输出1等于0输出0小于1输出-1,不用任何形式条件判断、分支、跳转等类型的语句,怎么实现?rn
DEV++出现Id retuned 1 exit status是为什么
[code=c]#include rn#includernusing namespace std;rnint mian()rn float P;rn scanf("%f",&P);rn if(P>=4.2)rn printf("A\n");rn rn return 0;rn [/code]rn编译的时候出现了问题?请问为什么会出现这种情况,这句话什么意思?怎么解决[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img]
false的值是0,但是echo false;却不输出0,echo 0;输出0,奇怪
echo false; 无输出。rnecho "false"; falsernecho 0; 0rnrnif(false==0)rnecho "false"; 输出:false
Status字段用那种数据类型好,Number还是char(1)
Status字段只有 0,1,2,3,4,5 。 6个值rnrn建表时数据类型用number好,还是用char(1),从数据查询速度,性能,占用内存空间多方面考虑
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法