当前位置:网站首页>[error record] no matching function for call to 'cacheflush' cacheflush();)
[error record] no matching function for call to 'cacheflush' cacheflush();)
2022-07-04 08:40:00 【Programmer community】
One 、 Error message
Use Visual Studio 2019 compile Android Platform NDK project ; Compile times error ;
Error message :
1>./native/native.cpp(428,14): warning G0C39A92D: 'SearchCode' has C-linkage specified, but returns user-defined type 'std::string' (aka 'basic_string<char>') which is incompatible with C [-Wreturn-type-c-linkage]1> std::string SearchCode(unsigned char* data,unsigned size){
1> ^1>./native/native.cpp(658,5): error GEF7559A7: no matching function for call to 'cacheflush'1> cacheflush();1> ^~~~~~~~~~1>D:/001_Develop/001_SDK/Sdk/ndk/android-ndk-r14b/build//../platforms/android-19/arch-arm/usr/include\unistd.h:183:12: note: candidate function not viable: requires 3 arguments, but 0 were provided1>extern int cacheflush(long start, long end, long flags);1> ^1>1 warning and 1 error generated.1>make: *** [obj/local/armeabi-v7a/objs/native/native/native.o] Error 11>D:\001_Develop\017_Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(46,5): error MSB3073: command “"D:\001_Develop\001_SDK\Sdk\ndk\android-ndk-r14b\build\ndk-build.cmd" NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk NDK_APPLICATION_MK=Application.mk ” Exited , The code is 2.1> The build project is complete “magic.vcxproj” The operation of - Failure .========== Generate : success 0 individual , Failure 1 individual , newest 0 individual , skip 0 individual ==========
Two 、 Error message
Study the error message carefully , Find out D:/001_Develop/001_SDK/Sdk/ndk/android-ndk-r14b/build//../platforms/android-19/arch-arm/usr/include\unistd.h:183:12: note: candidate function not viable: requires 3 arguments, but 0 were provided , The called function header file is android-19/arch-arm/usr/include\unistd.h , This is a ARM Header file for platform , The functions defined are ARM Functions of Architecture ;
stay ARM Architecturally android-19/arch-arm/usr/include/unistd.h Header file , cacheflush Function is :
extern int cacheflush(long start, long end, long flags);stay x86 The system call in the schema is invalid ;
If the target of the compilation function library or Executable file The architecture has x86 framework , You're going to report a mistake , Because this function only supports ARM framework ;
#ifndef __i386__ cacheflush(); stay Application.mk in , To declare only x86 Compile function library , Comment out armeabi-v7aarmeabi These two target architectures ;
APP_ABI := x86 #armeabi-v7a armeabiAPP_STL := gnustl_staticAPP_PLATFORM := android-19involve CPU In operation , Pay attention to the compiled Architecture , And referenced dependent Libraries ;
cacheflush The function is the refresh function in the system call CPU Cached functions , Different CPU framework , The corresponding implementation is also different ;
边栏推荐
- How to solve the problem that computers often flash
- DM8 tablespace backup and recovery
- Redis 哨兵机制
- Need help resetting PHP counters - PHP
- Webapi interview question summary 01
- Unity write word
- Codeforces Round #750 (Div. 2)(A,B,C,D,F1)
- ArcGIS应用(二十二)Arcmap加载激光雷达las格式数据
- C # implements a queue in which everything can be sorted
- Newh3c - routing protocol (RIP, OSPF)
猜你喜欢

Guanghetong's high-performance 4g/5g wireless module solution comprehensively promotes an efficient and low-carbon smart grid

How to re enable local connection when the network of laptop is disabled

A method for detecting outliers of data

FOC control
![[go basics] 2 - go basic sentences](/img/b1/961615b439d75679a3bb40a60f208d.png)
[go basics] 2 - go basic sentences

Collections in Scala

ArcGIS应用(二十二)Arcmap加载激光雷达las格式数据

根据数字显示中文汉字

Call Baidu map to display the current position

What sparks can applet container technology collide with IOT
随机推荐
Group programming ladder race - exercise set l2-002 linked list de duplication
一文了解數據异常值檢測方法
How to solve the problem that computers often flash
std::is_ union,std::is_ class,std::integral_ constant
If the array values match each other, shuffle again - PHP
Conversion of yolov5 XML dataset to VOC dataset
awk从入门到入土(11)awk getline函数详解
How can we make a monthly income of more than 10000? We media people with low income come and have a look
没有Kubernetes怎么玩Dapr?
SQL statement view SQL Server 2005 version number
ES6 summary
Take you to master the formatter of visual studio code
09 softmax regression + loss function
[Chongqing Guangdong education] National Open University spring 2019 455 logistics practice reference questions
deno debugger
Use preg_ Match extracts the string into the array between: & | people PHP
Put a lantern on the website during the Lantern Festival
Azure ad domain service (II) configure azure file share disk sharing for machines in the domain service
Collections in Scala
What if the wireless network connection of the laptop is unavailable