ffmpeg的静态库,在连接的时候出现的问题,比较奇怪 10C

源码中 类似 “glob64”这样的变量压根就没有,为什么会有这样的错误提示??

img2dec.c:(.text+0xef8): undefined reference to `glob64'
img2dec.c:(.text+0x105c): undefined reference to `glob64'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(img2dec.o): In function `img_read_close':
img2dec.c:(.text+0x1a28): undefined reference to `globfree64'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(rtsp.o): In function `get_sockaddr':
rtsp.c:(.text+0x2b0): undefined reference to `gai_strerror'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(rtsp.o): In function `sdp_read_header':
rtsp.c:(.text+0x21d8): undefined reference to `getnameinfo'
rtsp.c:(.text+0x21e4): undefined reference to `gai_strerror'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(rtsp.o): In function `ff_rtsp_make_setup_request':
rtsp.c:(.text+0x4454): undefined reference to `getnameinfo'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(rtsp.o): In function `ff_rtsp_connect':
rtsp.c:(.text+0x4a68): undefined reference to `getnameinfo'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(sdp.o): In function `resolve_destination.constprop.2':
sdp.c:(.text+0x3fc): undefined reference to `getnameinfo'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(rtpproto.o): In function `rtp_parse_addr_list':
rtpproto.c:(.text+0x61c): undefined reference to `gai_strerror'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(tcp.o): In function `tcp_open':
tcp.c:(.text+0x22c): undefined reference to `gai_strerror'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(udp.o): In function `udp_resolve_host.constprop.2':
udp.c:(.text+0xba4): undefined reference to `gai_strerror'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(udp.o): In function `udp_open':
udp.c:(.text+0x1664): undefined reference to `getnameinfo'
udp.c:(.text+0x1670): undefined reference to `gai_strerror'
/home/yuanda.yu/svndebug/trunk/retarded/app/main/../3rdlibs/ffmpeg_lib/libavformat.a(file.o): In function `file_read_dir':
file.c:(.text+0x68): undefined reference to `readdir64'
file.c:(.text+0xd0): undefined reference to `lstat64'

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Ffmpeg静态库
编译 vs2015的ffmpeg的静态库比较麻烦,这里提供一份编译好的静态库可以直接使用。 可以用与调试。
读文件的时候,出现奇怪的问题!
俺是初学VC.NET,写了下面一段代码来读文件:rnrn FileStream * fs;rn StreamReader * sr;rnrn tryrn fs = new FileStream( path, FileMode::Open );rn sr = new StreamReader( fs );rn rn catch( System::Exception * pe )rn Console::WriteLine( pe->ToString() );rn rnrn int count = 0;rn String * tempStr;rn for( ; ; )rn rn tempStr = sr->ReadLine();rn count ++;rnrn if( tempStr = 0 ) break;rnrn Console::WriteLine( count.ToString() );rn Console::WriteLine( tempStr );rnrn tempStr = Console::ReadLine();rnrn if( tempStr->Equals( S"q" ) || tempStr->Equals( S"Q" ) )rn rn break;rn rn rnrnrn sr->Close();rn fs->Close();rnrn但是txt文件里明明有内容,为什么没有显示出来呢?rn没有任何错误提示!
在连接数据库时候,出现奇怪的问题!
我用的是adoconnection连接sqlserver,sqlserver放在一台服务器上,我在窗体创建的时候用代码来设置连接,如下:rnvarrn connectstr:widestring;rn tryrn connectstr:='Provider=SQLOLEDB.1;Password=123456;Persist Security Info=True;User ID=aa;Initial Catalog=PACRM;Data Source=sss';rn ADOConnection1.ConnectionString :=connectstr;rn ADOConnection1.Connected := true;rn exceptrn if Application.MessageBox('数据库连接错误!','错误',MB_OK+MB_ICONERROR)=IDOK thenrn Application.Terminate;rn end;rn结果出现了问题,在本机和其它一台上可以连接,但在另外几台上又会出现“数据库连接错误”rn几台机器都在局域网内!是什么问题?
windows下ffmpeg静态库使用出现未定义
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:libraryrn1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:libraryrn1>libavcodec.a(utils.o) : error LNK2019: unresolved external symbol _libiconv_open referenced in function _avcodec_decode_subtitle2rn1>libavcodec.a(utils.o) : error LNK2019: unresolved external symbol _libiconv_close referenced in function _avcodec_decode_subtitle2rn1>libavcodec.a(utils.o) : error LNK2019: unresolved external symbol _libiconv referenced in function _avcodec_decode_subtitle2rn1>libavutil.a(display.o) : error LNK2019: unresolved external symbol _hypot referenced in function _av_display_rotation_getrn1>libavutil.a(error.o) : error LNK2019: unresolved external symbol _strerror_r referenced in function _av_strerrorrn1>libmingwex.a(glob.o) : error LNK2019: unresolved external symbol _stricoll referenced in function _glob_match
mysql连接出现的奇怪的问题
安裝在 RH 7.3 Linux 系統下的(java+mysql)rn程序有时候运行的时候会出现这个问题:看起來像是 MySQL 失去了连线rncom.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: rnrn** BEGIN NESTED EXCEPTION ** rnrnjava.io.EOFExceptionrnrnSTACKTRACE:rnrnjava.io.EOFExceptionrn at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1895)rn at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2342)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2838)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1584)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1675)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:2301)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:2228)rn at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1836)rn at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1930)rn at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1855)rn at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1693)rn at kvcmg.Manage_Subject.update_subject(Manage_Subject.java:524)rn at kvcmg.DoSendMessage.run(DoSendMessage.java:181)rn at kvcmg.ThreadPool$WorkerThread.run(ThreadPool.java:71)rnrnrn** END NESTED EXCEPTION **rnrnrn at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2554)rn at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2838)rn at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1584)rn at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1675)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:2301)rn at com.mysql.jdbc.Connection.execSQL(Connection.java:2228)rn at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1836)rn at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1930)rn at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1855)rn at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1693)rn at kvcmg.Manage_Subject.update_subject(Manage_Subject.java:524)rn at kvcmg.DoSendMessage.run(DoSendMessage.java:181)rn at kvcmg.ThreadPool$WorkerThread.run(ThreadPool.java:71)rn请问,哪位高手帮我看一下?
vs2015编译的ffmpeg静态库
visual studio 2015编译的ffmpeg静态库
编译FFmpeg静态库
ffmpeg是很好的开源工具,对做视频理解来说很有帮助,内部机制也很经典,经过优化后的ffmpeg解码效率更高(例如:多线程解码、关键帧解码、GPU解码等),唯一的缺点是文档比较乱,有的功能接口使用比较不清晰, 有时候,需要编译ffmpeg的静态库,方便部署: ./configure --prefix=$FFMPEG_HOME--pkg-config-flags="--static" ...
FFmpeg iOS 编译的静态库
iOS开发中的视频,音频的编解码,可以直接拖进项目中使用。支出所有的IOS开发的架构。
ffmpeg 编译 静态库 动态库
按照网上的方法我已经成功在windows上编译好了ffmpeg的dll,lib,并且用demo测试可行,但是我编译出的lib文件是导入库,而我这边的需求是静态库,不依赖其他dll(如avcodec-57.dll,avdevice-57.dll等),请问能实现吗?
FFmpeg for Android(静态库)
资源文件为FFmpeg编译的Android平台静态库(.a库),FFmpeg版本是3.4.2,支持架构:arm(armv7-a)、arm64、x86、x86_64。 库基本未裁减,若需要自己编译或裁减FFmpeg,可参看此脚本:https://blog.csdn.net/lizhijian21/article/details/80676254。
FFmpeg win64位静态库
OpenCV源码官网最新版本,OpenCV源码官网最新版本,OpenCV源码官网最新版本
在ubuntu系统下编译ffmpeg的静态库
在ubuntu上配置ffmpeg的开发环境,参考:http://blog.csdn.net/leechee_1986/article/details/41891119 到ffmpeg官网下载ffmpeg的源代码,解压,编译 ./configure --enable-gpl --enable-nonfree --enable-pthreads --enable-libfaac --enabl
ffmpeg 64bit 最新版静态库
ffmpeg 64bit最新版静态库,从官网上下载要不是源码,要不是就是动态库,本人自己编译了一个静态库,且只解h264,库文件也缩小了很多,经本人验证,绝对可用
调用FFmpeg 静态库出错
在用gcc编译好了FFmpeg后,调用FFmpeg静态库时出错,如下 /mnt/e/work/ffmpeg/install/lib/libavformat.a(avienc.o): In function `avi_write_header': /mnt/e/work/ffmpeg/libavformat/avienc.c:454: undefined reference to `avpriv_
ffmpeg静态库合并
ios平台实现ffmpeg编译,整合armv7和armv7s版静态库
xcode5下ffmpeg静态库配置
ffmpeg 2.3.1 在xcode 5 下面的静态库编译 1. 解压本压给包 2. 将解压后的 build-ffmpeg.sh ffmpeg-2.3.1.tar.bz2 拷备到os的一个目录, 如:xxx/ffmpeg 3. 修改 build-ffmpeg.sh权限, chmod 777 build-ffmpeg.sh 4. 运行 build-ffmpeg.sh 将自动生成 build dependencies 目录 5. 并提示错误 6. 将 ffmpeg.2.3.1.tar.bz2 移动到 xxx/ffmpeg/build/src 下面 7. 再次运行 build-ffmpeg.sh 需要花一些时间,生成 ffmpeg的静态库 8. 生成成功
连接ORACLE数据的时候出现的问题?
用以下代码连接ORACLE9i连接数据,出现以下问题。rnrnrnrnWarning: Oracle: Connection Failed: Error while trying to retrieve text for error ORA-01019 in /share/html_share/xiaodong.php on line 3rnrnrn这是什么原因???
gcc静态库连接的问题
gcc的-static选项是禁止使用动态库。rn如果我的程序需要很多库文件,而只有一个是静态连接,该怎么办呢?
关于静态库的连接问题
内功心法: 如果想理解大型程序的构建必须完全理解linker阶段到底做了哪些工作;一下抛砖引玉,一些个人的理解。 提前知识:linxu下目标文件格式(ELF): 1.可重定位目标文件; //你可以暂时理解为通常说的.o 2.可执行目标文件; //你可以单纯的理解为.exe 3.共享库; 首先对于基本的程序编译步骤大致可以分为如下: ...
linux下连接静态库的问题
用静态库封装类调用时出错,不明白问题出在哪里,请高手指点。简单示例程序:rnrn#ifndef __HTTP_H__rn#define __HTTP_H__rn#include rnclass Httprnrnpublic:rn void InitHttp();rn void CloseHttp();rn int PrintHttp(const char* str);rn;rn#endifrnrncpp文件:rn#include "http.h"rnrnrnvoid Http::InitHttp()rnrnrnrnrnvoid Http::CloseHttp()rnrnrnrnrnint Http::PrintHttp(const char* str)rnrn printf("%s\n",str);rn return 1;rnrnrnmain.cpprn#include "http.h"rnrnint main()rnrn Http* m_http = new Http();rn m_http->PrintHttp("http");rnrn delete m_http;rn return 1;rnrnrn先生成目标文件: g++ -c http.cpprn生成静态库: ar cr libmyhttp.a http.orn这两步什么问题,都已经生成,连接后编译:rng++ -o test main.cpp -L.-lmyhttprn出现错误:/tmp/cc6cxeOn.o: In function `main':rnmain.cpp:(.text+0x20): undefined reference to `Http::PrintHttp(char const*)'rncollect2: ld 返回 1 rn本人刚接触linux下的编程,请高手指点。rn
关于静态库连接的问题!
现在我有一个类定义,其中类声明放在头文件中,而定义则在另一个文件中。我把包含定义的文件做成一个静态连接库放在当前目录下,然后在使用该类的文件中包括声明头文件,并且在编译的时候指定了库路径。如,Class Wave放在Wave.h下,Wave.cxx是其定义体,我在Main.cxx中包含Wave.h,并在编译时用 g++ -o main -L. Main.cxx,但是总是提示找不到类中函数的定义,这是怎么回事?高手赐教!
静态库的连接问题
静态库的使用需要包含头文件和 .lib文件.rn其中 .lib文件可以用rnrn1、#pragma comment(lib, "XXX.lib") 来连接rn或者rn2、在VS2005编译器的 项目属性->链接器->输入->附加依赖项 中输入 XXX.librnrn请问上面的两种方法有什么区别,哪种方法更常用?谢谢!rnrnrn
编译FFMPEG时候的问题
编译ffmpeg的时候,会出现以下情况:rncfz@cfz-virtual-machine:~/桌面/wma/源代码/gst-ffmpeg-0.10.12$ ./configurernchecking for a BSD-compatible install... /usr/bin/install -crnchecking whether build environment is sane... yesrnchecking for a thread-safe mkdir -p... /bin/mkdir -prnchecking for gawk... nornchecking for mawk... mawkrnchecking whether make sets $(MAKE)... yesrnchecking nano version... 0 (release)rnchecking whether to enable maintainer-specific portions of Makefiles... nornchecking build system type... x86_64-unknown-linux-gnurnchecking host system type... x86_64-unknown-linux-gnurnchecking how to print strings... printfrnchecking for style of include used by make... GNUrnchecking for gcc... gccrnchecking whether the C compiler works... nornconfigure: error: in `/home/cfz/桌面/wma/源代码/gst-ffmpeg-0.10.12':rnconfigure: error: C compiler cannot create executablesrnSee `config.log' for more detailsrn这个是这么回事呢?
linux 生成静态库的时候怎么连接别的静态库
我有一个mym.c的静态库文件里面没有main函数,我想在生成静态库的同时连接另外3个静态库rngcc -c mym.c -L./ -lst -lsd -lyurnar rcs libmym.a mym.orn这样生成的libmym.a好像没有把-lst -lsd -lyu3个静态库连接进去,该怎么办?
PHP连接数据库问题。比较奇怪
rnrnrn代码是这样的。连接虚拟主机上的MYSQL。。rnrn我用PHPMYADMIN可以登陆,但是用上面的代码确连接不上。出现如下错误:rnWarning: mysql_connect() [function.mysql-connect]: Host '192.168.1.254' is not allowed to connect to this MySQL server in E:\www\xnwenn\wb\phpxd\min\dbclass.php on line 25rnrnWarning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in E:\www\xnwenn\wb\phpxd\min\dbclass.php online 31rn
在写文件的时候,出现的奇怪问题!
Put intFn1, lngFn1 * Len(typSort_q) + 1, typSort_qrn我的文件大概有5000条,运行的时候,每次都会随机的出现一些错误,有的时候是写到300条,有的时候会写到500条的时候出错,错误代码是52,这个代码是说我的文件名出错了,可是我的程序文件名一直是原来的那个,而且文件名不可能有问题啊!还有什么样的情况能引起这样的52号错误,请知道的人提点一下!rn分不够俺可以再加rn
求两个最小值时候出现的奇怪问题
向select传递两个整形变量的地址给index1,index2,将求得的值用index1,index2返回。rnvoid select(HTree HT, int len, int* index1, int* index2)rn int i;rn //rn int min = 100;rn //for the first min valuern for(i = 0; i < len; ++i)rn if(HT[i].parent == 0)rn if(HT[i].weight < min)rn min = HT[i].weight;rn *index1 = i;rn rn //for the secondary min valuern for(i = 0;i < len; ++i)rn if(i != *index1)rn if(HT[i].parent == 0)rn if(HT[i].weight < min)rn min = HT[i].weight;rn *index2 = i;rn rn rn printf("%d,%d",*index1,*index2);//*index1显示正确的值,*index2显示一个明显错误的值。rn//rn是不是不能向一个函数的参数中传递多个指针或者地址呢?迷糊rn
[]在执行Table1->Edit()的时候出现的奇怪问题!!!
I use components Database,DataSource,Table to compose a system.rnProcedure belowrn Database1-> Connected = false;rn Database1->LoginPrompt=false;rn Database1->AliasName="Loco";rn Database1 -> DatabaseName="test1" rn Database1->Params->Values["USER NAME"]="sa";rn Database1->Params->Values["PASSWORD"]="111";rn Database1 -> DatabaseName = "test1";rn Database1->AliasName = "Loco";rn DataSource1 -> DataSet = Table1;rn Table1->DatabaseName = "test1";rnTable1->TableName="BUGINFO"rntryrnrn Database1->Connected=truernrncatch(...)rnrn return ;rnrnTable1->Active=true;rnTable1->Edit();rnrnwhen execute the last line"Table1->Edit();",an error is showed likern"Multirecords was found,but only one was expected!"rnrnHelp ! Why?rn
用junit测试的时候出现奇怪的问题
用myeclipse运行junit errors:0,Failures:0.但却提示javaw.exe 遇到问题需要关闭。我们对此引起的不便表示抱歉。的一个对话框 其他什么都没有 rn测试代码:rn[code=Java]rnpublic class MyTest extends DaoTestCasern rn public void testT()rn this.assertEquals(3, 1+2);rn rn rnrnrnpublic abstract class DaoTestCase extends AbstractTransactionalDataSourceSpringContextTests rn /**rn * @see AbstractTransactionalDataSourceSpringContextTests#getConfigLocations()rn */rn @Overridern protected String[] getConfigLocations() rn setAutowireMode(AUTOWIRE_BY_NAME);rn return new String[]"classpath*:com/itflagship/web/beans/*.xml";rn rnrn[/code]rnclasspath*设置应该没有问题!哪位高人能帮我解决下~?rn
在交换FeelAndLook的时候,出现奇怪的问题??
比如某个JLabel上面的汉字,在"Metal"可以显示,而在"Windows"下面就是乱吗!!rn这是什么问题,什么方法可以解决??
封装dll的时候出现的奇怪问题
我在封装dll的时候将函数定义为 ADODB.recordset类型rn然后在在函数中将一个记录集返回到函数 如下:rnrnPublic Function rs1(m_class_no) As ADODB.Recordsetrnrn Dim rs As New ADODB.Recordsetrn rs.Open "select student.*, dm_sex.name AS sexname, dm_mz.name AS mzname,x_class.class_name AS classname from student, dm_sex, dm_mz, x_class where student.classid = '" & m_class_no & "' and student.sex = dm_sex.code and student.mz_c = dm_mz.code AND student.classid=x_class.class_no order by student.userid", oConn, 3rnrn Set rs1 = rsrnrnEnd Functionrnrn然后编译成dll~~但是该dll在asp页面调用的时候却报出以下错误:rn Microsoft VBScript 运行时错误 错误 '800a01b6' rnrn 对象不支持此属性或方法: 'EOF' rnrnrn我在asp页面的调用是这样的rnm_class_no="0001"rnset rs = Server.Create("student.biaoge")rnrnset rs1 = rs.rs1(m_class_no)rnrnrn请问各位高手是这样是怎么回事呢!?rnrn
用jsp分页显示的时候出现的奇怪问题!!!
以下是源代码:rnlist.jsprnrn<%@ page language="java" %>rn<%@ page contentType="text/html; charset=gb2312"%>rn<%@ page import="java.sql.*" %>rn<%@ page import="java.lang.*" %>rn<%! String strSQL;%>rn<%! String getSql(String condition,String txt)rn String sql;rn int p;rn p=Integer.parseInt(condition);rnswitch(p)rnrn case 1: sql="select * from Competer where Competer_Name like '%"+txt+"%'";break;rn case 2: sql="select * from Competer where Provence = '"+txt+"'";break;rn case 3: sql="select * from Competer where City like '%"+txt+"%'";break;rn case 4: sql="select * from Competer where Address like '%"+txt+"%'";break;rn case 5: sql="select * from Competer where Situation like '%"+txt+"%'";break;rn default: sql="select * from Competer";rnrnreturn sql;rn%>rn<%rnConnection sqlCon;rnjava.sql.Statement sqlStmt;rnResultSet sqlRst;rnString strCon;rnrnint intPageSize;rnint intRowCount;rnint intPageCount;rnint intPage;rnString strPage; rnint i;rnintPageSize = 20;rnstrPage = request.getParameter("page"); rnif(strPage==null)rnintPage = 1; rn rnelsernintPage = java.lang.Integer.parseInt(strPage); rnif(intPage<1) intPage = 1; rn rntryrnClass.forName("sun.jdbc.odbc.JdbcOdbcDriver"); rnrncatch(java.lang.ClassNotFoundException e)rnSystem.err.println("DBconn():"+e.getMessage());rnrn//连接数据库 rnsqlCon=DriverManager.getConnection("jdbc:odbc:Test","gaoysh","gysgys"); rn//创建一个可以滚动的只读的SQL语句对象 rnsqlStmt=sqlCon.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY); rn//准备SQL语句 rnrnstrSQL=getSql(new String (request.getParameter("jstj").getBytes("ISO-8859-1"),"GBK"),new String(request.getParameter("condition").getBytes("ISO-8859-1"),"GBK")); rnrnrnrnrnrn若此处用:strSQL="select * from Competer where Competer_Name like '%%' ";rn没有错误!(注:"select * from Competer where Competer_Name like '%%' "是getSql(new String (request.getParameter("jstj").getBytes("ISO-8859-1"),"GBK"),new String(request.getParameter("condition").getBytes("ISO-8859-1"),"GBK"))的返回结果)而直接用strSQL=getSql(new String (request.getParameter("jstj").getBytes("ISO-8859-1"),"GBK"),new String(request.getParameter("condition").getBytes("ISO-8859-1"),"GBK")); rn给strSQL付值的时候查询结构第一页可以显示,但以后页都出现运行时错误!!!rnrnrnrnrnrnrnrn//执行SQL语句并获取结果集 rnsqlRst=sqlStmt.executeQuery(strSQL); rn//获取记录总数 rnsqlRst.last(); rnintRowCount=sqlRst.getRow(); rn//记算总页数 rnintPageCount=(intRowCount+intPageSize-1)/intPageSize; rn//调整待显示的页码 rnif(intPage>intPageCount)rnintPage=intPageCount;rn%> rnrn rn rn rn rn 查询结构显示 rn rnrnrn rnrn rn rn rn 检索需要修改的公司rn 选择检索条件:rn 公司名rn 所在省rn 所在市rn 按地址rn 按其他rn rn rn 关键字: rn rn rn rn rn信息检索结构列表rnrn rn rn 公司名称 rn 所在省rn 所在市 rn 详细地址rn 联系电话rn 情况介绍 rn rnrn<% rnif(intPageCount>0) rnsqlRst.absolute((intPage-1)*intPageSize+1); rni = 0;rnwhile(i rn rn <%=sqlRst.getString(2)%> rn <%=sqlRst.getString(3)%>rn <%=sqlRst.getString(4)%> rn <%=sqlRst.getString(5)%> rn <%=sqlRst.getString(6)%> rn <%=sqlRst.getString(7)%> rn rn<%rnsqlRst.next();rni++;rn rn rn%> rn rnrn rn第<%=intPage%>页 共<%=intPageCount%>页 <%if(intPage下一页<%%> <%if(intPage>1)%>上一页<%%> rnrn rn rn<% rnsqlRst.close(); rnsqlStmt.close(); rnsqlCon.close(); rn%>
在调试程序的时候出现很奇怪的头文件问题
最近小弟是在linux环境下通过video4linux和qt来完成视频抓图和显示功能,程序调试时出现了很奇怪的头文件错误rn如下:rnrnIn file included from capture.h:5,rn from main.cc:6:rn/usr/include/sys/types.h:62: error: conflicting declaration 'typedef __dev_t dev_t' rn/usr/include/linux/types.h:21: error: 'dev_t' has a previous declaration as `typedef __kernel_dev_t dev_t' 我并没有include /linux/types.h这个头文件,怎么会报错呢????想不通rn/usr/include/sys/types.h:62: error: declaration of `typedef __dev_t dev_t'rn/usr/include/linux/types.h:21: error: conflicts with previous declaration `typedef __kernel_dev_t dev_t'rn/usr/include/sys/types.h:62: error: declaration of `typedef __dev_t dev_t'rn/usr/include/linux/types.h:21: error: conflicts with previous declaration `typedef __kernel_dev_t dev_t'rn/usr/include/sys/types.h:67: error: conflicting declaration 'typedef __gid_t gid_t'rn/usr/include/linux/types.h:48: error: 'gid_t' has a previous declaration as `typedef __kernel_gid_t gid_t'rn/usr/include/sys/types.h:67: error: declaration of `typedef __gid_t gid_t'rn/usr/include/linux/types.h:48: error: conflicts with previous declaration `typedef __kernel_gid_t gid_t'rn/usr/include/sys/types.h:67: error: declaration of `typedef __gid_t gid_t'rn/usr/include/linux/types.h:48: error: conflicts with previous declaration `typedef __kernel_gid_t gid_t'rn/usr/include/sys/types.h:72: error: conflicting declaration 'typedef __mode_t mode_t'rn/usr/include/linux/types.h:23: error: 'mode_t' has a previous declaration as `typedef __kernel_mode_t mode_t'rn/usr/include/sys/types.h:72: error: declaration of `typedef __mode_t mode_t'rn/usr/include/linux/types.h:23: error: conflicts with previous declaration `typedef __kernel_mode_t mode_t'rn/usr/include/sys/types.h:72: error: declaration of `typedef __mode_t mode_t'rn/usr/include/linux/types.h:23: error: conflicts with previous declaration `typedef __kernel_mode_t mode_t'rn/usr/include/sys/types.h:77: error: conflicting declaration 'typedef __nlink_t nlink_t'rn/usr/include/linux/types.h:24: error: 'nlink_t' has a previous declaration as `typedef __kernel_nlink_t nlink_t'rn/usr/include/sys/types.h:77: error: declaration of `typedef __nlink_t nlink_t'rn/usr/include/linux/types.h:24: error: conflicts with previous declaration `typedef __kernel_nlink_t nlink_t'rn/usr/include/sys/types.h:77: error: declaration of `typedef __nlink_t nlink_t'rn/usr/include/linux/types.h:24: error: conflicts with previous declaration `typedef __kernel_nlink_t nlink_t'rn/usr/include/sys/types.h:82: error: conflicting declaration 'typedef __uid_t uid_t'rn/usr/include/linux/types.h:47: error: 'uid_t' has a previous declaration as `typedef __kernel_uid_t uid_t'rn/usr/include/sys/types.h:82: error: declaration of `typedef __uid_t uid_t'rn/usr/include/linux/types.h:47: error: conflicts with previous declaration `typedef __kernel_uid_t uid_t'rn/usr/include/sys/types.h:82: error: declaration of `typedef __uid_t uid_t'rn/usr/include/linux/types.h:47: error: conflicts with previous declaration `typedef __kernel_uid_t uid_t'rnIn file included from /usr/include/sys/types.h:216,rn from capture.h:5,rn from main.cc:6:rn/usr/include/sys/select.h:78: error: conflicting declaration 'typedef struct fd_set fd_set'rn/usr/include/linux/types.h:20: error: 'fd_set' has a previous declaration as `typedef struct __kernel_fd_set fd_set'//这两个头文件我也没有打开rn/usr/include/sys/select.h:78: error: declaration of `typedef struct fd_set fd_set'rn/usr/include/linux/types.h:20: error: conflicts with previous declaration `typedef struct __kernel_fd_set fd_set'rn/usr/include/sys/select.h:78: error: declaration of `typedef struct fd_set fd_set'rn/usr/include/linux/types.h:20: error: conflicts with previous declaration `typedef struct __kernel_fd_set fd_set'rn/usr/include/sys/select.h:78: error: declaration of `typedef struct fd_set fd_set'rn/usr/include/linux/types.h:20: error: conflicts with previous declaration `typedef struct __kernel_fd_set fd_set'rnIn file included from capture.h:15,rn from main.cc:6:rndisplay.h:9:21: capture.h: No such file or directory//在display.h中已经打开capture.h这个头文件了rnIn file included from main.cc:7:rndisplay.h:15: error: redefinition of `class MyMainWindow'rndisplay.h:15: error: previous definition of `class MyMainWindow'rnmain.cc: In function `int main(int, char**)':rnmain.cc:14: error: no matching function for call to `capture::capture(MyMainWindow*&)'rncapture.h:26: note: candidates are: capture::capture(const capture&)rncapture.h:28: note: capture::capture(MyMainWindow)rnmake: *** [main.o] Error 1rnrnrnrnrn实现想不通所以斗胆上来问一下,麻烦各位帮忙看一下
安装oracle9i的时候出现的奇怪问题
我在安装oracle9i的时候,在复制数据库文件的时候,出现了一个很奇怪的对话框,invalid entry size(expect 419438592 but got 419438591 bytes),我是新装的系统,而且磁盘的空间都够用,谁给我解答一下,多谢了.
websphere发布的时候出现这样的奇怪问题.
此错误通常暗示了.servlet.最初由服务器无法定位的类编译。rn检查类路径,以确保.servlet.需要的所有类都存在。rn此问题可通过仅使用应用程序运行时类路径中的类重新编译.servlet.来进行调试 rn在tomcat下是正常的.
用MoveWindow时候出现的奇怪的问题
我把其中的某些控件用MoveWindow重新确定了位置和大小,但只要一拉伸界面(对话框界面)或者最大化界面,某些从新确定位置的控件就又回到原来的位置,而另外一些就还固定在新位置上,这个是怎么回事呀?这些控件的属性完全一样,却有不同的情况发生,真是不明白,有没有高手帮帮我?rn下面是我移动控件的源代码rnrnvoid CSmartCDPlayerDlg::move_to_left(int move_x, int nID, bool isbig)rnrn CString str;rn static CRect RectButton;rn GetWindowRect(&RectButton);rn GetDlgItem(nID)->GetWindowRect(&RectButton);rn ScreenToClient(&RectButton);//把屏幕坐标转化成用户坐标rn static CRect f;rn f.top=RectButton.top;rn f.bottom =RectButton.bottom ;rn f.left =RectButton.left ;rn f.right =RectButton.right ;rn rn if(isbig==FALSE) GetDlgItem(nID)->MoveWindow(f.left-move_x,f.top,f.right -f.left ,f.bottom -f.top );rn else GetDlgItem(nID)->MoveWindow(f.left-move_x, f.top, f.right-f.left+move_x,f.bottom -f.top ); rn rn
递归调用的时候出现的一个很奇怪的问题。
function getSub(_index)rn if(target_folder_list[_index].length > 0)rn for(k = 0; k < target_folder_list[_index].length; k++)rn dd = target_folder_list[_index][k].split("@@@");rn if(mySub == '')rn mySub = '' + dd[2] + '';rn elsern mySub += '' + dd[2] + '';rn rn getSub(dd[0]);rn rn rn rn return mySub; rnrnrn  这段是递归搜索子目录的代码。用php是可以得到正确结果的,用JS递归调用的时候它不返回上一个调用点?难道要自己做个虚拟堆栽?
导入数据的时候出现奇怪错误
从另一个数据库通过DTS导入表或者存储过程的时候出现奇怪错误,rn'windows NT user or group 'xxx\xxx' not found. check the name again.rn但是在两个数据库里面都存在着这个帐号阿。rn而且,导表和这个帐号又有啥关系呢?奇怪阿
ffmpeg 静态库链接到动态库的问题
首先编译好 ffmpeg 静态库,在libsav链接时提示/usr/bin/ld: /opt/data/data/work/source/library/libSAV/../../public/lib/ffmpeg-94a52417/x64/lib/libavcodec.a(h264.o): relocation R_X86_64_PC32 against symbol `ff_h264_cabac
询问有关ffmpeg编译成静态库的问题‏
参考了cnblog:http://www.cnblogs.com/haibindev/archive/2011/12/01/2270126.html,目前我在Ubuntu 10.04版本下,用的交叉工具链mingw-w32-bin_i686-linux_20111220.tar.bz2也编译出了动态库文件,使用的命令如下:rn rn../ffmpeg-0.8.7/configure --enable-cross-compile --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config --target-os=mingw32 --arch=x86 --prefix=/home/liuxianguo/opensdk/ffmpeg [b]--disable-static --enable-shared [/b]--enable-version3 --enable-gpl --enable-nonfree --enable-w32threads --enable-runtime-cpudetect --enable-memalign-hack [color=#FF0000]--enable-ffplay [/color]--extra-cflags="-I/home/liuxianguo/opensdk/include -I/home/liuxianguo/studio/mingw-w64-v2.0.1/mingw-w64-headers/include" --extra-ldflags=-L/home/liuxianguo/opensdk/lib --enable-libfaac --enable-libvo-aacenc --enable-libmp3lame --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlibrn rn rn现在的问题是:rn1.明明--enable-ffplay 了,且已经编译安装了SDL,为什么最终的编译结果里没有ffplay.exe的可执行文件呢(目前最终结果只有ffprobe.exe和ffmpeg.exe)?rn2.编译成动态链接库时,很多*.dll文件出现在bin目录下,在lib目录下还有对应的*.dll.a文件,请问*.dll.a文件是否就是相当于windows平台下,与动态链接库文件对应的lib文件?rn3.请问一下编译出的dll怎么在VS2005中使用呢?你能否给我写个小例子,让我看到效果的,谢谢。rn4.我使用以下的配置选项试图编译出windows下可用的静态库文件*.lib,但是结果在lib目录下的静态库文件的后缀是*.a,我明明用的是交叉工具链i686-w64-mingw32啊,求解原因?rn5.看网上有人说*.dll可以通过VS2005的lib.exe工具转换成*.lib,rn rn../ffmpeg-0.8.7/configure --enable-cross-compile --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config --target-os=mingw32 --arch=x86 --prefix=/home/liuxianguo/opensdk/ffmpeg --enable-static --disable-shared --enable-version3 --enable-gpl --enable-nonfree --enable-w32threads --enable-runtime-cpudetect --enable-memalign-hack --enable-ffplay --extra-cflags="-I/home/liuxianguo/opensdk/include -I/home/liuxianguo/studio/mingw-w64-v2.0.1/mingw-w64-headers/include" --extra-ldflags=-L/home/liuxianguo/opensdk/lib --enable-libfaac --enable-libvo-aacenc --enable-libmp3lame --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlibrn rn rn非常感谢你的解答。rn
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池