tp5部署到IIS上报Fatal error

Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'Undefined index: REQUEST_URI' in D:\www\web\ceshi10.com_TtLIkrREPMyRzNlX0LnW\wwwroot\tp\thinkphp\library\think\log\driver\File.php:100 Stack trace: #0 D:\www\web\ceshi10.com_TtLIkrREPMyRzNlX0LnW\wwwroot\tp\thinkphp\library\think\log\driver\File.php(100): think\Error::appError(8, 'Undefined index...', 'D:\www\web\cesh...', 100, Array) #1 D:\www\web\ceshi10.com_TtLIkrREPMyRzNlX0LnW\wwwroot\tp\thinkphp\library\think\log\driver\File.php(80): think\log\driver\File->write('[ info ] [ LANG...', 'D:\www\web\cesh...') #2 D:\www\web\ceshi10.com_TtLIkrREPMyRzNlX0LnW\wwwroot\tp\thinkphp\library\think\Log.php(179): think\log\driver\File->save(Array) #3 D:\www\web\ceshi10.com_TtLIkrREPMyRzNlX0LnW\wwwroot\tp\thinkphp\library\think\Error.php(93): think\Log::save() #4 [internal function]: think\Error::appShutdown() #5 {main} thrown in D:\www\web\ceshi10.com_TtLIkrREPMyRzNlX0LnW\wwwroot\tp\thinkphp\library\think\log\driver\File.php on line 100

