詳細!交叉編譯時 note: the mangling of 'va_list' has changed in GCC 4.4解決辦法


 

 

  為什么要在標題前面加了詳細兩個字,就是為了吸引看文章的你還有寫文章的我這種小白,我是從坑里面爬出來了。

  

  廢話少說....

    問題就是這樣子了,至於解決辦法,在網上搜索了很久,大多數以一段英文作為解決辦法,...

    I think that the warning is accurate; the mangling of va_list has indeed
  changed on ARM in GCC 4.4 in order to conform to the ARM ABI specifications.
  There is an option to turn off warnings about PSABI issues; -Wno-psabi.  I
  think that option (if not some stronger option) should be used.

  

  還找到了這句話的出處,nnd的老外https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42748

  看了半天終於弄懂了是怎么回事,可是你倒是跟我說-Wno-psabi是什么怎么用啊。

  后來想了半天,前面不是說這是個option嗎,那就在編譯的時候加個選項嘛,所以...

  

  :#arm-linux-g++ -Wno-psabi  hello.c -o hello  `pkg-config  --cflags --libs opencv`   

  

  解決了不再出現警告了。

 

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM