久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Eclipse 中的編譯器標志

Compiler flags in Eclipse(Eclipse 中的編譯器標志)
本文介紹了Eclipse 中的編譯器標志的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我的構建要求我發出以下命令:

My build requires that I issue the following commands:

$ g++ sniff.cpp -o sniff -lcrafter 

但是,在我的 Eclipse 構建中,編譯器得到的只是:

However, in my Eclipse build, all the complier gets is:

g++  -o "sniffer_crafter"  ./src/sniffer_crafter.o 

收到這些命令后,它抱怨我有一個未定義的對庫 Crafter 的引用.

After getting these commands it complains that I have an undefined reference to the library Crafter.

如何使用 Eclipse 解決此鏈接問題?我見過其他人對類似問題的回答,但他們似乎沒有解決 Eclipse 的當前布局.我正在使用最新版本的 Eclipse Kepler.

How can I resolve this linking issue using Eclipse? I have seen others answers to similar questions, but they don't seem to address Eclipse's current layout. I'm using the most recent edition of Eclipse Kepler.

推薦答案

包含庫:-

右鍵項目 -->

  1. 轉到屬性
  2. 然后轉到 --> C/C++ Build --> 設置

在那里你會找到鏈接器和子類型庫.

There you will find Linker and sub type Libraries.

在右側的庫搜索路徑中添加庫路徑(您的 .so 文件所在的位置)并在庫中提供庫名稱

Add the library path in Library Search Path on right hand side (where your .so file is located) and give the lib name in libraries

對于 libcrafter.so 路徑 -->/opt/myLib/lib

for libcrafter.so path --> /opt/myLib/lib

將路徑指定為/opt/myLib/lib和庫名稱作為工匠

give path as /opt/myLib/lib and library name as crafter

這篇關于Eclipse 中的編譯器標志的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How can I make a horizontal sliding calendar in android eclipse?(如何在 android eclipse 中制作水平滑動日歷?)
Eclipse CDT not building project on header file change(Eclipse CDT 沒有在頭文件更改時構建項目)
Eclipse C++ including header file from my source folder(Eclipse C++ 包括來自我的源文件夾的頭文件)
Eclipse C/C++ (CDT) import files into project - header file not found - include path(Eclipse C/C++ (CDT) 將文件導入項目 - 找不到頭文件 - 包含路徑)
How to generate JNI header file in Eclipse(如何在 Eclipse 中生成 JNI 頭文件)
no ocijdbc9 in java.library.path(java.library.path 中沒有 ocijdbc9)
主站蜘蛛池模板: 99精品一区二区三区 | 国产精品福利在线 | 紧缚调教一区二区三区视频 | 天天操网 | 久久成人精品视频 | av黄色在线 | av免费网站在线观看 | 欧美成人精品在线 | 国产精品欧美一区二区 | 亚洲欧美中文日韩在线v日本 | av一区在线 | 成人伊人网| 亚洲午夜电影 | 91在线精品秘密一区二区 | 天天拍天天射 | 国内久久精品 | 午夜一区二区三区视频 | 97caoporn国产免费人人 | 精品免费国产一区二区三区 | 国产精品久久久久久婷婷天堂 | 在线观看涩涩视频 | 99久久国产精 | 欧美精品久久久久久 | 日韩欧美综合在线视频 | 北条麻妃一区二区三区在线视频 | 男人的天堂在线视频 | 欧美日韩久久 | 午夜一级做a爰片久久毛片 精品综合 | 欧美日韩国产在线观看 | 久久国产精彩视频 | 范冰冰一级做a爰片久久毛片 | 国产精品免费视频一区 | 成人国产精品免费观看视频 | 日韩一二区 | 欧美日韩三级 | h视频在线免费 | 日韩在线观看一区 | 欧美日韩一区二区在线观看 | 激情一区 | 成人国产精品久久 | 欧美二区三区 |