objetive c-NSAutoreleasePoolalloc' undeclared

问题描述

NSAutoreleasePoolalloc' undeclared

#import

int main(int arvc, char* argv[]){

NSAutoreleasePool*pool=[[NSAutoreleasePoolalloc]init];
NSLog(@"Hello World!");

[pooldrain];
return 0;

}

文件名为main.m,执行gcc -o main main.m -I/GNUstep/System/Library/Headers/ -fconstant-string-class=NSConstantString -L/GNUstep/System/Library/Libraries -lobjc -lgnustep-base 的时候提示error:'NSAutoreleasePoolalloc' undeclared (first use in this function。本来都能顺利执行了,但是后来重新执行一次就出现如上问题。没改什么东西。求各位指点。

时间: 2024-08-30 03:49:19

objetive c-NSAutoreleasePoolalloc' undeclared的相关文章

编译-'printk' undeclared应该如何解决??

问题描述 'printk' undeclared应该如何解决?? #include <linux/kernel.h> #define __KERNEL__ ... void (*pFunc)(void *); printk("pFunc:[%pf]n",pFunc); //KERN_EMERG 加入了头文件和宏定义,编译时仍然出现printk' undeclared (first use this function)这样的报错 试了百度的各种方法都没用... 据说这个函数工

C编译时`true&amp;#39;+undeclared+(first+use+in+this+function)

原文:http://liuzhigong.blog.163.com/blog/static/178272375201121664244437/ 在编译C语言时有时会遇到这样的错误提示: `true' undeclared (first use in this function) or `false' undeclared (first use in this function) 就是说 bool, true, false 都是undeclared,原因很简单,因为真正的C中没有这些关键字,c和早

error: &amp;#39;FALSE&amp;#39; undeclared (first use in this function)

在gcc中编译出现错误提示:error: 'FALSE' undeclared (first use in this function) 解决方法: #ifndef FALSE #define FALSE (0) #endif #ifndef TRUE #define TRUE (!FALSE) #endif

error C2065: &amp;amp;#39;exp&amp;amp;#39; : undeclared identifier

问题描述 error C2065: 'exp' : undeclared identifier 代码如下: CFnn::CFnn() { fp=fopen("www.txt","w+"); ddd=0; Error=0.0; Input[0]=0; Input[1]=0; Output=0; m_Bool=false; InitNet(); } CFnn::~CFnn() { fclose(fp); } //模糊神经网络控制的主函数 double CFnn::Con

error: &amp;#39;ENOSYS&amp;#39; undeclared (first use in this function)

/************************************************************************ * error: 'ENOSYS' undeclared (first use in this function) * 说明: * 编译mt7601u驱动的时候遇到的编译错误. * * 2017-9-15 深圳 龙华樟坑村 曾剑锋 ************************************************************

php 解决MySQL插入数据出现 Incorrect string value: &amp;amp;#39;\xF0\x9F\x92\x8BTi...&amp;amp;#39;错误

在项目中向MySQL插入数据时,发现数据插入不完整,通过调试,发现插入语句也没什么特殊的错误.但是就是差不进去,于是就打开mysqli错误的调试 $ret = mysqli_query($this->conn, $sql) or die(mysqli_error($this->conn)); 结果弹出如下错误信息: Incorrect string value: '\xF0\x9F\x92\x8BTi...' 有错误信息就好办了,结果上网一查结果是:mysql编码格式utf-8格式,不支持带四

apache2.0.39 php4.2.3在windowsXP下模块方式搭建.

apache|window WindowsXP+Apache2.0.39+php-4.2.3-dev源文件下载: 1. http://www.apache.org/dist/httpd/binaries/win32/ 下面的 apache_2.0.39-win32-x86-no_ssl.msi 或者apache_2.0.39-win32-x86-no_ssl.exe (A full setup package (.exe) containing the Win9x/WinNT Microsoft

Dreamweaver MX 2004视频宝典教程(39)

dreamweaver|教程 第 39 集:插入图片 课程目标:学会如何在Dreamweaver中插入图像并设置属性的方法. 课程要点:Dreamweaver中插入图片的方法.<img>标记属性常见的有src, width, height, lowsrc, alt, border, vspace, hspace, align等,这些属性可以在Dreamweaver属性面板中进行可视化设置. [全屏观看] | [下载视频] | 本教程尺寸为 800 * 600 建议下载观看,以达到最佳观看效果

SEO总结:百度K站39天后放出且有排名

年前一站,被百度在1月12时K掉了,site首页都找不到了,之至后还以为会等很久,才会放出来呢,没有想到的是,在本月20号就放出来了. 查看了mytool上的快照记录,前后总共也就是39天的时候,百度就把它给放出来了.可能很多朋友,感觉都不大可能,百度怎么会这么快就放出一个K掉的站呢?下面说说在这网站被百度K掉这段时间里,我所做的事. 1.在查询网站被百度K掉后,当时我就把百度蜘蛛给禁止了,但是禁止的时间不长,只禁止一个星期多点这样子.禁止太久容易让百度产生,这站可能是永久性不要百度抓取的.反而