php
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
fatal error C1189: #error
随手简了一个空的 win32项目 项目名称是ttt 在网上粘贴的代码想看下效果。。结果报错。。求解rnrnrn错误 1 fatal error C1189: #error : This version of cpl_config.h header is dedicated for Windows CE platform! f:\wzx\gdal\include\cpl_config.h 7 tttrnrnrnrnrnrnrnrnrnrn#includern#includernusing namespace std;rnrnvoid main()rnrn GDALDataset *poDataset; //数据集对象指针rn GDALAllRegister();//注册驱动rnrn poDataset = (GDALDataset *) GDALOpen( "c:\\1.jpg", GA_ReadOnly );rnrn if( poDataset != NULL /*检查是否正常打开文件*/)rn rn //do somethingrn rnrn cout<<"RasterXSize:"<GetRasterXSize()<GetRasterYSize()<GetRasterCount()<GetRasterBand( 1 );rn cout<<"Data Type:"<GetRasterDataType()<GetRasterDataType())<GetXSize(); cout<<"XSize:"<RasterIO( GF_Read, 0, 0, nXSize, 1, pafScanline, nXSize, 1, GDT_UInt16, 0, 0 );rn delete poDataset; //释放资源rnrn CPLFree(pafScanline); //释放缓冲区空间rnrn
fatal error?
[code=C/C++]rn#include rn#includernusing namespace std;rnrnconst char map[] = 2, 2, 2, 3, 3, 3, 4, 4, 4,rn 5, 5, 5, 6, 6, 6, 7, 0, 7,rn 7, 8, 8, 8, 9, 9, 9;rnrntypedef char (*Tel)[16];rnrnint Deal(Tel telephone, Tel result, int count[], int nCases);rnvoid Output(Tel result, int count[], int nCount);rnrnint main()rnrn int nCases;rn int index = 0;rn cin >> nCases;rn Tel telephone = new char[nCases][16];rn Tel result = new char[nCases][16];rn int *count = new int[nCases];rnrn char temp[16];rn while (index < nCases)rn rn cin >> temp;rn strcmp(telephone[index++], temp);rn rnrn int nCount = Deal(telephone, result, count, nCases);rn Output(result, count, nCount);rnrn delete []count;rn delete []telephone;rn delete []result;rn return 0;rnrnrnint Deal(Tel telephone, Tel result, int count[], int nCases)rnrn char temp[16];rn int nCount = 0;rn temp[8] = '\0';rn for (int i = 0; i < nCases; i++)rn count[i] = 0;rnrn for (int i = 0; i < nCases; i++)rn rn int len = strlen(telephone[i]);rn int k = 0;rn int j;rn for (j = 0; j < len; j++)rn rn if (telephone[i][j] != '-')rn temp[k++] = map[telephone[i][j]-'A'];rn if (k == 3)rn temp[k++] = '-';rn rnrn for (j = 0; j < nCount; j++)rn if (strcmp(temp, result[j]) == 0)rn rn count[j]++;rn break;rn rnrn if (j == nCount) rn strcpy(result[nCount++], temp);rn count[nCount-1]++;rn rn rnrn return nCount;rnrnrnvoid output(Tel result, int count[], int nCount)rnrn for (int i = 0; i < nCount; i++)rn cout << result[i] << " " << count[i] << endl;rnrn[/code]rnrn1>1001.obj : error LNK2019: 无法解析的外部符号 "void __cdecl Output(char (*)[16],int * const,int)" (?Output@@YAXPAY0BA@DQAHH@Z),该符号在函数 _main 中被引用rnrn用的是vs2010~~~
fatal error
我在WIN2000下用一块视频卡捕捉视频,然后用Medio Encoder编码。以前用一直好好的,最近不知道怎么了,每次一开始编码,机器就down了。蓝屏显示:Stop 0x0000001E ( 0x80000003, 0x8045647c, 0x00000000, 0xB96D344A), KMODE_EXCEPTION_NOT_HANDLEDrnrnAddress 8045647C base at 80400000, dataStamp 3ee6c002 - ntoskrnl.exernrnAddress B96D344A base at B96CE000, dataStamp 39f16fe0 - stream.sysrnrnBeginning dump of physical memory.rnrnqq视频一用,机器会自动重起,真是晕阿。rnrn请各位赐教。rn
fatal error!
e:\testgrid\testgrid\testgriddlg.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug/TestGrid.pch': No such file or directoryrnrn怎么解决?rn
error LNK2019 && fatal error LNK1120
我是cuda初学者,照着GPU高性能运算之CUDA这本书编程,第二章的小程序编译运行出现了如下两个错误:rn错误1 error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用 LIBCMT.librn错误2 fatal error LNK1120: 1 个无法解析的外部命令 G:\CUDA\example_2\Debug\example_2.exern源代码如下:rn//example_2.curn#include rn#include rn#include rn#include rn#include rn#include "example_2_kernel.cu"rn__host__ void rnrunTest(int argc, char** argv)rnrn CUT_DEVICE_INIT(argc,argv); //启动CUDArn unsigned int mem_size = sizeof(float)* 4*4;rn float* h_idata;rn CUDA_SAFE_CALL(cudaMallocHost((void**)&h_idata,mem_size));rn for(unsigned int i = 0;i<4;i++)rn for(unsigned int j = 0;j<4;j++)rn h_idata[i*4+j]=1.0f;rnrn float* d_idata;rn CUDA_SAFE_CALL(cudaMalloc((void**)&d_idata,mem_size));rnrn CUDA_SAFE_CALL(cudaMemcpy(d_idata,h_idata,mem_size,cudaMemcpyHostToDevice));rnrn float* d_odata;rn CUDA_SAFE_CALL(cudaMalloc((void**)&d_odata,mem_size));rnrn dim3 grid(2,2,1);rn dim3 threads(2,2,1);rnrn testKernel<<>>(d_idata,d_odata,4,4);rnrn CUT_CHECK_ERROR("Kernel execution failed");rnrn float* h_odata;rn CUDA_SAFE_CALL(cudaMallocHost((void**)&h_odata,mem_size));rnrn CUDA_SAFE_CALL(cudaMemcpy(h_odata,d_odata,mem_size,cudaMemcpyDeviceToHost));rnrn for (unsigned int i=0;i<4;i++)rn rn for (unsigned int j=0;j<4;j++)rn rn printf("%5.0f",h_odata[i*4+j]);rn rn printf("\n");rn rn CUDA_SAFE_CALL(cudaFreeHost(h_idata));rn CUDA_SAFE_CALL(cudaFreeHost(h_odata));rn CUDA_SAFE_CALL(cudaFree(d_idata));rn CUDA_SAFE_CALL(cudaFree(d_odata));rnrnrn//example_2_kernel.curn#ifndef _EXAMPLE_2_KERNEL_H_rn#define _EXAMPLE_2_KERNEL_H_rn#define SDATA(index) CUT_BANK_CHECKER(sdata,index)rn__global__ void testKernel(float* g_idata, float* g_odata, int width, int height)rnrn __shared__ float sdata[4];rnrn unsigned int bid_in_grid = __mul24(blockIdx.y,gridDim.x)+blockIdx.x;rn unsigned int tid_in_block = __mul24(threadIdx.y,blockDim.x)+threadIdx.x;rn unsigned int tid_in_grid_x = __mul24(blockDim.x,blockIdx.x) + threadIdx.x;rn unsigned int tid_in_grid_y = __mul24(blockDim.y,blockIdx.y) + threadIdx.y;rn unsigned int tid_in_grid = __mul24(tid_in_grid_y,width)+ tid_in_grid_x;rnrn SDATA(tid_in_block)=g_idata[tid_in_grid];rn __syncthreads();rn rn g_odata[tid_in_grid]=SDATA(tid_in_block);rnrn我实在不知道哪里出错啊,照着书上把代码敲上去的,为什么还是有错呢?rn我的环境是cuda3.1rn谢谢各位大牛了,帮忙解答解答
error C2146 fatal error C1004
itu_g.723.1/lbccodec.h(19) : error C2146: syntax error : missing ';' before identifier 'UseHp'rnitu_g.723.1/lbccodec.h(19) : fatal error C1004: unexpected end of file foundrn编译程序时出现上面两个错误.不知怎么解决.请大家帮帮忙
error LNK2001 & fatal error LNK1120
题目如下:rnrn[quote]1、定义基类 Point,使其能够初始化坐标(x,y),移动坐标,返回坐标rnrn2、定义派生类 Rectangle,有成员变量 width、high;并且有成员函数,使其能够返回矩形相关属性:宽、高、面积rnrn基类:rnrnclass Pointrn rn int x,y;rnpublic:rn Point(int x,int y);rn void Move(int x,int y);rn int Getx();rn int Gety();rn;rn主函数:rnrncin>>x>>y;rn cin>>length>>width;rn Rectangle R(x,y,length,width);rn cin>>xmove>>ymove;rn R.Move(xmove,ymove);rn cout <rnusing namespace std;rnclass Pointrn rn int x,y;rnpublic:rn Point(int x,int y);rn void Move(int x,int y);rn int Getx() const return x;rn int Gety() const return y;rn;rnvoid Point::Move(int x, int y)rnrn cout<>x>>y;rn cin>>length>>width;rn Rectangle R(x,y,length,width);rn cin>>xmove>>ymove;rn R.Move(xmove,ymove);rn cout <
error C2143 fatal error C1004
在编写C程序时遇到了这两个错误——error C2143: syntax error : missing ';' before ':rn fatal error C1004: unexpected end of file foundrn检查了没有括号错误。请各位大神指点!rn#include rn#include rnrnvoid a() rnrn char s; rn char c[100]=0; rn int i=1,j=0,character=0; rn FILE *fp;rn printf("请输入正确的磁盘文件名:\n"); rn scanf("%s",c); rn for (j=0;(fp=fopen(c,"r"))==NULL;j++) rn rn printf("Cannot open flie\n"); rn printf("请输入磁盘文件名:\n"); rn scanf("%s",c); rn rn s=fgetc(fp); rn while(!feof(fp))//s!=EOF) rn rn putchar(s); rn if (s>='a'&&s<='z'||s>='A'&&s<='Z'||s>='0'&&s<='9') rn rn character++;rn rn s=fgetc(fp); rn i++;rn rn printf("\n"); rn printf("******字符数为:%d\n",character); rn fclose(fp); rn printf("\n"); rnrnrnrnvoid b() rn rn char s; rn char c[100]=0; rn int i=1,j=0;rn int number=0; rn FILE *fp; rn printf("请输入正确的磁盘文件名:\n"); rn scanf("%s",c); //c为文件名称 rn for (j=0;(fp=fopen(c,"r"))==NULL;j++) rn rn printf("Cannot open flie\n"); rn printf("请输入磁盘文件名:\n"); rn scanf("%s",c); rn rn s=fgetc(fp); rn while(!feof(fp))//s!=EOF) rn rn putchar(s);rn if(s>='0'&&s<='9')rn rn number++;rn rn s=fgetc(fp); rn i++;rn rn printf("\n"); rn printf("******字符数为:%d\n",number); rn fclose(fp); rn printf("\n"); rnrnrnrnvoid main()rn rn int i=0,j=0;rn printf("请确定是否进行文本统计?(继续请键入y)");rn scanf("%s",&i);rn while (i=='y'||i=='Y')rn rn printf("********************\n");rn printf("***1.统计字符个数***\n");rn printf("***2.统计数字个数***\n");rn scanf("%s",&j);rn switch(j)rn rn case 1: a();break;rn case 2: b();break:rn rn printf("请确定是否继续进行文本统计?(继续请键入y)");rn scanf("%s",&i);rn rnrnrn如果将函数b 隐掉就没有错误,感觉很奇怪。rn
fatal error C1083
一个新手问题,有一个现成的VS2008下的C++程序,我现在需要对其进行扩展,添加一些新的信息。我创建了一个HFDRead.h头文件,定义了一些结构,然后在程序中要调用这个头文件。结果碰上了如下错误:rn1>.\DXF\Line.cpp(4) : fatal error C1083: 无法打开包括文件:“HFDhead.h”: No such file or directoryrn跪求解释。
fatal error C1010
我在工程中加入别的工程的类(这个类在那个工程中没问题),报出fatal error C1010: unexpected end of file while looking for precompiled header directive,我在cpp中include “stdafx.h”, 还是不行!请各位高手多多指教,万分焦急!
fatal error LNK1104的解决方法
[code=C/C++]rnLinking...rnLINK : fatal error LNK1104: cannot open file "nafxcwd.lib"rnError executing link.exe.rn[/code]rnrn编译没有问题连接有问题,提示上面的错误rnrnGoogle了一下,都说这是因为rnrn[code=Assembly]rn如果将项目设置被设为 一个静态库中使用 MFC 就会发生这种情况。 Microsoft Visual C++ 6.0 标准版不支持静态链接 MFC 库。 rn[/code]rnrn但是我设置成 一个静态库中使用 MFC 还是有错误rnrn请问怎么解决?
fatal error C1083:的问题.
fatal error C1083: Cannot open include file: 'windows.h': No such file or directoryrnVc++2008,在编译程序的时候出现了上处错误. rn环境变量没有设置? 难道手动弄?rn这是什么原因, 怎样解决.rn走过路过的仙们, 给解解或吧.rn
fatal error!!!!help
我的linux开机进不了图形界面,rnxinit显示 XIO:fatal IO error 104(connection reset by peer) On X sever ":0.0"after 0 requests (0 know process) with events remaining.rnrnanyone can help me`!
fatal disk error
我的程序(pb编写)运行时总是提示fatal disk error ,retry 。我将此程序重新从别的电脑上复制过来运行没有问题,但是当再次启动电脑时就又是那样的,怎么回事呢?谢谢各位高手!
FATAL ERROR - InitDetectCPU Failed
Debug Serial InitrnrnSysInit: GDTBase=8103d0e8 IDTBase=8105e860 KData=81065800rnWindows CE Kernel for i486 Built on Jun 24 2004 at 18:23:42rng_pPageDir = 81066000rn RTC - Status Reg B - 0x02rnX86Init done, OEMAddressTable = 80224ff8.rnOEMIoControl: Unsupported Code 0x101008c - device 0x0101 func 35rnOEMIoControl: Unsupported Code 0x10100d0 - device 0x0101 func 52rnOEMIoControl: Unsupported Code 0x10100f8 - device 0x0101 func 62rnAES_AES_Init: context Drivers\Active\09rn AES_AES_Init: returning 0x00000001rnDeviceFolder::LoadDevice!Enumerate Found deprecated load instructions at (Drivers\BuiltIn\AFD). Driver cannot be unloaded.rn DeviceFolder::LoadDevice!Enumerate Found deprecated load instructions at (Drivers\BuiltIn\PPP). Driver cannot be unloaded.rn PCIbus!PCIEnum: WARNING: Resource request for device 0:31:1 failedrnLX Graphics: FATAL ERROR - InitDetectCPU Failed => Cpu: 0 Chipset: 0rn Exception 00d Thread=83e63cf0 Proc=43e5d892 'gwes.exe'rnAKY=00000009 PC=03083c0b(ddi_agx.dll+0x00003c0b) ESP=080af440 EA=00000000rnException 00e Thread=83e63cf0 Proc=43e5d892 'gwes.exe'rnAKY=00000009 PC=0003cda0(gwes.exe+0x0002cda0) ESP=080afb64 EA=00000008rnrnrn如何解决这个问题,问题出在哪里呢??
fatal error LNK1168
这个问题遇到了几次,编译程序的时候,第一编OK,第二编就出现这个问题.错误是由于X.exe这个文件没有写的权限,可能正在被使用,但是,进程列表里没有这个进程,明显的是,这个程序没有运行,但是就是没有写权限???真是郁闷!!我删除了进程列表里所有可以删除的进程,重新编译,还有没门!!只有一种方法:重启!就连注销也不行.rn并且不是dll和数据库的问题,因为他们还可以被删除,而X.exe不能被删除!!!!!rn网上没有资料,不知道这个问题最终会被哪位高人破解!!无限崇拜!!!鞠躬!!!
link fatal error
编译过程中出现,[link fatal error]fatal:unable to open file "SUIPACK_BCB50.lib"rn 这个程序是换了不同的环境编译的,我想估计是SUIPACK版本不对,我装了CBUILDER 6,可能原程序是在CBUILDER 5上编译的,有什么办法能解决吗,谢谢了!!!
powerbuilder fatal error
当我关闭程序的时候出现下面的提示:rnplease contact sybase supporting engineer
C++ fatal error C1083
c++新手 请各位大虾看看下面的程序出了什么问题rn#include "stdafx.h"rn#include rnusing namespace std;rnclass Treernprivate:int ages;rnpublic:Tree(int age)rn ages=age;rn void grow(int years);rn ages=ages+years;rn void age(int ages);rn;rnTree::age(int ages) rncout<<"now,the age of the tree is:"<>a;rncout<<"please enter the years the tree grows"<>b;rnT.grow(b);rnT.age(ages);rnrnrncompile之后有一个错误 不懂啊rnc:\program files\microsoft visual studio\myprojects\bw4_14\bw4_14.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug/bw4_14.pch': No such file or directoryrnError executing cl.exe.rn
fatal error C1010?
我新建一个单文档程序,然后手动添加了一个.cpp文件,文件中什么代码都没有(只是为了测试),但编译时出现了fatal error C1010: unexpected end of file while looking for precompiled header directive的错误,请高手指点迷津。
Powerbuilder Fatal Error?
pb9.0编写的程序里出现Powerbuilder Fatal Error警告框,提示Please Contact Sybase Supporting engineer,求大侠指点是什么原因?怎么解决?谢谢!
Fatal Error 的问题
我的程序在编译的时候出现错误rn[Fatal Error] Required package 'EverButton' not foundrnrn不知道是什么地方的问题。程序本身应该没有问题,我在家里能编译通过,那道公司来就出现这个问题。rn我用了suipack 和 1stClass 的VCL...rnrn谢谢各位帮帮忙!
fatal error c1083
fatal error C1083: Cannot open include file: 'stdio,h': No such file or directoryrn怎么回事啊rnrn请大家指教一下rn谢谢……
ntdll.dll : fatal error LNK1107
ntdll.dll : fatal error LNK1107: 文件无效或损坏: 无法在 0x278 处读取rn请问这是什么错误啊?rn在网上查了下,有的说是ntdll.dll文件损坏,我另外下载了一个ntdll.dll文件并加到程序所在文件夹里面,但是还是这个错误,请问是什么原因啊?大侠救命啊!
fatal error LNK1123
CVTRES : fatal error CVT1106: cannot write to filern.\Release\asus rapi.res : fatal error LNK1123: failure during conversion to COFF: file invalid or corruptrnError executing link.exe.rn有誰知道,這種error應該怎麼解決
xerces-c_3_1D.dll : fatal error LNK1107
我想用xerces做一个解析xml的小程序,用vs2008,工程属性中设置好xerces-c_3_1D.dll,rn编译出现错误rn[code=C/C++]1>E:\xerces-c-3.1.1-x86-windows-vc-9.0\bin\xerces-c_3_1D.dll : fatal error LNK1107: ファイルが無効であるか、または壊れています: 0x2F0 を読み取れません。[/code]rnrn哪位朋友知道原因,恳请赐教!
fatal error C1083:
使用CString类,rnfatal error C1083: 无法打开包含文件:“Cstring.h”: No such file or directory
请教 fatal error LNK1000
VC.net 2003 中,用向导建立MFC应用程序项目,用DEBUG方式编译,会出现如下错误rnrnrn------ 已启动生成: 项目: ddf, 配置: Debug Win32 ------rnrn正在编译...rnstdafx.cpprn正在编译...rnddfView.cpprnddfDoc.cpprnMainFrm.cpprnddf.cpprn正在生成代码...rn正在编译资源...rn正在链接...rnatlsd.lib(Allocate.obj) : fatal error LNK1000: Internal error during Pass2rnrn Version 7.10.3077rnrn ExceptionCode = C0000005rn ExceptionFlags = 00000000rn ExceptionAddress = 1031EFA9 (10300000) "D:\Program Files\Microsoft Visual Studio .NET 2003\Common7\ide\mspdb71.dll"rn NumberParameters = 00000002rn ExceptionInformation[ 0] = 00000000rn ExceptionInformation[ 1] = 03073270rnCONTEXT:rn Eax = 01310977 Esp = 0012E7B4rn Ebx = 00006478 Ebp = 0012E7C8rn Ecx = 000151E0 Esi = 02BF4960rn Edx = 00341FE8 Edi = 03073270rn Eip = 1031EFA9 EFlags = 00010246rn SegCs = 0000001B SegDs = 00000023rn SegSs = 00000023 SegEs = 00000023rn SegFs = 00000038 SegGs = 00000000rn Dr0 = 0012E7B4 Dr3 = 00006478rn Dr1 = 0012E7C8 Dr6 = 000151E0rn Dr2 = 00000000 Dr7 = 00000000rnrn生成日志保存在“file://e:\My Documents\My Programs\Visual Studio 2003\ddf\ddf\Debug\BuildLog.htm”中rnddf - 1 错误,0 警告rnrnrn---------------------- 完成 ---------------------rnrn 生成: 0 已成功, 1 已失败, 0 已跳过rnrnrnrn但是用RELEASE方式可以通过编译,请问谁知道这是怎么回事,应当怎么解决?
fatal error C1853.txt
混合了 .cpp 和 .c文件时,编译器会对它们采取不同的编译方式
fatal error RC1021
我的程序一编译就报告这个错误,是怎么回事情?rnrnwin2k_svr+sp2rnrnD:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE/afxres.h(16) : fatal error RC1021: invalid preprocessor command 'devine'rnError executing rc.exe.rnrntestchar.exe - 1 error(s), 0 warning(s)rn
fatal error C1033 ? 求助!
fatal error C1033: cannot open program database 'e:\for_work\libmecab\debug\vc60.pdbrnrnmsdn:There was an error opening the .PDB file. This may be caused by a disk errorrnrn我把Debug,Release目录删除,Rubuild All:这样的错误有减少不过还是有。rnrn再次build后出错信息变为:rnfatal error C1063:rnError executing cl.exe.rnSCMAKE: error BK1506 : cannot open file '.\Debug\file.sbr': No such file or directoryrnrn(附注:我的程序是由VC.net转成VC6.0程序,有许许多多个wearing)rnrn期盼高人指点!
LINK : fatal error LNK1104
[b]vs2010和Matlab R2013a 混合编程[/b]rn[img=https://img-bbs.csdn.net/upload/201412/13/1418467080_561389.png][/img]rn[b]..\libMyAdd.lib[u][/u] 到底是从哪里出来的[/b]rn[b]在vs2010里面,怎么看?[/b]rn[img=https://img-bbs.csdn.net/upload/201412/13/1418467269_349465.png][/img]rn[b]我在附加依赖项里面加的不是..\libMyAdd.lib ..\是?斜杠前面是文件名or路径名?[/b]rn[code=c]#include rn#include rn#include rn#include "mclmcr.h"rn#include "matrix.h"rn#include "mclcppclass.h"rn#include "libMyAdd.h"rnusing namespace std;rnrnint main()rnrndouble a = 6;rndouble b = 9;rndouble c;rnrnif( !libMyAddInitialize())rnrnstd::cout <<"Could not initialize libMyAdd!" << std::endl;rnreturn -1;rnrnrnmwArray mwA(1, 1, mxDOUBLE_CLASS); rnmwArray mwB(1, 1, mxDOUBLE_CLASS);rnmwArray mwC(1, 1, mxDOUBLE_CLASS);rnrnmwA.SetData(&a, 1);rnmwB.SetData(&b, 1);rnMyAdd(1, mwC, mwA, mwB);rnrnc = mwC.Get(1, 1);rnstd::cout<<"c is \n" < logic.rn */rnrn#ifdef EXPORTING_libMyAddrn#define PUBLIC_libMyAdd_C_API __globalrn#elsern#define PUBLIC_libMyAdd_C_API /* No import statement needed. */rn#endifrnrn#define LIB_libMyAdd_C_API PUBLIC_libMyAdd_C_APIrnrn#elif defined(_HPUX_SOURCE)rnrn#ifdef EXPORTING_libMyAddrn#define PUBLIC_libMyAdd_C_API __declspec(dllexport)rn#elsern#define PUBLIC_libMyAdd_C_API __declspec(dllimport)rn#endifrnrn#define LIB_libMyAdd_C_API PUBLIC_libMyAdd_C_APIrnrnrn#elsernrn#define LIB_libMyAdd_C_APIrnrn#endifrnrn/* This symbol is defined in shared libraries. Define it herern * (to nothing) in case this isn't a shared library. rn */rn#ifndef LIB_libMyAdd_C_API rn#define LIB_libMyAdd_C_API /* No special import/export declaration */rn#endifrnrnextern LIB_libMyAdd_C_API rnbool MW_CALL_CONV libMyAddInitializeWithHandlers(rn mclOutputHandlerFcn error_handler, rn mclOutputHandlerFcn print_handler);rnrnextern LIB_libMyAdd_C_API rnbool MW_CALL_CONV libMyAddInitialize(void);rnrnextern LIB_libMyAdd_C_API rnvoid MW_CALL_CONV libMyAddTerminate(void);rnrnrnrnextern LIB_libMyAdd_C_API rnvoid MW_CALL_CONV libMyAddPrintStackTrace(void);rnrnextern LIB_libMyAdd_C_API rnbool MW_CALL_CONV mlxMyAdd(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[]);rnrnrn#ifdef __cplusplusrnrn#endifrnrn#ifdef __cplusplusrnrn/* On Windows, use __declspec to control the exported API */rn#if defined(_MSC_VER) || defined(__BORLANDC__)rnrn#ifdef EXPORTING_libMyAddrn#define PUBLIC_libMyAdd_CPP_API __declspec(dllexport)rn#elsern#define PUBLIC_libMyAdd_CPP_API __declspec(dllimport)rn#endifrnrn#define LIB_libMyAdd_CPP_API PUBLIC_libMyAdd_CPP_APIrnrn#elsernrn#if !defined(LIB_libMyAdd_CPP_API)rn#if defined(LIB_libMyAdd_C_API)rn#define LIB_libMyAdd_CPP_API LIB_libMyAdd_C_APIrn#elsern#define LIB_libMyAdd_CPP_API /* empty! */ rn#endifrn#endifrnrn#endifrnrnextern LIB_libMyAdd_CPP_API void MW_CALL_CONV MyAdd(int nargout, mwArray& c, const mwArray& a, const mwArray& b);rnrn#endifrn#endifrn[/code]rnrn
fatal error C1853
程序原本是MFC的,即头文件是.H,源文件是.CPPrnrn现在我增加了几个头文件是.H,但源文件是.Crnrn编译的时候,出现了fatal error C1010: unexpected end of file while looking for precompiled headrnrn在网上找了下,说是每个C文件里加个#INCLUDE “stdafx。h”rnrn加了后,在重新编译,就出现了fatal error C1853......rnrnrn这个错误,网上找了下,很多人说的很含糊,不知道他们是不是真的明白rnrnrn
,.[Linker Fatal Error],.
[u][Linker Fatal Error] Fatal: Unable to open file 'MSCOMMLIB_OCX.OBJ',.[/u],.rn
fatal error RC1107
fatal error RC1107 ,在打开资源编辑器时会这样。rn我也搜索了很多相关的主题。 如:rnhttp://hi.baidu.com/aztack/blog/item/209218d5e3f2bcc250da4b6c.htmlrnhttp://www.diybl.com/course/3_program/c++/cppjs/200836/102849.htmlrnhttp://blog.csdn.net/lin33274/archive/2008/03/31/2233247.aspxrnhttp://hi.baidu.com/gengzhaohe/blog/item/203103179bf5f60ec83d6def.htmlrnhttp://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/e4ef7904-0947-4792-aa4a-b28077146d02/rn但是很不走运,我的include files里面没有上面贴所说的问题。我的include files如下:rn$(VCInstallDir)includern$(VCInstallDir)atlmfc\includern$(WindowsSdkDir)\includern$(FrameworkSDKDir)includern$(PATH)rnrn实在不清楚为什么会发生这样的错误的。。。
这是为什么 Fatal Error
我只要一加入以下代码 网页加载就很慢 然后就会出现这个错误提示: Fatal error: Maximum execution time of 30 seconds exceeded in E:\xampp\htdocs\business\lib\functions.php on line 13rnrn[code=PHP]rn$rand_invoice_id=rand(0000,9999);rn$current_time=date("Y-m-d H:i:s");rn$current_time_start=date("Y-m-d")." "."07:00:00";rn$tomorrow_time_start=date("Y-m-d", strtotime('+1 day'))." "."07:00:00";rn$yesterday_time_start=date("Y-m-d", strtotime('-1 day'))." "."07:00:00";rn$row=1;rndornrn $query="SELECT * FROM CART WHERE (invoice_id='$rand_invoice_id') AND (order_time BETWEEN '$current_time_start' AND '$tomorrow_time_start')";rn rn $result=queryMysql($query);rn $rows=mysql_num_rows($result);rn if($rows != 0)rn rn $rand_invoice_id=rand(0000,9999);rn rnrnrnwhile($row!=0);rn[/code]rnrn我只是想弄一个购物车,随机生成invoice ID,但是随机生成的可能会重复,所以先随机生成一个,然后在数据库里一定时间范围内找,如果有一样的就重新随机再生成一个,知道没有重复为止。rnrn我实在不知是哪有问题了,谢谢各位!替我看看吧
linker fatal error?
我在bcb6下新建一个application project,然后什么代码,控件也没加,什么参数,选项也没改,直接编译,链接rn结果提示 [linker fatal error]fatal: expected a file name:rnrn百思不得其解rnrn另外,在ewin200 下生成的exe文件要在cwin98 下运行要注意什么,我测试了一下,在ewin2000下好好的,在cwin98下居然没什么反应rnrn大大们多多指教。
又一次Fatal error:okcancl1.CPP
继上次重启后问题解决以来(在这个帖子:[url=http://bbs.csdn.net/topics/390384097?page=1#post-393842695]http://bbs.csdn.net/topics/390384097?page=1#post-393842695[/url]),rn今天打开另外一个自己编的程序,又出现这种错误提示:rn[BCC32 Fatal Error] okcancl1.CPP(1): F1009 Unable to open input file 'c:\program files\embarcadero\rad studio\7.0\ObjRepos\Cpp\okcancl1.CPP'rn如下图:rn[img=http://img.my.csdn.net/uploads/201303/12/1363070340_4074.jpg][/img]rnrn我选择清除工程临时文件再编译,不行;重启,不行。rn我仔细检查了下我的Unit1.cpp和Unit.h两个文件代码,没有发现和okcancl1.cpp有关的内容。rn在D:\program files(x86)\embarcadero\rad studio\7.0\ObjRepos\Cpp中也有okcancl1.CPP这个文件啊。rn如下图:rn[img=http://img.my.csdn.net/uploads/201303/12/1363070767_1844.jpg][/img]rn我打开看了,代码如下,没问题啊:rn[code=c]//---------------------------------------------------------------------rn#include rn#pragma hdrstoprnrn#include "OKCANCL1.h"rn//--------------------------------------------------------------------- rn#pragma resource "*.dfm"rnTOKBottomDlg *OKBottomDlg;rn//---------------------------------------------------------------------rn__fastcall TOKBottomDlg::TOKBottomDlg(TComponent* AOwner)rn : TForm(AOwner)rnrnrn//--------------------------------------------------------------------- rn[/code]rn再次请教。我已经准备重装这个软件,看看结果。
VS2008 fatal error C1083
打算写个在window下获取ip的小函数rn使用的VS2008rn代码如下 fatal error C1083: 无法打开包括文件:“Winsock2.h”: No such file or directoryrn对VS使用不熟 不知道怎么解rnrnrn//#include "stdafx.h"rn#include rn#include rn#include rn#include rnrn#pragma comment (lib,"ws2_32.lib")rnrnint _tmain(int argc, _TCHAR* argv[])rnrnrn char localip[8][32]; rn rn rn char caHostName[20];rn char caTty[10];rn int namelen=16;rnrn char *tmp;rn rn struct hostent *h;rnrn struct in_addr addr;rn memset(caHostName,0,sizeof(caHostName));rn memset(caTty,0,sizeof(caTty));rn gethostname(caHostName, namelen);rn if ((h=gethostbyname(caHostName)) == NULL)rn rn return 0;rn rn int k=0;rn while (h->h_addr_list[k] != NULL)rn rn memcpy(&addr, h->h_addr_list[k], sizeof(struct in_addr));rn tmp=inet_ntoa(addr);rn strcpy(localip[k++],tmp);rn cout<
fatal error C1083 编译错误
环境VC2005rn编译时提示:rnshpresencedialog.cpprn1>c1xx : fatal error C1083: Cannot open source file: '.\shpresencedialog.cpp': No such file or directoryrnrnrnshpresencedialog.cpp这个文件是我误创建的,后面我把它从工程中删除,并且也删除了源程序目录下这个文件rnrn但工程编译时,总还要去编译它,而且提示上面的错误rnrn有什么办法,不让编译器再去编译这个文件?什么地方可以设置,rn
相关热词 c# 线程结束时执行 c# kb mb 图片 c# 替换第几位字符 c#项目决定成败 c# 与matlab c# xml缩进 c#传感器基础 c#操作wps c# md5使用方法 c# 引用父窗口的组件