求助 Eclipse + NDK error: stray '\24' in program

[size=16px][b][color=#FF0000]求助 Eclipse + NDK  error: stray ‘\24‘ in program[/color][b][/b][/b][/size]

最近在研究JNI采用Eclipse+NDKR7B搭建环境 按照网上教的步骤build 什么都配好了写了个最简单的例子,clean以后就出现该异常很是头疼;异常信息:

"Compile thumb : TestNdk <= com_example_testndk_JniClient.c

jni/com_example_testndk_JniClient.c:1: error: stray ‘\24‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘#‘ in program

jni/com_example_testndk_JniClient.c:1: error: expected ‘=‘, ‘,‘, ‘;‘, ‘asm‘ or ‘__attribute__‘ before ‘e‘

jni/com_example_testndk_JniClient.c:1: error: stray ‘\210‘ in program

jni/com_example_testndk_JniClient.c:1:6: warning: null character(s) ignored

jni/com_example_testndk_JniClient.c:1: error: stray ‘\1‘ in program

jni/com_example_testndk_JniClient.c:1:9: warning: null character(s) ignored

jni/com_example_testndk_JniClient.c:1: error: stray ‘\1‘ in program

jni/com_example_testndk_JniClient.c:1:22: warning: null character(s) ignored

jni/com_example_testndk_JniClient.c:1:29: warning: null character(s) ignored

jni/com_example_testndk_JniClient.c:1: error: stray ‘\340‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\22‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\23‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\222‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\10‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\237‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\10‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\35‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\36‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\25‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\361‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\266‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\20‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\355‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\5‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\315‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\35‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\323‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\32‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\25‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\21‘ in program

jni/com_example_testndk_JniClient.c:2:4: warning: null character(s) ignored

jni/com_example_testndk_JniClient.c:2: error: stray ‘\255‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\275‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\205‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\353‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\272‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\237‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\10‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\355‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\233‘ in program

jni/com_example_testndk_JniClient.c:2:80: error: invalid suffix "N" on integer constant

jni/com_example_testndk_JniClient.c:2: error: stray ‘\212‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\360‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\23‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\204‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\220‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\373‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\235‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\310‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\24‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\325‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\307‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\262‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\355‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\274‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\243‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\370‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\350‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\227‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\310‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\344‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\305‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\312‘ in program

jni/com_example_testndk_JniClient.c:2: error: stray ‘\303‘ in program

jni/com_example_testndk_JniClient.c:2:113: warning: null character(s) preserved in literal

jni/com_example_testndk_JniClient.c:2:113: warning: missing terminating ‘ character

jni/com_example_testndk_JniClient.c:2: error: missing terminating ‘ character

jni/com_example_testndk_JniClient.c:3: error: stray ‘\317‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\375‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\257‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\211‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\244‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\317‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\231‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\354‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\373‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\244‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\345‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘#‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\216‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\4‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\255‘ in program

jni/com_example_testndk_JniClient.c:3: error: stray ‘\321‘ in program

jni/com_example_testndk_JniClient.c:3:24: warning: null character(s) preserved in literal

jni/com_example_testndk_JniClient.c:3:24: warning: missing terminating " character

jni/com_example_testndk_JniClient.c:3: error: missing terminating " character

jni/com_example_testndk_JniClient.c:4: error: stray ‘\250‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\313‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\37‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\332‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘#‘ in program

jni/com_example_testndk_JniClient.c:4:9: error: invalid suffix "m" on integer constant

jni/com_example_testndk_JniClient.c:4: error: stray ‘\262‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\251‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\33‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\334‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\351‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\240‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\240‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\321‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\274‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\336‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\21‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\330‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\16‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\272‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\33‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\352‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\261‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\222‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\330‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\205‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\225‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\4‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\216‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\325‘ in program

jni/com_example_testndk_JniClient.c:4:44: error: invalid suffix "D" on integer constant

jni/com_example_testndk_JniClient.c:4: error: stray ‘\211‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\333‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\373‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\251‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\373‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\232‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\324‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘@‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\234‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\244‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\17‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\373‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\311‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\333‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\365‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\370‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\350‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\236‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\201‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\331‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\317‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\301‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\335‘ in program

jni/com_example_testndk_JniClient.c:4: error: stray ‘\32‘ in program

jni/com_example_testndk_JniClient.c:5: error: stray ‘\212‘ in program

jni/com_example_testndk_JniClient.c:5: error: stray ‘\31‘ in program

jni/com_example_testndk_JniClient.c:5: error: stray ‘\316‘ in program

jni/com_example_testndk_JniClient.c:5: error: stray ‘\20‘ in program

jni/com_example_testndk_JniClient.c:5: error: stray ‘\356‘ in program

jni/com_example_testndk_JniClient.c:5: error: stray ‘\274‘ in program

jni/com_example_testndk_JniClient.c:5: error: stray ‘\217‘ in program

jni/com_example_testndk_JniClient.c:5: error: stray ‘\336‘ in program

jni/com_example_testndk_JniClient.c:5: error: stray ‘\341‘ in program

jni/com_example_testndk_JniClient.c:5: error: stray ‘\350‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\276‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\1‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\231‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\372‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\373‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\236‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\376‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\273‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘`‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\33‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\1‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\336‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\262‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\341‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\342‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\24‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\17‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\322‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\214‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\230‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\211‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\307‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\323‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\224‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\316‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\1‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\360‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\313‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\237‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\177‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\226‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\242‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\235‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\17‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\353‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\206‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\361‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\351‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\366‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\7‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\336‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\301‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\25‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\372‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\333‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\347‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\213‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\242‘ in program

jni/com_example_testndk_JniClient.c:6: error: stray ‘\210‘ in program

jni/com_example_testndk_JniClient.c:7:2: warning: missing terminating " character

jni/com_example_testndk_JniClient.c:7: error: missing terminating " character

make: *** [obj/local/armeabi/objs/TestNdk/com_example_testndk_JniClient.o] Error 1

PS

1在NDK-R7B的解压包里面simple中的hello-jni例子上创建项目又没有出现该问题;

2删除jni/com_example_testndk_JniClient.c 全部的代码编译通过没问题;

3只在jni/com_example_testndk_JniClient.c 写入一句代码(敲进去的):#include <stdio.h>

仍然报出异常信息:

"Compile thumb : TestNdk <= com_example_testndk_JniClient.c

jni/com_example_testndk_JniClient.c:1: error: stray ‘\24‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘#‘ in program

jni/com_example_testndk_JniClient.c:1: error: expected ‘=‘, ‘,‘, ‘;‘, ‘asm‘ or ‘__attribute__‘ before ‘e‘

jni/com_example_testndk_JniClient.c:1: error: stray ‘\6‘ in program

jni/com_example_testndk_JniClient.c:1:6: warning: null character(s) ignored

jni/com_example_testndk_JniClient.c:1: error: stray ‘\317‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\350‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\222‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\343‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\246‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\224‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\245‘ in program

jni/com_example_testndk_JniClient.c:1: error: stray ‘\207‘ in program

make: *** [obj/local/armeabi/objs/TestNdk/com_example_testndk_JniClient.o] Error 1

请碰到这类问题的伙伴们指点一下该怎么解决,跪求谢谢了!

求助 Eclipse + NDK error: stray '\24' in program

时间: 2024-12-28 16:59:19

求助 Eclipse + NDK error: stray '\24' in program的相关文章

error: stray &#39;\377&#39; in program

cygwin编译报错:**.cpp:1:1: error: stray '\377' in program解决方法 2014-06-12 00:41 2061人阅读 评论(1) 收藏 举报 编译报错内容: [armeabi] Compile++ thumb: cocos2dcpp_shared <= HelloWorldScene.cpp jni/../../Classes/HelloWorldScene.cpp:1:1: error: stray '\377' in programjni/..

Linux 编译时出现类似error: stray &#39;\357&#39; in program的解决方法

原因: 在程序中打入了全角字符 具体分析产生原因: 在编程中,由于打字的快速,按下ctrl键后紧接着按下了space键,由于按下两个键的间隙比较短,导致系统误检测到ctrl + space信号,将输入法从半角切换到全角. 解决方法: 只需将定位的错误行号对应的代码删掉重新输入即可. Linux 编译时出现类似error: stray '\357' in program的解决方法

error: stray ‘\342’ in program

如果遇到下面的问题 error: stray '\342' in program error: stray '\200' in program error: stray '\235' in program error: stray '\342' in program error: stray '\200' in program error: stray '\230' in program error: stray '\342' in program error: stray '\200' in

error: stray &#39;\302&#39; in program

问:这类错误是什么原因:error: stray '\302' in program? 答:此种错误,可能程序本身没有语法错误,应该是每一行的空格的编码不对,只需要将程序出错行前面的空格删掉,然后让程序再退回即可解决问题! error: stray '\302' in program

error: stray &#39;\357&#39; in program编程出错的总结

错误: 编译报错:error: stray '\357' in program 原因:在程序中打入了全角字符 具体分析产生原因: 在编程中,由于打字的快速,按下ctrl键后紧接着按下了space键,由于按下两个键的间隙比较短,导致系统误检测到ctrl + space信号,将输入法从半角切换到全角. 问题大多出现在复制粘贴代码之后,所以解决方法就是重新将代码手打出来,重新打一遍即可. error: stray '\357' in program编程出错的总结 原文地址:https://www.cn

error:stray&#39;\243&#39;in program

error:stray'\243'in program 问题:       C原因在编译时出现如下错误 error:stray'\243'in program 错误原因: 有非标ascII的字符,字符一般都是全角符号什么的比如{ } 和{} ,和, error:stray'\243'in program

C-Free中出现错误stray &#39;\161&#39; in program

运行程序后出现如下报错: 这是因为代码中有不合法的空格,从网上直接复制代码到C-Free时就经常会出现这种情况,把不合法的空格删除即可. C-Free中出现错误stray '\161' in program

android eclipse NDK 测试hello-jni ,HelloJni/jni/hello-jni.c提示“Method &#39;NewStringUTF&#39; could not be resolved”

如图1 图1 问题: 方法 NewStringUTF 不能被 eclipse定位(鼠标放在该方法上,ctrl + 左键,跳出一些包含 该方法的文件,看图2) 解决思路:(具体思路看下文,参考中“推荐”) 参考网上其他人的解决方案,基本2类: 1. 去警告-> 看下图3: 2. 找到错误方法所在文件位置(图3),包含进 项目属性(propertities -> C/C++ General -> Paths and Sysmbols -> include -> add ->

adt eclipse 配置问题 error:could not open ...jvm.cfg

在安装adt eclipse后,打开eclipse提示error:could not open eclipse\jre\lib\amd64\jvm.cfg 据网上显示原因应该是以前安装过java,然后错误什么的..甲骨文也太那啥了,好像身边装java的人都遇到过大大小小的各种配置问题. 我的情况是,以前安装过eclipse,然后现在为android开发,要安装adt,在官网直接下载了个已经装好的eclipse版本,打开后显示error:could not open ...jvm.cfg. 解决办