Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

I have error when i trying to build Darknet by vs2022 #8877

Open
kmliy901054 opened this issue Jan 2, 2024 · 1 comment
Open

I have error when i trying to build Darknet by vs2022 #8877

kmliy901054 opened this issue Jan 2, 2024 · 1 comment

Comments

@kmliy901054
Copy link

here is output:

Building started at 03:17 AM...
1>------ Build started: Project: darknet, Configuration: Release x64 ------
2>------ Build started: Project: dark, Configuration: Release x64 ------
1>getopt.obj : error LNK2005: opterr already defined in utils.obj
1>getopt.obj : error LNK2005: optind already defined in utils.obj
1>getopt.obj : error LNK2005: optopt already defined in utils.obj
1>getopt.obj : error LNK2005: getopt already defined in utils.obj
1>getopt.obj : error LNK2005: getopt_long already defined in utils.obj
1>getopt.obj : error LNK2005: getopt_long_only already defined in utils.obj
2>getopt.obj : error LNK2005: opterr already defined in utils.obj
2>getopt.obj : error LNK2005: optind already defined in utils.obj
2>getopt.obj : error LNK2005: optopt already defined in utils.obj
2>getopt.obj : error LNK2005: getopt already defined in utils.obj
2>getopt.obj : error LNK2005: getopt_long already defined in utils.obj
2>getopt.obj : error LNK2005: getopt_long_only already defined in utils.obj
2> Creating library A:/DP_learn/yolo/build/Release/darknet.lib and object A:/DP_learn/yolo/build/Release/darknet.exp
1>A:\DP_learn\yolo\build\Release\darknet.exe : fatal error LNK1169: One or more multiply defined symbols found
1>Project "darknet.vcxproj" build completed -- Failed.
2>A:\DP_learn\yolo\build\Release\darknet.dll : fatal error LNK1169: One or more multiply defined symbols found
2>Project "dark.vcxproj" build completed -- Failed.
3>------ Skipped Build: Project: PACKAGE, Configuration: Release x64 ------
3>No project was selected for building for this solution configuration.
4>------ Skipped Build: Project: INSTALL, Configuration: Release x64 ------
4>No project was selected for building for this solution configuration.
========== Build: 0 succeeded, 2 failed, 4 up-to-date, 2 skipped ==========
========== Build completed at 03:17 AM and took 00.493 seconds ==========

組建已在 上午 03:17 開始...
1>------ 已開始建置: 專案: darknet, 設定: Release x64 ------
2>------ 已開始建置: 專案: dark, 設定: Release x64 ------
1>getopt.obj : error LNK2005: opterr 已在 utils.obj 中定義過了
1>getopt.obj : error LNK2005: optind 已在 utils.obj 中定義過了
1>getopt.obj : error LNK2005: optopt 已在 utils.obj 中定義過了
1>getopt.obj : error LNK2005: getopt 已在 utils.obj 中定義過了
1>getopt.obj : error LNK2005: getopt_long 已在 utils.obj 中定義過了
1>getopt.obj : error LNK2005: getopt_long_only 已在 utils.obj 中定義過了
2>getopt.obj : error LNK2005: opterr 已在 utils.obj 中定義過了
2>getopt.obj : error LNK2005: optind 已在 utils.obj 中定義過了
2>getopt.obj : error LNK2005: optopt 已在 utils.obj 中定義過了
2>getopt.obj : error LNK2005: getopt 已在 utils.obj 中定義過了
2>getopt.obj : error LNK2005: getopt_long 已在 utils.obj 中定義過了
2>getopt.obj : error LNK2005: getopt_long_only 已在 utils.obj 中定義過了
2> 正在建立程式庫 A:/DP_learn/yolo/build/Release/darknet.lib 和物件 A:/DP_learn/yolo/build/Release/darknet.exp
1>A:\DP_learn\yolo\build\Release\darknet.exe : fatal error LNK1169: 找到有一或多個已定義的符號
1>專案 "darknet.vcxproj" 建置完成 -- 失敗。
2>A:\DP_learn\yolo\build\Release\darknet.dll : fatal error LNK1169: 找到有一或多個已定義的符號
2>專案 "dark.vcxproj" 建置完成 -- 失敗。
3>------ 已略過建置: 專案: PACKAGE, 設定: Release x64 ------
3>未針對此方案組態選取要建置的專案
4>------ 已略過建置: 專案: INSTALL, 設定: Release x64 ------
4>未針對此方案組態選取要建置的專案
========== 組建: 0 成功,2 失敗,4 為最新狀態,2 已跳過 ==========
========== 組建 已於 上午 03:17 完成並花了 00.493 秒 ==========

i have no idea about it

@stephanecharette
Copy link
Collaborator

Please use the new repo: https://github.com/hank-ai/darknet#table-of-contents

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants