ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architectur

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/wbw1985/article/details/12968999

错误:ld: symbol dyld_stub_binding_helper not found, normally in crt1.o/dylib1.o/bundle1.o for architecture i386

原因:不支持低版本的系统如3.0

解决:Deployment Target was 3.0. Changing it to 4.3 fixed it.

展开阅读全文

CXX0017:Error:symbol "m_CurOpItem" not found

04-27

// Main.cpp: implementation of the CMain class.rn// CMain类实现文件rn////////////////////////////////////////////////rnrn#include "stdafx.h"rn#include "AI3.h"rn#include "Main.h"rn#include "math.h"rnrnrn////////////////////////////////////rn// CaculateH:计算当前H值rn// 参数:当前节点rn// 返回值:H值rn////////////////////////////////////rnint CMain::CaculateH(CDisplay *Item)rnrn DataType Src[MaxItem][MaxItem];rn for(int i=0; iGetDispData(i,j);rn int Hop = 0;rn for(i=0; im_Desc[i][j] == Desc) rn rn Descpos = Position(i,j);rn return (int)fabs(Descpos.x - Srcpos.x)rn +(int)fabs(Descpos.y-Srcpos.y);rn rn rn return 65535;rnrnrn///////////////////////////////////////rn// FindOtherNote: 用于回溯 寻找另一个节点 rn// 参数:当前G值rn// 返回值:是否找到新节点rn///////////////////////////////////////rnBOOL CMain::FindOtherNote(int CurrentG)rnrn POSITION pos = m_DispList.GetTailPosition();rn while(pos)rn rn CDisplay *Item = (CDisplay *)m_DispList.GetPrev(pos);rn if(Item->GetCurrentG() != CurrentG) continue;//没有到当前层rn if(Item->GetNoteType() != NotYet) continue;//当前结点不是没有被扩展的结点rn m_CurOpItem = Item;rn return TRUE;rn rn return FALSE;rnrnrn///////////////////////////////////////////rn// GetResultListPoint: 得到搜索树树根的指针rn// ////////////////////////////////////////rnList * CMain::GetResultListPoint()rnrn while(1)rn rn if(m_DispList.GetCount() >= MaxNote) rn rn HWND hWnd = AfxGetApp()->GetMainWnd()->GetSafeHwnd();rn PostMessage(hWnd,WM_ERROR,0,ErrorCode1);rn return &m_DispList;rn rn if(CaculateH(m_CurOpItem) == 0) rn rn HWND hWnd = ::AfxGetApp()->GetMainWnd()->GetSafeHwnd();rn PostMessage(hWnd,WM_ERROR,0,NoError);rn return &m_DispList;rn rn GenerateMoveFlag();rn m_CurrentG++;rn if(GenerateChild() == NoError) continue;rn HWND hWnd = ::AfxGetApp()->GetMainWnd()->GetSafeHwnd();rn PostMessage(hWnd,WM_ERROR,0,ErrorCode);rn break;rn rn return NULL;rnrn这是一段不完全的程序,具体是那个地方出错的我不知道,只是调试错误 论坛

finally block does not complete normally

05-23

所有的finally块均出现:[b]finally block does not complete normally[/b][color=#FF0000][/color]rnrnwhy?期待大虾指教!^_^rnrnrn[code=Java]//本JavaBean包括数据的插入、更新、删除和查询等。rnrnpackage lee.javaBean;rnrnrnrnimport java.sql.*;rnrnpublic class DBUtilrnrn private DBLink dblink=new DBLink();rn private Statement stmt;rn private ResultSet rs; rn rnrn //获取查询的行数:没有结果返回-1,查询异常返回-2;rn rn public int getRowCount(String strSql)rn rn int intCount=0;rn tryrn rn stmt=dblink.getStmtread();rn rs=stmt.executeQuery("SELECT COUNT(*) FROM"+strSql);rn if(rs.next())rn rn intCount=rs.getInt(1);rn rn else intCount=-1; rn rn catch(Exception e)rn rn intCount=-2; rn rn finallyrn rn dblink.close();rn return intCount;rn rn rn rn //执行插入操作 rn public int insert(String strSql)rn rn int count=0;rn stmt=dblink.getStmt();rn tryrn rn count=stmt.executeUpdate(strSql);rn rn rn catch(Exception e)rn rn count=-2;rn System.err.println(e.getMessage());rn e.printStackTrace();rn rn finallyrn rn dblink.close();rn return count;rn rn rn rn rn //更新数据库数据rn public int update(String sql)rn rn int count=0;rn stmt=dblink.getStmt();rn tryrn rn count=stmt.executeUpdate(sql);rn rn catch(Exception e)rn rn count=-2;rn System.err.print(e.getMessage());rn e.printStackTrace();rn rn finallyrn rn dblink.close();rn return count;rn rn rn rn rn rn //删除数据库数据rn rn public int delete(String sql)rn rn int count=0;rn stmt=dblink.getStmt();rn tryrn rn count=stmt.executeUpdate(sql);rn rn rn rn catch(Exception e)rn rn count=-2;rn System.err.println(e.getMessage());rn e.printStackTrace();rn rn rn rn finallyrn rn dblink.close();rn return count;rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn[/code] 论坛

没有更多推荐了,返回首页