laravel Fatal error: Class 'Memcached' not found [问题点数:100分]

Bbs1
本版专家分:0
结帖率 0%
Bbs6
本版专家分:6682
Blank
红花 2019年3月 PHP大版内专家分月排行榜第一
2019年1月 PHP大版内专家分月排行榜第一
2018年12月 PHP大版内专家分月排行榜第一
Blank
黄花 2018年11月 PHP大版内专家分月排行榜第二
2018年10月 PHP大版内专家分月排行榜第二
Bbs1
本版专家分:35
Mac下PHP Fatal error: Class 'Memcache' not found
这几天开发PHP Memcache遇到了这个奇葩的问题。Memcache环境安装成功但是运行代码总是报错$mem = new Memcache(); $mem->connect('127.0.0.1',11211); $mem->set("foo","3",0,10); echo $mem->get("foo");运行提示PHP Fatal <em>error</em>: Class ‘Memcache’ not
Fatal error: Class 'mysqli' not found in
大家好!我是PHP新手!rn我安装了Apache2.2+PHP5.2.10+MySQL5rn我在Apache中设置了虚拟目录,rn把PHP.INI放到Windows目录下,把extension=mysqli.dll加上了,把PHP\ext目录下的DLL文件拷到System32目录下了,rn我在页面中测试了一个PHP访问MySQLrn语句是:$db=new mysqli("localhost","root","ok")rn可是总是报个错:Fatal <em>error</em>: Class 'mysqli' not <em>found</em> in rn为什么找不到mysqli这个类呢?我找不出原因是什么?rn请各位专家给我指点一下。谢谢!
Fatal error: Class 'mysqli' not found
Fatal <em>error</em>: Class 'mysqli' not <em>found</em> rn请问这个问题怎么解决?我装的是php5的,这个类库应该是php自带的啊,为什么会提示找不到呢,应该怎么设置才能找到,小弟第一天学,请别见笑
Fatal error: Class 'Mage_Adminhtml_Controller_action' not found
Fatal <em>error</em>: Class 'Mage_Adminhtml_Controller_action' not <em>found</em> in /home/mixmind/demo-sites/mshop/app/code/community/AW/Blog/controllers/Manage/BlogController.php on line 19rnrnrn在我的Magento的blog下拉菜单中的Add Post双击之后就出现了这个问题,我该怎么解决呢,请高手指点一下!!
请问Fatal error: Class 'COM' not found in
我在做连接access库的时候用到adodb-ado.inc.phprn但是在使用的时候报rnFatal <em>error</em>: Class 'COM' not <em>found</em> in 这个错误,是因为php.ini里面什么东西没有开吗?
求助:Fatal error: Class 'XmlLib_xmlParser' not found
安装了一个免费的PHP产品,访问首页就出现了下面错误rnFatal <em>error</em>: Class 'XmlLib_xmlParser' not <em>found</em> in .../includes/cls.xml.php on line 122rn rnLine 122的代码如下:rn$n =& new $<em>class</em>name();rn rncls.xml.php的源代码为:rnhttp://www.php<em>class</em>es.org/browse/file/4915.htmlrn rn经检查,在cls.xml.php文件中有类XmlLib_xmlParser的定义和实现。rn是什么导致了这个问题?php.ini设置或其他设置?linux运行环境?或者代码原因(感觉不是代码原因)?rn rn系统环境信息:rn服务器操作系统: RHEL5.2 WEB 服务器: Apache/2.4.3 rnPHP 版本: 5.4.9 MYSQL 版本: 5.0.45rn rn先谢了!!
PHP Fatal error: Class 'Model' not found ?
PHP Fatal <em>error</em>: Class 'Model' not <em>found</em> in \webAdmin\Lib\Model\BrandModel.<em>class</em>.php on line 6 rnrnrn第6行是这句代码rn<em>class</em> BrandModel extends Model rnrnrn是变量的问题么?菜鸟来请教下。。。
[Fatal Error] File not found:
莫名其妙的问题:rn[Fatal Error] File not <em>found</em>: 'C:\Program Files\Borland\Delphi7\Quickrep5\LMDControl.pas'rn将Quickrep5和LMD控件都重新装过,还是提示这么个问题。
class not found error
Running with storage root C:\Users\LinjieSHEN\j2mewtk\2.5.2\appdb\MediaControlSkinrnRunning with locale: Chinese (Simplified)_People's Republic of China.936rnRunning in the manufacturer security domainrnjava.lang.ClassNotFoundException: kongzhongrn at com.sun.midp.midlet.MIDletState.createMIDlet(+29)rn at com.sun.midp.midlet.Scheduler.schedule(+52)rn at com.sun.midp.main.Main.runLocalClass(+28)rn at com.sun.midp.main.Main.main(+80)rnExecution completed.rn3398974 bytecodes executedrn26 thread switchesrn1667 <em>class</em>es in the system (including system <em>class</em>es)rn17551 dynamic objects allocated (522420 bytes)rn1 garbage collections (0 bytes collected)rnrn错误信息如上,我是没办法找到解决办法了 rn望大虾给点建议
Error:Action class [] not found
想手动搭建SSH2框架,编译的时候报如下错误,求教高手们如何解决。。。(包是从利用myeclipse7.5搭建成功的LIB目录下COPY过来的)rn错误如下:rn严重: Exception starting filter struts2rnAction <em>class</em> [SaveUserAction] not <em>found</em> - action - file:/E:/Workspaces/test/WebRoot/WEB-INF/<em>class</em>es/struts.xml:8:55rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:374)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:329)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:429)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnrnrn[size=16px][b]struts.xml[/b][/size]rnrnrn rn rnrn rn rn /success.jsprn /save.jsprn rn rnrnrn[b]web.xml[/b][size=16px][/size]rnrnrnrnrnrnrn struts2rn rn org.apache.struts2.dispatcher.FilterDispatcherrn rnrnrnrn struts2rn /*rnrnrnrn rn org.springframework.web.context.ContextLoaderListenerrn rnrn rn index.jsprn rnrnrnrnrn[b]ApplicationContext.xml[/b][size=16px][/size]rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.Oracle9Dialect rn true rn rn rn rn rn com/test/bean/User.hbm.xml rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrnrnrn[b]Action类:[/b][size=16px][/size]rnrnpackage com.test.action;rnrnimport com.opensymphony.xwork2.ActionSupport;rnimport com.test.bean.User;rnimport com.test.service.*;rnrnpublic <em>class</em> SaveUserAction extends ActionSupport rnrn private User user;rn rn private UserService service;rn rnrn public UserService getService() rn return service;rn rnrn public void setService(UserService service) rn this.service = service;rn rnrn public User getUser() rn return user;rn rnrn public void setUser(User user) rn this.user = user;rn rn rn @Overridern public String execute() throws Exceptionrn rn rn this.service.save(this.user);rn return SUCCESS;rn rn
Fatal error: Class 'Albums' not found in E:\wwwroot\zf-tutorial\application\cont
希望大家能帮忙解决下。rnFatal <em>error</em>: Class 'Albums' not <em>found</em> in E:\wwwroot\zf-tutorial\application\controllers\IndexController.php on line 7rnrn找不到 Albums 这个函数,但是又不知道是哪里出现了问题。rnIndexControllerrnrn<em>class</em> IndexController extends Zend_Controller_Actionrnrnfunction indexAction()rnrn $this->view->tile="My Albums";rn $albums = new Albums();rn $this->view->albums = $albums->fetchAll();rnrnrnrnindex.phprnrn<em>error</em>_reporting(E_ALL|E_STRICT);rnini_set('display_<em>error</em>s', 1);rndate_default_timezone_set('Europe/London');rn// 目录设置和类装载rnset_include_path('.' . PATH_SEPARATOR . '../library/'rn. PATH_SEPARATOR . '../application/models'rn. PATH_SEPARATOR . get_include_path());rnrnrnrequire_once 'Zend/Loader/Autoloader.php';rn$loader = Zend_Loader_Autoloader::getInstance();rn$loader->registerNamespace('App_');rnrn// 设置控制器rn$frontController = Zend_Controller_Front::getInstance();rn$frontController->throwExceptions(true);rn$frontController->setControllerDirectory('../application/controllers');rnrn$frontController->setParam('useDefaultControllerAlways', true);rn$layout = Zend_Layout::startMvc(array('layout' => 'layouts','layoutPath' => '../application/layouts', 'contentKey' => 'CONTENT',));rnrn//设置数据库连接信息rn$config = new Zend_Config_Ini('../application/config.ini', 'general');rn$registry = Zend_Registry::getInstance();rn$registry->set('config', $config);rn$db = Zend_Db::factory($config->db);rnZend_Db_Table::setDefaultAdapter();rn// run!rn$frontController->dispatch();rnrnAlbums.phprnrn
【♠】海外空间 Linux 在线解压缩 Fatal error: Class 'Com' not found in
空间,海外空间,在线解压缩。rn涉及文件两个:rn-------------------------------------rn[code=PHP]./zip.phprn./UC1.5_UCH2.0_DZ7.0_SC_UTF8.zip[/code]rn-------------------------------------rnphpinfo:rn[code=PHP]rnPHP Version 5.2.12rnSystem Linux budapestrnServer API CGI/FastCGI rnConfiguration File (php.ini) Path /etc/php5/cgirnLoaded Configuration File /etc/php5/cgi/php.ini rn_SERVER["SERVER_SOFTWARE"] Apacherndisable_functions no value no valuernrnRegistered PHP Streams: https, ftps, compress.zlib, php, file, data, http, ftprnRegistered Stream Socket Transports: tcp, udp, unix, udg, ssl, sslv3, sslv2, tlsrnRegistered Stream Filters: zlib.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed rnrn[/code]rn-----------------------------------------------rnrn./zip.php全部代码:rn[code=PHP]rnrun("WinRAR x-r-o ".$zipfile." ".$dir." ",1,true);rnecho 'unzip ok!';rn?>rn[/code]rnrn浏览器打开运行后提示:rnrn[code=PHP]Fatal <em>error</em>: Class 'Com' not <em>found</em> in /home/yh_default/baidu.com/zip.php on line 4[/code]rnrnrn到底怎么回事啊?rn大家帮我看看。rn
zendframework “Fatal error: Class 'Albums' not found in”,急急急
Index Controllers:rn rn public function indexAction ()rn rn $this->view->title = "My Albums";rn $this->view->headTitle($this->view->title, 'PREPEND');rn $albums = new Albums();rn $this->view->albums = $albums->fetchAll();rn rnrnmodels:rn<em>class</em> Albums extends Zend_Db_Table_Abstractrnrn rn protected $_name = 'albums';rn rn public function getAlbum ($id)rn rn $id = (int) $id;rn $row = $this->fetchRow('id = ' . $id);rn if (! $row) rn throw new Exception("Count not find row $id");rn rn return $row->toArray();rn rnrnrn走到$albums = new Albums();出错,rnFatal <em>error</em>: Class 'Albums' not <em>found</em> in F:\workplat\xampp\htdocs\app\application\controllers\IndexController.php on line 12rnrn请各位仁兄帮帮忙,郁闷死我了!
Fatal error: Class 'dsession' not found in 这个是什么原因啊
Fatal <em>error</em>: Class 'dsession' not <em>found</em> in 这个是什么原因啊
Fatal error: Class 'mysqli' not found in F:\apache\Apache2\htdocs\……
问题描述:rn1.php.ini里那个extension对应的分号我已经去掉了。rn2.我也把php_mysqli拷贝到system32下了rn3.环境搭建完成后我测试phpinfo()也是成功的rn4.程序代码没有问题,在别人机器上可以跑通rn5.mysql数据库里的内容用户和密码也是正常的没有错。rn6.环境:php5.2.17 ;apache2.0.64 ;mysql5.6.10; windowsXPrn然后就会爆出标题的错误rnrn网上一般搜到的方法我都试过了还是不行。
本地浏览报错Fatal error: Class 'linkagesClass' not found
各位帮帮忙 看看 rn服务器中部署正常(IIS环境),本地配置Apache浏览报Fatal <em>error</em>: Class 'linkagesClass' not <em>found</em> rn部分代码rn[code=php]rnrequire_once ("modules/linkages/linkages.<em>class</em>.php");rn$result = linkagesClass::GetList(array("limit"=>"all"));rnforeach ($result as $key => $value)rn $_G['linkages'][$value['type_nid']][$value['value']] = $value['name'];rn $_G['linkages'][$value['id']] = $value['name'];rn if ($value['type_nid']!="")rn $_G['_linkages'][$value['type_nid']][$value['id']] = array("name"=>$value['name'],"id"=>$value['id'],"value"=>$value['value']);[quote][/quote]rn rnrnrn<em>class</em> linkagesClassrn rn rn /**rn * 获得列表rn *rn * @return Arrayrn */rn function GetList($data = array())rn global $mysql;rn rn rn $_sql = " where 1=1 ";rn //判断类型名称是否存在rn $data['type_id'] = isset($data['type_id'])?$data['type_id']:"";rn if (IsExiest($data['type_id'])!=false) rn $_sql .= " and p1.type_id ='$data['type_id']'";rn rn......rnrn[/code]
[Fatal Error] Required package 'dclocx50' not found???
[Fatal Error] Required package 'dclocx50' not <em>found</em>???请问怎么回事?谢谢!!!
程序错误:[Fatal Error] Required package 'dclocx50' not found???
[Fatal Error] Required package 'dclocx50' not <em>found</em>?请问怎么回事?谢谢!!!
fatal error C1004: unexpected end-of-file found报错
VS下报错<em>fatal</em> <em>error</em> C1004: unexpected end-of-file <em>found</em>,代码如下:rn[code=c][///rn// This is example code from Chapter 6.6 "Trying the first version" ofrn// "Software - Principles and Practice using C++" by Bjarne Stroustruprn//rnrn#include "std_lib_facilities.h"rnrn//------------------------------------------------------------------------------rnrn<em>class</em> Tokenrnpublic:rn char kind; // what kind of tokenrn double value; // for numbers: a value rn Token(char ch) // make a Token from a charrn :kind(ch), value(0) rn Token(char ch, double val) // make a Token from a char and a doublern :kind(ch), value(val) rn;rnrn//------------------------------------------------------------------------------rnrnToken get_token() // read a token from cinrnrn char ch;rn cin >> ch; // note that >> skips whitespace (space, newline, tab, etc.)rnrn switch (ch) rn //not yet case ';': // for "print"rn //not yet case 'q': // for "quit"rn case '(': case ')': case '+': case '-': case '*': case '/':rn return Token(ch); // let each character represent itselfrn case '.':rn case '0': case '1': case '2': case '3': case '4':rn case '5': case '6': case '7': case '8': case '9':rn rn cin.putback(ch); // put digit back into the input streamrn double val;rn cin >> val; // read a floating-point numberrn return Token('8', val); // let '8' represent "a number"rn rn default:rn <em>error</em>("Bad token");rn rnrnrn//------------------------------------------------------------------------------rnrndouble expression(); // read and evaluate a Expressionrnrn//------------------------------------------------------------------------------rnrndouble term(); // read and evaluate a Termrnrn//------------------------------------------------------------------------------rnrndouble primary() // read and evaluate a Primaryrnrn Token t = get_token();rn switch (t.kind) rn case '(': // handle '(' expression ')'rn rn double d = expression();rn t = get_token();rn if (t.kind != ')') <em>error</em>("')' expected");rn return d;rn rn case '8': // we use '8' to represent a numberrn return t.value; // return the number's valuern default:rn <em>error</em>("primary expected");rn rnrn//------------------------------------------------------------------------------rnrnint main()rnrn try rn while (cin)rn cout << expression() << '\n';rn keep_window_open("~0");rn rn catch (exception& e) rn cerr << e.what() << endl;rn keep_window_open("~1");rn return 1;rn rn catch (...) rn cerr << "exception \n";rn keep_window_open("~2");rn return 2;rn rnrnrn//------------------------------------------------------------------------------rnrndouble expression()rnrn double left = term(); // read and evaluate a Termrn Token t = get_token(); // get the next tokenrn while (true) rn switch (t.kind) rn case '+':rn left += term(); // evaluate Term and addrn t = get_token();rn break;rn case '-':rn left -= term(); // evaluate Term and subtractrn t = get_token();rn break;rn default:rn return left; // finally: no more + or -: return the answerrn rn rnrnrn//------------------------------------------------------------------------------rnrndouble term()rnrn double left = primary();rn Token t = get_token(); // get the next tokenrnrn while (true) rn switch (t.kind) rn case '*':rn left *= primary();rn t = get_token();rn break;rn case '/':rn rn double d = primary();rn if (d == 0) <em>error</em>("divide by zero");rn left /= d;rn t = get_token();rn break;rn rn default:rn return left;rn rn rnrnrn//------------------------------------------------------------------------------rncode]
[Fatal Error] bbc.dpr(85): File not found: 'TFlatPanelUnit.dcu'
找不到这个组件,请问这是什么组件包的
[Fatal Error] Required package 'dxtrmdD6' not found什么意思?
在编译工程的时候老是说:[Fatal Error] Required package 'dxtrmdD6' not <em>found</em>,然后就停在那里,各位大侠,这是怎么回事啊?
fatal error C1004: unexpected end of file found
⑵编写重载函数Max可分别求取两个整数,三个整数,两个双精度数,三个双精度数的最大值。rn下面是我写的程序:rn//Max.cpprnrn#includernint Max(int a, int b)rn rn int temp;rn if(a>b)rn temp=a;rn elsern temp=b;rn return temp;rn rnint Max(int a, int b , int c)rn rn int temp;rn temp=a>b?a:b;rn temp=temp>c?temp:c;rn return temp;rn rndouble Max(double a, double b)rn rn double temp;rn if(a>b)rn temp = a;rn elsern temp = b;rn return temp;rn rndouble Max(double a, double b , double c)rn rn double temp;rn temp=a>b?a:b;rn temp=temp>c?temp:c;rn return temp;rn rn rn main()rnrn cout<
fatal error: 'stdlib.h' file not found相关问题
Mac os系统更新到10.14,编译原来可行的程序弹出<em>fatal</em> <em>error</em>: 'stdlib.h' file not <em>found</em>,Xcode更新到最新了,不行,具体错误是:rn[img=https://img-bbs.csdn.net/upload/201810/09/1539059283_865515.png][/img]rngcc版本为:rn[img=https://img-bbs.csdn.net/upload/201810/09/1539059352_305561.png][/img]rn求大神帮忙!急!
java.lang.Error: Probable fatal error:No fonts found
写的扫雷程序 我想优化代码用for循环 结果再运行就加载不出来存放雷 的小按键rn点关闭也关闭不了rn报错是: java.lang.Error: Probable <em>fatal</em> <em>error</em>:No fonts <em>found</em>rn[img=https://img-bbs.csdn.net/upload/201801/10/1515580776_876013.png][/img]rn[img=https://img-bbs.csdn.net/upload/201801/10/1515580932_166499.png][/img]rn求助!!
编译时出现fatal error :file not found "rtl.dll"?
对于这辆处错误不解,请高手指教:rn[Fatal Error] File not <em>found</em>: 'rtl.dll'rn[Fatal Error] dsDlgPack.dpk(28): Required package 'rtl' not <em>found</em>
[Fatal Error] Required package 'dclOfficeXP' not found
编译不通过,提示[Fatal Error] Required package 'dclOfficeXP' not <em>found</em>.请问如何解决?
[Fatal Error] Project1.dpr(1): File not found: 'System.pas'
我在编译时出现[Fatal Error] Project1.dpr(1): File not <em>found</em>: 'System.pas',不知大家有没有碰过?
[Fatal Error] Required package 'nmfast' not found
调试出现:[Fatal Error] Required package 'nmfast' not <em>found</em>rnnmfast哪儿有?谢。
[Fatal Error] dclusr.dpk(41): File not found: 'FolderDialog.dcu'
[Fatal Error] dclusr.dpk(41): File not <em>found</em>: 'FolderDialog.dcu'rn安装PAS的组件rn老是提示这错误rn怎么办rn
[Fatal Error] uMapInfo.pas(6): File not found: 'Ole2.dcu'
unit uMapInfo;rnrninterfacernrnusesrn SysUtils, Dialogs, Controls, uMiConst, OleAuto;rnrntypern...rn...rnrn上面的用法有什么问题吗?为什么提示rn[Fatal Error] uMapInfo.pas(6): File not <em>found</em>: 'Ole2.dcu'?rn请各位指教
[Fatal Error] Project1.dpr(5): File not found: 'DMUnit.dcu'
RT:我先在工程理创建了一个窗体,后来又不需要了,所以把窗体从工程理移除了,把工程文件也删除了就出现了这个问题,请问高手如何解决?rn[Fatal Error] Project1.dpr(5): File not <em>found</em>: 'DMUnit.dcu'
[Fatal Error] P_Main.pas(7); File not found:'DsgnIntf.dcu'
那里有'DsgnIntf.dcu',如何解决???
fatal error C1004: unexpected end-of-file found
如题,如何解决?
[Fatal Error] Required package 'dxPSdxMVLnkD7' not found
这个问题如何解决?
[Fatal Error] ddlr.pas(15): File not found: 'cxExportGrid4Link.dcu'
欢迎各位高手围观!
fatal error RC1004: unexpected end of file found
我在编写一个菜单应用程序时,添加了一个资源,而资源引用了一个自建的头文件,但是编译时就显示rn1>8-1.h(11): <em>fatal</em> <em>error</em> RC1004: unexpected end of file <em>found</em>rn头文件文件结尾出了问题,不明白啊!!!
[Fatal Error] ExTracer.pas(59): File not found: 'JclDebug.dcu'
这个类哪里来的?rn我怎么从来没有见过?rn有地方可以提供吗?或者是delphi7自带的?rn我的delphi7中怎么没有
[Fatal Error] Project1.dpr(1): File not found: 'System.pas'??
我安装DELPHI6+CODERUSH但我打开DELPHI6后,却发现COMPONENTS没有。我就到菜单的PROJECT/OPTIONS/PACKAGES,这样COMPONENTS看见了,但我只要运行一个空窗体都会出现以上错误。rnTools\Environment options\Library里面都设置了,可就不知道还哪里的问题?
[Fatal Error] xlChamber.dpr(42): File not found: 'cxOI.dcu'
[Fatal Error] xlChamber.dpr(42): File not <em>found</em>: 'cxOI.dcu'rnrn什么意思?
[Fatal Error] dclusr.dpk(42): File not found: 'SimpleTimer.dcu'
安装控件的时候发生[Fatal Error] dclusr.dpk(42): File not <em>found</em>: 'SimpleTimer.dcu'.rn请问这是什么原因?如何解决?另外我安装了XPMENU控件,为什么不能清除干净,就是说:我已经REMOVE了XPMENU,但是控件栏里仍可见到他的踪影...
[Fatal Error] Required package 'dxPScxGridLnkD7' not found
[Fatal Error] Required package 'dxPScxGridLnkD7' not <em>found</em>rn这个怎么解决,rn安装什么控件啊?
fatal error C1004: unexpected end of file found!
<em>fatal</em> <em>error</em> C1004: unexpected end of file <em>found</em>,在程序编译的时候,出现的这个报错,是配对的,没有问题,这是什么原因呢?
[Fatal Error] Functions.pas(24): File not found: 'Unit1.dcu'
重装相同的delplhi7后,出现上面的错误,没重装之前都没问题,请问是什么原因?
[Fatal Error] f_dzbl.pas(11): File not found: 'PluginBaseFormD.dcu'
这个怎么解决 要从哪里找
Fatal error: Cannot redeclare class invalidargumentexception
Fatal <em>error</em>: Cannot redeclare <em>class</em> invalidargumentexception in E:\Programmierung\Eclipse\PHPMySQL\booksrc\chapters\Chapter20\<em>error</em>s.inc on line 9rnrn在学习PHP和MySQL Web应用开发核心一书时遇到的。代码是光盘自带,有没有人知道?谢谢了。
打开工程文件时 error :class * not found
可是工程可以运行rn这是为什么rn我已经加了包路径
fatal error C1189: #error
随手简了一个空的 win32项目 项目名称是ttt 在网上粘贴的代码想看下效果。。结果报错。。求解rnrnrn错误 1 <em>fatal</em> <em>error</em> C1189: #<em>error</em> : 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<<<<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 : <em>error</em> LNK2019: 无法解析的外部符号 "void __cdecl Output(char (*)[16],int * const,int)" (?Output@@YAXPAY0BA@DQAHH@Z),该符号在函数 _main 中被引用rnrn用的是vs2010~~~
class *** not found
我用jdk编写程序,但编译时总是提示 “Super<em>class</em> com.sun.java.swing.JApplet of <em>class</em> *** not <em>found</em>"。Plug in 已经安装过了,<em>class</em>path 好像也没问题。我用的环境是jdk 1.3.0.02。
fatal error!
e:\testgrid\testgrid\testgriddlg.cpp(4) : <em>fatal</em> <em>error</em> C1083: Cannot open precompiled header file: 'Debug/TestGrid.pch': No such file or directoryrnrn怎么解决?rn
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
class * not found
varrn cp:TComponent;rnbeginrn RegisterClasses([TBitbtn]);rn Clipboard.SetComponent(bitbtn1);rn FreeAndNil(bitbtn1);rn cp:=Clipboard.GetComponent(self,self);//提示"Class TBitBtn not <em>found</em>"rn UnRegisterClasses([TBitbtn]);rnend;rnbitbtn1是在设计时在窗体上放的。rnrn大峡们快帮我想想办法!
class ** not found
在一个项目中,增加一个部件,在部件面板中已经存在,但是当打开这个项目后,这个部件在面板中就是显示不出来 而且在这个项目中增加一个包含上面部件的form时,提示 <em>class</em>*** not fount ....ignore the <em>error</em> and continue.....的提示rnrn,而新建一个项目,或者是其它已经存在的项目,这个部件都能显示出来,而且可以被加到form上,而且也可以增加一个已经包含上面部件的form.rn怎么回事, 不知是不是冲突了
关于错误信息:fatal error:bad class:loading wrong class!
我是初学者,rn<em>fatal</em> <em>error</em>:bad <em>class</em>:loading wrong <em>class</em>!rnjavax/mecroedition/midlet/Appcontext:createMIDlet@6rn各位大虾,这个意思我明白,不过我不懂的,我编译过程完全正确,怎么是<em>fatal</em>rn太严重了吧,还有请教各位,资源文件怎么配置?比如一个音乐文件和图片,应该放在哪?rn谢谢!
class Persistent not found in class bo.BorrowerInformation">"BorrowerInformation.java": Error #: 300 : class Persistent not found in class bo.BorrowerInformation
编译时,怎么自己还要自己的包?什么东西,实在不明白啊!先谢谢了!
Error #: 302 : cannot access class org.apache.taglibs.datetime.FormatTag; java.io.IOException: class not found:
用jbuilderX编译成功后重新打开就出如下错误:rnrn"additem.jsp": Error #: 302 : cannot access <em>class</em> org.apache.taglibs.datetime.FormatTag; java.io.IOException: <em>class</em> not <em>found</em>: <em>class</em> org.apache.taglibs.datetime.FormatTagrnrn我用了:jakarta-taglibs-datetime-1.0.1.rn但我直接部署到tomcat 中是运行正常的。不知道是何原因。rn而且发现我删除 web.xml, ;taglibs-datetime.tld;taglibs-datetime.jar 重做一遍就有可能好。rn碰到很多次了,不知是何原因?
initialization error: com.borland.compiler.symtab.LoadError: java.io.IOException: class not found: class java.lang.Object
怎么回事???
error: com.borland.compiler.symtab.LoadError: java.io.IOException: class not found:">"Hello.java": Error #: 750 : initialization error: com.borland.compiler.symtab.LoadError: java.io.IOException: class not found:
我安装了JB8,我添加了一个工程(New Project,名称为:HelloWorld),rn接着添加了一个类,在第一行自动生成了一条语句:rnpackage HelloWorld;//就是这条语句,可是提示我:rnrn"Hello.java": Error #: 750 : initialization <em>error</em>: com.borland.compiler.symtab.LoadError: java.io.IOException: <em>class</em> not <em>found</em>: <em>class</em> java.lang.Objectrnrnjava.lang.Object 是我继承的基类rnrn帮帮忙吧rn类的内容如下:rnrnpackage helloworld;//这里rnrn/**rn * Title: testrn * Description: rn * Copyright: Copyright (c) 2003rn * Company: rn * @author not attributablern * @version 1.0rn */rnrnpublic <em>class</em> Hello rn public Hello() rn rn public static void main(String[] args) rn Hello hello1 = new Hello();rn rnrnrnrnrn
error LNK2019 && fatal error LNK1120
我是cuda初学者,照着GPU高性能运算之CUDA这本书编程,第二章的小程序编译运行出现了如下两个错误:rn错误1 <em>error</em> LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用 LIBCMT.librn错误2 <em>fatal</em> <em>error</em> 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<<>>(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);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) : <em>error</em> C2146: syntax <em>error</em> : missing ';' before identifier 'UseHp'rnitu_g.723.1/lbccodec.h(19) : <em>fatal</em> <em>error</em> C1004: unexpected end of file <em>found</em>rn编译程序时出现上面两个错误.不知怎么解决.请大家帮帮忙
error C2143 fatal error C1004
在编写C程序时遇到了这两个错误——<em>error</em> C2143: syntax <em>error</em> : missing ';' before ':rn <em>fatal</em> <em>error</em> C1004: unexpected end of file <em>found</em>rn检查了没有括号错误。请各位大神指点!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='A'&&s='0'&&s='0'&&s,&i);rn rnrnrn如果将函数b 隐掉就没有错误,感觉很奇怪。rn
error LNK2001 & fatal error LNK1120
题目如下:rnrn[quote]1、定义基类 Point,使其能够初始化坐标(x,y),移动坐标,返回坐标rnrn2、定义派生类 Rectangle,有成员变量 width、high;并且有成员函数,使其能够返回矩形相关属性:宽、高、面积rnrn基类:rnrn<em>class</em> 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 <>x>>y;rn cin>>length>>width;rn Rectangle R(x,y,length,width);rn cin>>xmove>>ymove;rn R.Move(xmove,ymove);rn cout <
Masm32的问题:fatal error LNK1190:Invalide fixup found,type 0x0001
麻烦给解释一下啊,多谢.rnrn是不是masm32不能连接16位的程序?rn
fatal error C1004: unexpected end of file found的解决办法?
不知道为什么,我的程序老是会出现这个错误。rn<em>fatal</em> <em>error</em> C1004: unexpected end of file <em>found</em>rnrn请问大家是怎么回事?
为什么总是出现 fatal error RC1004: unexpected end of file found ???
凡是涉及到有资源文件加入工程,在编译时,有时会出现这个错误:rn<em>fatal</em> <em>error</em> RC1004: unexpected end of file <em>found</em>rnrn然后光标提示会停在*.h 头文件的最后一行,怎么也找不到是什么错误,rn而有的工程在编译时又不会出现这一<em>error</em>。rnrn到底是什么原因??rn
出了个fatal error C1004: unexpected end-of-file found
#include "windows.h"rn//#define dim(x) (sizeof(x) / sizeof(x[0]))rnrnstruct decodeUINT rn UINT Code; rnrn LRESULT (*Fxn)(HWND, UINT, WPARAM, LPARAM); rn; rnLRESULT DoPaintMain(HWND hWnd,UINT wMsg,WPARAM wParam,LPARAM lParam);rnLRESULT DoDestroyMain(HWND hWnd,UINT wMsg,WPARAM wParam,LPARAM lParam);rnHWND InitInstance(HINSTANCE hInstance,LPWSTR lpCmdLine,int nCmdShow);rnint TermInstance(HINSTANCE hInstance,int nDefRC);rnrnconst TCHAR szAppName[]= TEXT("PDS600");rnrnHINSTANCE hInst;rnconst struct decodeUINT MainMessages[]=rnWM_PAINT,DoPaintMain,rnWM_DESTROY,DoDestroyMain,rn;rnrn//////////////////////////////////////////////////////////////////////////////////rnrnint WINAPI WinMain( rn HINSTANCE hInstance, rn HINSTANCE hPrevInstance, rn LPWSTR lpCmdLine, rn int nCmdShowrn )rn MSG msg;rn int rc=0;rn HWND hwndMain;rn hwndMain=InitInstance(hInstance,lpCmdLine,nCmdShow);rn if(hwndMain==0)return 0x10;rn while(GetMessage(&msg,NULL,0,0))rn rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn return TermInstance(hInstance,msg.wParam);rnrn/////////////////////////////////////////////////////////////////////////////////rnHWND InitInstance(HINSTANCE hInstance,LPWSTR lpCmdLine,int nCmdShow)rnrn WNDCLASS wc;rn HWND hWnd;rn hInst = hInstance;rn #if defined(WIN32_PLATFORM_PSPC)||defined(WIN32_PLATFORM_WFSP)rn hWnd=FindWindow(szAppName,NULL);rn if(hWnd)rn SetForegroundWindow((HWND)(((DWORD)hWnd)|0x01));rn return 0;rn rnrn wc.style=0;rn wc.lpfnWndProc=MainWndProc;rn wc.cbClsExtra=0;rn wc.cbWndExtra=0;rn wc.hInstance=hInstance;rn wc.hIcon=NULL;rn wc.hCursor=LoadCursor(NULL,IDC_ARROW);rn wc.hbrBackground=(HBRUSH)GetStockObject(WHITE_BRUSH);rn wc.lpszMenuName=NULL;rn wc.lpszClassName=szAppName;rn if(RegisterClass(&wc)==0)rn return 0;rn hWnd=CreateWindow(szAppName,rn TEXT("PDS600"),rn WS_VISIBLE|WS_CAPTION|WS_SYSMENU,rn CW_USEDEFAULT,rn CW_USEDEFAULT,rn CW_USEDEFAULT,rn CW_USEDEFAULT,rn NULL,NULL,hInstance,NULL);rn if(!IsWindow(hWnd))return 0;rn ShowWindow(hWnd,nCmdShow);rn UpdateWindow(hWnd);rn return hWnd; rnrn//////////////////////////////////////////////////////////////////////////////////////rnint TermInstance(HINSTANCE hInstance,int nDefRC)rnrn return nDefRC;rnrn/////////////////////////////////////////////////////////////////////////////////////rnLRESULT CALLBACK MainWndProc(HWND hWnd,UINT wMsg,WPARAM wParam,LPARAM lParam)rnrn int i;rn for(i=0;i
编译出错:fatal error C1004: unexpected end of file found
#include rnrn<em>class</em> A rnpublic:rn A();rn virtual void foo() rn cout << "This is A." << endl;rn rn;rnrn<em>class</em> B : public A rnpublic:rn B();rn void foo() rn cout << "This is B." << endl;rn rn;rn<em>class</em> A::A() rn<em>class</em> B::B() rnrnvoid main()rnrn A *a = new B;rn a->foo(); rnrnrn以上代码在VC6.0下编译出错:<em>fatal</em> <em>error</em> C1004: unexpected end of file <em>found</em>rnrn如果把A();B();构造函数改为A(),B() 这样的函数体,rn再删除<em>class</em> A::A() <em>class</em> B::B() 这两行。则编译通过。rnrn请教各位这是什么原因?rnrn
[Fatal Error] MainUnit.pas(7): File not found: 'tlocateoption.dcu' 很急哦!!谢了
unit DataUpdateUnit;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, ComCtrls, StdCtrls, Spin, Buttons,tlocateoption;rn........rn........rnif not locate('SNo',vararrayof([spinedit1.text]),[Lopartialkey])thenrn beginrn showmessage('无纪录,不能修改');rn exit;rnrnrn以上是我的程序的一部分,但是编译的时候有个错误:::[Fatal Error] MainUnit.pas(7): File not <em>found</em>: 'tlocateoption.dcu'rnrn请问应该怎么解决哦??rn
mac 安装canvas fatal error: 'jpeglib.h' file not found
[MT] PluginLoading: Required plug-in compatibility UUID E0A62D1F-3C18-4D74-BFE5-A4167D643966 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/VVDocumenter-Xcode.xcplugin' not present in DVTPlugInCompatibilityUUIDsrn2016-12-25 15:15:00.324 xcodebuild[7775:409163] [MT] PluginLoading: Required plug-in compatibility UUID E0A62D1F-3C18-4D74-BFE5-A4167D643966 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/KSImageNamed.xcplugin' not present in DVTPlugInCompatibilityUUIDsrn SOLINK_MODULE(target) Release/canvas-postbuild.nodern CXX(target) Release/obj.target/canvas/src/Canvas.ornIn file included from ../src/Canvas.cc:20:rn../src/JPEGStream.h:10:10: <em>fatal</em> <em>error</em>: 'jpeglib.h' file not <em>found</em>rn#include rn ^rn1 <em>error</em> generated.rnmake: *** [Release/obj.target/canvas/src/Canvas.o] Error 1rngyp ERR! build <em>error</em> rngyp ERR! stack Error: `make` failed with exit code: 2rngyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)rngyp ERR! stack at emitTwo (events.js:106:13)rngyp ERR! stack at ChildProcess.emit (events.js:191:7)rngyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)rngyp ERR! System Darwin 16.3.0rngyp ERR! command "/usr/local/Cellar/node/7.2.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"rngyp ERR! cwd /Users/JQC/node_modules/canvasrngyp ERR! node -v v7.2.0rngyp ERR! node-gyp -v v3.4.0rngyp ERR! not ok rnnpm WARN enoent ENOENT: no such file or directory, open '/Users/JQC/package.json'rnnpm WARN JQC No descriptionrnnpm WARN JQC No repository field.rnnpm WARN JQC No README datarnnpm WARN JQC No license field.rnnpm ERR! Darwin 16.3.0rnnpm ERR! argv "/usr/local/Cellar/node/7.2.0/bin/node" "/usr/local/bin/npm" "install" "canvas"rnnpm ERR! node v7.2.0rnnpm ERR! npm v3.10.9rnnpm ERR! code ELIFECYCLErnrnnpm ERR! canvas@1.6.2 install: `node-gyp rebuild`rnnpm ERR! Exit status 1rnnpm ERR! rnnpm ERR! Failed at the canvas@1.6.2 install script 'node-gyp rebuild'.rnnpm ERR! Make sure you have the latest version of node.js and npm installed.rnnpm ERR! If you do, this is most likely a problem with the canvas package,rnnpm ERR! not with npm itself.rnnpm ERR! Tell the author that this fails on your system:rnnpm ERR! node-gyp rebuildrnnpm ERR! You can get information on how to open an issue for this project with:rnnpm ERR! npm bugs canvasrnnpm ERR! Or if that isn't available, you can get their info via:rnnpm ERR! npm owner ls canvasrnnpm ERR! There is likely additional logging output above.rnrnnpm ERR! Please include the following file with any support request:rnnpm ERR! /Users/JQC/npm-debug.logrn
程序报错,fatal error RC1004: unexpected end of file found
我在编写一个菜单应用实例时,出现rn1>8-1.h(11): <em>fatal</em> <em>error</em> RC1004: unexpected end of file <em>found</em>rn显示的头文件是:rn#ifndef MENU_1_H //避免重复定义rn#define MENU_1_Hrn#define IDM_ADDMENU 15rn#define IDM_DELMENU 16rn#define IDM_EXIT 17rn#define IDM_HELP 22rn#define IDM_QIUHE 23rn#define IDM_FANGCHA 24rn#define IDM_PINGJUNZHI 25rn#define IDM_JUNFANGGEN 26rn#endif//MENU_1_Hrnrn不知道是哪里的错误;rnrn还有就是,rnwarning C4700: 使用了未初始化的局部变量“hmenu”rnrn以下是函数:rnLRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)rnrn HMENU hmenu;rn HMENU haddmenu;rn switch(message)rn rn case WM_COMMAND: //处理菜单消息rn switch(LOWORD(wParam))rn rn case IDM_ADDMENU: //在主菜单中添加弹出式"统计计算"菜单rn hmenu = GetMenu(hwnd); //获取主菜单句柄rn haddmenu = CreateMenu(); //动态创建菜单rn //在创建的菜单中增加菜单项rn AppendMenu(haddmenu, MF_ENABLED, IDM_QIUHE, "求和(&S)");rn AppendMenu(haddmenu, MF_ENABLED, IDM_FANGCHA, "方差(&F)");rn AppendMenu(haddmenu, MF_ENABLED, IDM_PINGJUNZHI, "平均值(&A)");rn AppendMenu(haddmenu, MF_ENABLED, IDM_JUNFANGGEN, "均方根(&J)");rn //将创建的弹出式菜单插入主菜单中rn InsertMenu(hmenu, 2, MF_POPUP|MF_BYPOSITION, (UINT)haddmenu,rn "统计计算(&C)");rn //相应改变菜单中有关统计计算菜单项的属性rn EnableMenuItem(hmenu, IDM_ADDMENU, MF_GRAYED);rn EnableMenuItem(hmenu, IDM_DELMENU, MF_ENABLED);rn DrawMenuBar(hwnd); //重新显示窗口菜单rn break;rn case IDM_DELMENU: //从主菜单中删除弹出式"统计计算"菜单rn DeleteMenu(hmenu, 2, MF_BYPOSITION); //删除"统计计算"菜单rn //相应改变“文件”菜单中有关统计计算菜单项的属性rn EnableMenuItem(hmenu, IDM_ADDMENU, MF_ENABLED);rn EnableMenuItem(hmenu, IDM_DELMENU, MF_GRAYED);rn DrawMenuBar(hwnd); //重新显示窗口菜单rn break;rn case IDM_EXIT:rn SendMessage(hwnd, WM_DESTROY, 0, 0);rn break;rn rn break;rn case WM_DESTROY:rn PostQuitMessage(0); //调用PostQuitMessage 发出WM_QUIT 消息rn default:rn return DefWindowProc(hwnd, message, wParam, lParam); //系统默认处理函数rn rn return 0;rnrnrn我明明定义了,不知是为什么?rn求解答!
出现“[Fatal Error] Project1.dpr(1): File not found: 'SysInit.pas'”是什么原因
请教刚安装完XP系统和Delphi,出现“[Fatal Error] Project1.dpr(1): File not <em>found</em>: 'SysInit.pas'”是什么原因
各位救命:[Fatal Error] required package 'rtl' not found
这已经是我第二次遇到这个问题了,真是棘手 。rnrn昨天我调试BPL的时候,把另外一个窗体和对应PAS文件加到了当前project里了,编译的时候,就提示[Fatal Error] required package 'rtl' not <em>found</em>,我胡乱屏蔽了点东西,后来又有个什么提示,我一般都是点OK的,这次也是,结果还是提示[Fatal Error] required package 'rtl' not <em>found</em>,我想算了,就关了这个工程,恢复了他以前的样子,去掉了新加的窗体和单元,可编译不过了,我是试了其他BPL(DPR工程)都编译不过,这下可急了,因为以前都是可以编译的。我觉得rtl是Delphi安装好后已经设置好了的,怎么会找不到呢,我就搜索机器上的rtl.dcp,找到了,在$Delphi\Lib目录下,明明环境设置里,Library中已经包含了这个目录啊,我又把绝对路径输入进去了,可依然编译不过。后来我看看普通的Exe工程行不行,结果发现任何工程都不行了 ,都提示[Fatal Error] required package 'rtl' not <em>found</em>,要么提示system.pas找不到。天啊,我简直崩溃了,我也没动过什么啊,怎么会这样啊。rnrn上次遇到这个问题,我重新安装的,可这次我不想重新装了,我里面都装了好多三方控件了,再装累死了要。rn请各位兄弟帮个忙,感激不尽!!!!
[Fatal Error] Project1.dpr(39): File not found: 'FInIfile.dcu'是什么问题?
'FInIfile.dcu'这是一个什么文件?rn
菜鸟求助[Fatal Error] Unit1.pas(6): File not found: 'MessageBox.dcu'的问题!
程序如下,真的不知道该怎么去解决了,求各位帮忙吧,百思不得其解。rnrnrnrnrnunit Unit1;rnrninterfacernrnusesrn SysUtils, Classes, DB, DBTables,Forms,MessageBox;rnrntypern TDataContrls = <em>class</em>(TDataModule)rn HDataSource: TDataSource;rn RDataSource: TDataSource;rn CDataSource: TDataSource;rn HTable: TTable;rn RTable: TTable;rn CTable: TTable;rn procedure DataModuleCreate(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn DataContrls: TDataContrls;rnrnimplementationrnrn$R *.dfmrnrnprocedure TDataContrls.DataModuleCreate(Sender: TObject);rnvarrn success:Boolean;rnbeginrn success:=True;rnrn if fileexists('House.dbf') thenrn beginrn HTable.DatabaseName:=ExtractFilePath(Application.ExeName);rn HTable.TableName:='House.dbf';rn HTable.Close;rn HTable.Open;rn endrn else success:=False;rnrn if fileexists('Contract.dbf') thenrn beginrn CTable.DatabaseName:=ExtractfilePath (Application.ExeName);rn CTable.TableName:='Contract.dbf';rn CTable.Close;rn CTable.Open;rn endrn else success:=False;rnrn if fileexists('Rent.dbf')thenrn beginrn RTable.DatabaseName :=ExtractfilePath(Application.ExeName);rn RTable.TableName:='Rent.dbf';rn RTable.Close;rn RTable.Open;rn endrn else success:=False;rn if not success thenrn MessageBox('有数据库文件不存在,请进入系统后马上在系统维护中恢复数据.');rn end;rnrnend.
这是什么原因[Fatal Error] FRMMAIN.pas(268): File not found: 'MenuBar.dcu'
答对就给分!
控件安装问题:[Fatal Error] TB97_d6.dpk(31): Required package 'vcl' not found
问题如下:rn 1、[Fatal Error] TB97_d6.dpk(31): Required package 'vcl' not <em>found</em>rn 查找vcl.dcp在e:\borland\delphi6\lib\vcl.dcprn 控件安装路径为 e:\mount\rn 以往从没有碰到此种情况,还有安装的时候老是提示找不到包名.res文件,但是此文件丰在!rnrn 2、
[Fatal Error] Required package 'tee' not found,怎么解决?
在delphi中新建一个工程,启动时提示[Fatal Error] Required package 'tee' not <em>found</em>?rn不知道为什么,怎么解决?
ChatRoomClient\ChatRoomClientDlg.cpp(284) : fatal error C1004: unexpected end of file found
#include "stdafx.h"rn#include "ChatRoomClient.h"rn#include "ChatRoomClientDlg.h"rnrn#ifdef _DEBUGrn#define new DEBUG_NEWrn#undef THIS_FILErnstatic char THIS_FILE[] = __FILE__;rn#endifrnrn/////////////////////////////////////////////////////////////////////////////rn// CAboutDlg dialog used for App Aboutrnrn<em>class</em> CAboutDlg : public CDialogrnrnpublic:rn CAboutDlg();rnrn// Dialog Datarn //AFX_DATA(CAboutDlg)rn enum IDD = IDD_ABOUTBOX ;rn //AFX_DATArnrn // ClassWizard generated virtual function overridesrn //AFX_VIRTUAL(CAboutDlg)rn protected:rn virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV supportrn //AFX_VIRTUALrnrn// Implementationrnprotected:rn //AFX_MSG(CAboutDlg)rn //AFX_MSGrn DECLARE_MESSAGE_MAP()rn;rnrnCAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)rnrn //AFX_DATA_INIT(CAboutDlg)rn //AFX_DATA_INITrnrnrnvoid CAboutDlg::DoDataExchange(CDataExchange* pDX)rnrn CDialog::DoDataExchange(pDX);rn //AFX_DATA_MAP(CAboutDlg)rn //AFX_DATA_MAPrnrnrnBEGIN_MESSAGE_MAP(CAboutDlg, CDialog)rn //AFX_MSG_MAP(CAboutDlg)rn // No message handlersrn //AFX_MSG_MAPrnEND_MESSAGE_MAP()rnrn/////////////////////////////////////////////////////////////////////////////rn// CChatRoomClientDlg dialogrnrnCChatRoomClientDlg::CChatRoomClientDlg(CClientSocket *tmp,CWnd* pParent /*=NULL*/)rn : CDialog(CChatRoomClientDlg::IDD, pParent)rnrn //AFX_DATA_INIT(CChatRoomClientDlg)rn m_IDC_EDIT_MESSAGE = _T("");rn m_SL = FALSE;rn //AFX_DATA_INITrn // Note that LoadIcon does not require a subsequent DestroyIcon in Win32rn m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);rn myServerSocket=tmp;rnrnrnvoid CChatRoomClientDlg::DoDataExchange(CDataExchange* pDX)rnrn CDialog::DoDataExchange(pDX);rn //AFX_DATA_MAP(CChatRoomClientDlg)rn DDX_Control(pDX, IDC_USER, m_USER);rn DDX_Control(pDX, IDC_STATIC_NIKENAME, m_STATIC_NIKENAME_CONTROL);rn DDX_Control(pDX, IDC_LIST_CHATBOX, m_IDC_LIST_CHATBOX_CONTROL);rn DDX_Text(pDX, IDC_EDIT_MESSAGE, m_IDC_EDIT_MESSAGE);rn DDX_Check(pDX, IDC_CHECK1, m_SL);rn //AFX_DATA_MAPrnrnrnBEGIN_MESSAGE_MAP(CChatRoomClientDlg, CDialog)rn //AFX_MSG_MAP(CChatRoomClientDlg)rn ON_WM_SYSCOMMAND()rn ON_WM_PAINT()rn ON_WM_QUERYDRAGICON()rn ON_BN_CLICKED(IDC_BUTTON_SEND, OnButtonSend)rn ON_BN_CLICKED(IDC_BUTTON1, OnClear)rn ON_EN_CHANGE(IDC_EDIT_MESSAGE, OnChangeEditMessage)rn ON_BN_CLICKED(IDOK, OnButton2)rn //AFX_MSG_MAPrnEND_MESSAGE_MAP()rnrn/////////////////////////////////////////////////////////////////////////////rn// CChatRoomClientDlg message handlersrnrnBOOL CChatRoomClientDlg::OnInitDialog()rnrn CDialog::OnInitDialog();rnrn // Add "About..." menu item to system menu.rnrn // IDM_ABOUTBOX must be in the system command range.rn ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);rn ASSERT(IDM_ABOUTBOX < 0xF000);rnrn CMenu* pSysMenu = GetSystemMenu(FALSE);rn if (pSysMenu != NULL)rn rn CString strAboutMenu;rn strAboutMenu.LoadString(IDS_ABOUTBOX);rn if (!strAboutMenu.IsEmpty())rn rn pSysMenu->AppendMenu(MF_SEPARATOR);rn pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);rn rn rnrn // Set the icon for this dialog. The framework does this automaticallyrn // when the application's main window is not a dialogrn SetIcon(m_hIcon, TRUE); // Set big iconrn SetIcon(m_hIcon, FALSE); // Set small iconrn m_STATIC_NIKENAME_CONTROL.SetWindowText(myServerSocket->NikeName);rn // TODO: Add extra initialization herern rn return TRUE; // return TRUE unless you set the focus to a controlrnrnrnvoid CChatRoomClientDlg::OnSysCommand(UINT nID, LPARAM lParam)rnrn if ((nID & 0xFFF0) == IDM_ABOUTBOX)rn rn CAboutDlg dlgAbout;rn dlgAbout.DoModal();rn rn elsern rn CDialog::OnSysCommand(nID, lParam);rn rnrnrn// If you add a minimize button to your dialog, you will need the code belowrn// to draw the icon. For MFC applications using the document/view model,rn// this is automatically done for you by the framework.rnrnvoid CChatRoomClientDlg::OnPaint() rnrn if (IsIconic())rn rn CPaintDC dc(this); // device context for paintingrnrn SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);rnrn // Center icon in client rectanglern int cxIcon = GetSystemMetrics(SM_CXICON);rn int cyIcon = GetSystemMetrics(SM_CYICON);rn CRect rect;rn GetClientRect(&rect);rn int x = (rect.Width() - cxIcon + 1) / 2;rn int y = (rect.Height() - cyIcon + 1) / 2;rnrn // Draw the iconrn dc.DrawIcon(x, y, m_hIcon);rn rn elsern rn CDialog::OnPaint();rn rnrnrn// The system calls this to obtain the cursor to display while the user dragsrn// the minimized window.rnHCURSOR CChatRoomClientDlg::OnQueryDragIcon()rnrn return (HCURSOR) m_hIcon;rnrnBOOL CChatRoomClientDlg::GetMessage()//显示聊天信息rnrn char buff[2000]; rn char name[20]; rn int count; rn count=myServerSocket->Receive(buff,2000); rn buff[count]=0; rn char Flag[10]; rn for(int i=0;iNikeName+": "+m_IDC_EDIT_MESSAGE;rn m_IDC_LIST_CHATBOX_CONTROL.AddString(m_IDC_EDIT_MESSAGE); rn m_IDC_EDIT_MESSAGE="PrivChat|"+to_name+"|"+m_IDC_EDIT_MESSAGE;rn n=m_IDC_EDIT_MESSAGE.GetLength();rn sprintf(message,"%s",m_IDC_EDIT_MESSAGE.GetBuffer(n));rn message[n]=0;rn rn else rn rn AfxMessageBox("没有选择私聊对象!"); rn return ; rn rn rn else rn rn m_IDC_EDIT_MESSAGE=myServerSocket->NikeName+": "+m_IDC_EDIT_MESSAGE; rn n=m_IDC_EDIT_MESSAGE.GetLength(); rn sprintf(message,"%s",m_IDC_EDIT_MESSAGE.GetBuffer(n)); rn message[n]=0; rn rn rn rn if (myServerSocket->Send(message,n+1))rn rn m_IDC_EDIT_MESSAGE="";rn UpdateData(FALSE);rn rn elsern rn AfxMessageBox("网络传输错误!!!");rn rnrnrnrnrnrnrnvoid CChatRoomClientDlg::OnButton2() rnrn // TODO: Add your control notification handler code here rn //发送断开信息 rn char message2[20]; rn strcpy(message2,"CLOSEUSE|"); rn strcat(message2,myServerSocket->NikeName); rn if (myServerSocket->Send(message2,20)) rn rn rn else rn rn AfxMessageBox("网络传输错误!!!"); rn rn myServerSocket->Close(); rn CDialog::OnOK();rnrn
fatal error C1004: unexpected end of file found 怎么解决
#includernusing namespace std;rn//定义CPU类rn<em>class</em> CPUrnrnpublic:rn CPU(int newclock,int newl2)clock=newclock;l2=newl2;rn CPU(CPU &p);rn int getclock()return clock;rn int getl2()return l2;rn rnprivate:rn int clock,l2;rn;rnrn//定义CPU拷贝构造函数rnCPU::CPU(CPU &p)rnrnclock=p.clock;rnl2=p.l2;rnrnrn//定义RAN类rn<em>class</em> RAMrnrnpublic:rn RAM(int newcontent,int newbitwide)content=newcontent;bitwide=newbitwide;rn RAM(RAM &p);rn int getcontent()return content;rn int getbitwide()return bitwide;rnprivate:rn int content,bitwide;rn;rnrnrn//定义RAM拷贝构造函数rnRAM::RAM(RAM &p)rnrncontent=p.content;rnbitwide=p.bitwide; rnrn//定义computer类rn<em>class</em> computerrnpublic:rn computer(CPU cpul,RAM raml):cpu(cpul),ram(raml) //定义computer构造函数rn void get()cout<<
为什么会出现:fatal error C1004: unexpected end of file found
我的源程序如下,刚开始学习C++,请大家帮忙看看。rn#include rn#include rnrnusing namespace std;rn<em>class</em> Studentrnrnpublic:rn Student(int n,string nam,char s)rn rn num=n;rn name=nam;rn sex=s;rn cout<<
提示[Fatal Error] p_main.pas(7): File not found: 'frxClass.dcu'
p_main.pas第七行中有错误,提示不到FRXCLASS.DCU,这是FASTREPORT报表组件来的,rn第七行是USES语句来的,我想知道,FASTREPORT要求的单元文件名是什么?我总是找不到??rn如何消除这样的错误
求助:NMAKE : fatal error U1052: file 'explore.mak' not found
我做的一个小软件,编译完成后以release发布可以运行,我把源程序拷贝在光盘上。后来系统重装了。现在要对软件扩充功能,所以我把源程序重新拷贝到硬盘上,然后用vc重新编译调试,可是系统提示信息为:Copyright (C) Microsoft Corp 1988-1998. All rights reserved.rnNMAKE : <em>fatal</em> <em>error</em> U1052: file 'explore.mak' not <em>found</em>rnStop.rnError executing NMAKE.rnrnexplore.exe - 1 <em>error</em>(s), 0 warning(s)rn我不知道这个问题怎么解决,不知哪位老兄能帮我?rnrn
请问 [Fatal Error] Required package 'Rave50VCL' not found 如何解决?
用windows优化大师删了次文件后,用Delphi 7 新建应用程序就出现如题错误,打开原来的程序就没问题。rn重装Delphi后问题依旧,操作系统的是XP。rn在线等,解决后马上给分,谢谢!rn
delphi 7报[Fatal Error] Required package 'fc4000v7' not found
delphi 7中,编译时总是报[Fatal Error] Required package 'fc4000v7' not <em>found</em>,不知道是怎么回事.有哪位也遇到过此问题的,如何解决的,谢谢.rn
C++编译时出现fatal error C1004: unexpected end of file found
#includern#includern#includern#includernstruct goods_listrnrn int id; /*商品条形码编号*/rn char name[30]; /*商品名称*/ rn double price; /*商品价格*/rn int number; /*商品的数量*/rn char produce[30]; /*生产商*/rn char date[30]; /*生产日期*/rn; rn rn rn void add_goods(); /*函数声明*/rn void search_goods(); rn void amend_goods();rn void delete_goods();rn void type_goods();rn void exit_program();rn void menu();rn void initialization();rnrn int main(void)rnrn printf("\t\t\t☆☆☆☆☆☆☆☆☆☆【欢迎进入超市商品信息管理系统】☆☆☆☆☆☆☆☆☆☆\n");rn printf("\t\t\t按任意键继续\n");rn getch();rn system("cls");rn menu();rn initialization();rn menu();rn return 0;rnrn rn rnrnrnrn/*初始化*/rn void initialization()rn rn FILE *fp;rn struct goods_list i=1,"东莞米粉",8.8,1000,"东莞","2010年6月1日";rn if((fp=fopen("goods_list.txt","w"))==NULL)rn rn printf("\t\t\t打开文件出现错误,请您重试");rn exit(0);rn rn fwrite(&i,sizeof(struct goods_list),1,fp);rn fclose(fp);rn rnrn/*主界面菜单即是选择功能菜单*/rn void menu()rn rn int choice;rn printf("系统提供的服务如下:1:录入新物品信息\n2:查询系统物品信息\n 3:修改系统物品信息\n 4:删除系统物品信息\n 5:打印所需物品信息\n 6:退出\n");rn printf("请输入您要选择的菜单:");rn scanf("%d",&choice);rn switch(choice)rnrn case 1:rn add_goods();rn break;rn case 2:rn search_goods();rn break;rn case 3:rn amend_goods();rn break;rn case 4:rn delete_goods();rn break;rn case 5:rn type_goods();rn break;rnrn case 6: rn exit_program();rn break;rn rn default:rn printf("\t\t\t输入无效,请您重新输入");rn getch();rn system("cls");rn menu();rnrnrn rn rn rnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrn rnrn/*录入新物品信息*/rnrnint panduanID(int id) /*判断所输条形码编号是否已存在*/rnFILE *fp; ;rnstruct goods_list i;rnrnif((fp=fopen("goods_list.txt","r"))==NULL)rnrnrnprintf("\t\t\t打开文件出现错误!请您重试");rnrnexit(0);rnrnrnfread(&i,sizeof(struct goods_list),1,fp);rnrnwhile(!feof(fp))rnrnrnif(i.id==id)rnrnrnrnfclose(fp);rnrnreturn 1;rnrnbreak;rnrnfread(&i,sizeof(struct goods_list),1,fp);rnrnfclose(fp);rnreturn 0;rnrnvoid add()rnstruct goods_list i;rnchar choice;rnFILE *fp;rnif((fp=fopen("goods_list.txt","ab"))==NULL)rnrnprintf("\t\t\t 打开文件出现错误!请您重试");rnexit(0);rnrnlabID:rnprintf("\n\t请输入要录入新物品信息\n");rnprintf("\t\t\t 物品的条形码编号:");rnscanf("%d",&i.id);rnif(panduanID(i.id)==1)rnrnprintf("\t\t\t此条形码编号已被使用,请您重新输入");rngoto labID;rnrnprintf("\t\t\t 物品的名称:");rnscanf("%s",i.name);rnrnprintf("\t\t\t 物品的价格:");rnscanf("%f",&i.price);rnrnprintf("\t\t\t 物品的数量:");rnscanf("%d,&i.number");rnrnprintf("\t\t\t 物品的产地:");rnscanf("%s",i.produce);rnrnprintf("\t\t\t 物品的生产日期:");rnscanf("%s",i.date);rnrnfwrite(&i,sizeof(struct goods_list),1,fp);rnfclose(fp);rnprintf("\t\t\t\t\t\t 物品信息录入成功!!!\n");rnrnprintf("\n您想继续添加吗?(Y/N)");rnrnscanf("%c",&choice);rnif(choice=='Y')rnadd();rnrnelse system("cls");rn menu();rnrnrnrnrnrnrnrnrnrn/*查询系统物品信息*/rnrnvoid search()rn FILE *fp;rn int fID;rn char choice;rn struct goods_list i;rnrnif((fp=fopen("goods_list.txt","r"))==NULL)rnrnprintf("打开文件错误!请您重试");rnexit(0);rnrnrnczID:rnprintf("\t\t\t 请输入要查询的物品的条形码编号");rnscanf("%d",&fID);rnscanf("%d",&fID);rnrnfread(&i,sizeof(struct goods_list),1,fp);rnwhile(!feof(fp))rnrnif(i.id==fID)rnprintf("\t\t◇◇◇◇◇◇◇◇◇◇物品信息◇◇◇◇◇◇◇◇◇◇");rn printf("\t\t物品的条形码编号:%4d\n",i.id);rnrnprintf("\t\t物品名称:%4d\n",i.name);rnrnprintf("\t\t-----------------------------------------");rnrnprintf("\t\t物品价格:%4d\n",i.price);rnrnprintf("\t\t-----------------------------------------");rnrnprintf("\t\t物品数量:%4d\n",i.number);rnrnprintf("\t\t-----------------------------------------");rnrnprintf("\t\t生产厂家:%4d\n",i.produce);rnrnprintf("\t\t-----------------------------------------");rnrnprintf("\t\t生产日期:%4d\n",i.date);rnrnprintf("\t\t-----------------------------------------");rnrnprintf("\t\t你想继续查询吗?(Y/N)");rnrnscanf("%c",&choice);rnrnif(choice=='Y')rnrn search();rnrnelse system("cls");rn menu();rnrnfread(&i,sizeof(struct goods_list),1,fp);rnrn fclose(fp);rnprintf("\t\t\t输入的条形码编号不存在,请您重新输入");rnrngoto fID;rnrn
fatal error LNK1169: one or more multiply defined symbols found
最近开始做数据结构方面的编程,简单的问题,却出现LINK方面的问题。rn如果把main()里面的code放到LinkList.cpp里面去的话,编译是没问题的。rn但是单独拿出来,再编译的话,就会出现<em>fatal</em> <em>error</em> LNK1169: one or more multiply defined symbols <em>found</em>rnrn特来请教高人,先答出者,马上送20分。rnrn//LinkList.h文件:rnrntypedef int ElemType;rn#define OK 1rnrn//Á´±í½Óµã½á¹¹Ì嶨Òå [data *next]rn// --------------rn// |data | *next|rn// --------------rntypedef struct LNode rnrn ElemType data;rn struct LNode *next;rnLNode, *pLinkList;rnrn//Á´±íÀà½Ó¿Ú¶¨Òårn<em>class</em> LinkList rnrnpublic:rn LinkList();rn ~LinkList();rn bool InitList();rn bool DestroyList();rn bool ClearList();rn bool IsEmpty();rn int GetLength();rnrn int LocateElem(int elem);rnrn bool SetNodeData(int position, ElemType newData);rn bool GetNodeData(int position, ElemType &data);rn bool GetNode(int position, LNode **node);rnrn bool InsertNode(int beforeWhich, ElemType data);rn bool DeleteNode(int position);rnprivate:rn pLinkList m_pList;rn int m_length;rn;rnrnrnrn//LinkList.cpprn#include rn#include "LinkList.h"rnrnLinkList::LinkList()rnrn m_pList=NULL;rn m_length=0;rnrnrn//Ïú»ÙÁ´±írnbool LinkList::DestroyList()rnrn if(!ClearList())rn rn return false;rn rnrn delete m_pList;rnrn return true;rnrnrnLinkList::~LinkList()rnrn if(!DestroyList())rn rn DestroyList();rn rnrnrnrn//½«LÖØÖÃΪ¿Õ±í£¬Ç°ÌáÊÇÏßÐÔ±íLÒÑ´æÔÚrnbool LinkList::ClearList()rnrn if (m_pList==NULL)rn rn return false;rn rnrn LNode *pTemp=NULL;rn while(m_pList->next!=NULL)rn rn pTemp=m_pList->next;//pTempÖ¸ÏòµÚÒ»¸ö½Úµãrn m_pList->next=pTemp->next;rn delete pTemp;rn rnrn m_pList->next=NULL;rn m_length=0;rnrn return OK;rnrnrnrn//³õʼ»¯£¬·ÖÅäÒ»¸öÍ·½Úµãrnbool LinkList::InitList()rnrn m_pList=new LNode;rn if(m_pList==NULL)rn return false;rnrn m_pList->next=NULL;rnrn return true;rnrnrn//ÅжÏÁ´±íÊÇ·ñΪ¿Õ£¬ÊÇ¿ÕÔò·µ»Øtrue£¬·ñÔò·µ»Øfalsernbool LinkList::IsEmpty()rnrn if(m_pList->next==NULL)rn rn return true;rn rn elsern rn return false;rn rnrnrn//·µ»ØÁ´±íÖе±Ç°½ÚµãÊýrnint LinkList::GetLength()rnrn return m_length;rnrnrn//½«positionÖ¸¶¨µÄ½ÚµãÄÚµÄÊý¾ÝÉèÖÃΪnewDatarn//µÚ1¸öÓÐЧ½ÚµãµÄpostionΪ1rnbool LinkList::SetNodeData(int position, ElemType newData)rnrn LNode *pTemp=NULL;rnrn if(!(GetNode(position,&pTemp)))rn rn return false;rn rnrn pTemp->data=newData;rnrn return true;rnrnrn//µÃµ½Ö¸¶¨Î»ÖýڵãµÄÖ¸Õërnbool LinkList::GetNode(int position, LNode **node)rnrn LNode *pTemp=m_pList;rn int curPos=0;rnrn if (positionm_length)rn rn return false;rn rnrn while (pTemp!=NULL)rn rn curPos++;rn if(curPos==position)rn break;rn pTemp=pTemp->next;rn rnrn if(curPos!=position)rn rn return false;rn rnrn *node=pTemp;rnrn return true;rnrnrn//»ñÈ¡position´¦µÄdatarnbool LinkList::GetNodeData(int position, ElemType &data)rnrn LNode *pTemp=m_pList;rn int curPos=0;rnrn if(positionm_length)rn return false;rnrn while(pTemp!=NULL)rn rn if(curPos==position)rn break;rn pTemp=pTemp->next;rn rnrn if(curPos!=position)rn rn return false;rn rnrn data=pTemp->data;rnrn return true;rnrnrn//ÔÚÁ´±íÖвåÈëÒ»¸ö½Úµãrn//нڵã²åÈëÔÚbeforeWhich֮ǰrn//beforeWhichÈ¡ÖµÔÚ(1,length+1)Ö®¼ärnbool LinkList::InsertNode(int beforeWhich, ElemType data)rnrn LNode *pTemp=NULL;rn rn if(beforeWhichm_length+1)rn rn return false;rn rnrn if(!(GetNode(beforeWhich-1, &pTemp)))rn rn return false;rn rnrn LNode *newNode=new LNode;rn newNode->data=data;rn newNode->next=pTemp->next;rnrn pTemp->next=newNode;rnrn m_length++;rnrn return true;rnrnrnrn//main()函数:rn#include rn#include "LinkList.cpp"rnrnint main()rnrn LinkList p;rn p.InitList();rn p.InsertNode(1,100);rnrn return 1;rn
编译时提示“[Fatal Error] Salary.dpr(9): File not found: 'crypt.dcu'”。
编译时提示“[Fatal Error] Salary.dpr(9): File not <em>found</em>: 'crypt.dcu'”。rn请问如何解决?
[Fatal Error] Project1.dpr(1): File not found: 'System.pas'如何解决?
奇怪,可我查看了的确有“system.pas"的文件,并且我已在Library Path设置$(DELPHI)\Lib,恳请各位高手帮忙?另外我在装删除某一控件时,发现竟然Library Path中所有路径被清空,幸好我有备份,请问Library Path中的设置保存在哪个文件中?
RAD2010_V3615破解文件下载
RAD2010_V3615破解文件,已亲自试过,可用. 相关下载链接:[url=//download.csdn.net/download/chenyu1280/2463973?utm_source=bbsseo]//download.csdn.net/download/chenyu1280/2463973?utm_source=bbsseo[/url]
S3C2440详细中文资料下载
S3C2440详细的中文资料,包含S3C2440各个资源的详细介绍…… 相关下载链接:[url=//download.csdn.net/download/xingshen1234/2579718?utm_source=bbsseo]//download.csdn.net/download/xingshen1234/2579718?utm_source=bbsseo[/url]
MYSQL更新密码的不同方式下载
对MYSQL的密码查改。有几种方式。都是很使用的 相关下载链接:[url=//download.csdn.net/download/zombieboy/3828890?utm_source=bbsseo]//download.csdn.net/download/zombieboy/3828890?utm_source=bbsseo[/url]
相关热词 c# gdi 占用内存 c#中遍历字典 c#控制台模拟dos c# 斜率 最小二乘法 c#进程延迟 c# mysql完整项目 c# grid 总行数 c# web浏览器插件 c# xml 生成xsd c# 操作sql视图
我们是很有底线的