Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

failed to compile reason: #23

Open
ArshamEbr opened this issue Nov 23, 2023 · 3 comments
Open

failed to compile reason: #23

ArshamEbr opened this issue Nov 23, 2023 · 3 comments

Comments

@ArshamEbr
Copy link

[901/902] Linking CXX executable deauther.elf
FAILED: deauther.elf
cmd.exe /C "cd . && C:\Espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address @CMakeFiles\deauther.elf.rsp -o deauther.elf && cd ."
c:/espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:/Espressif/frameworks/esp-idf-v4.1.4/components/esp_wifi/lib/esp32/libnet80211.a(ieee80211_output.o): in function ieee80211_raw_frame_sanity_check': (.text.ieee80211_raw_frame_sanity_check+0x5c): multiple definition of ieee80211_raw_frame_sanity_check'; esp-idf/main/libmain.a(main.cpp.obj):c:\users\arsham\desktop\esp32\esp32-deauther-master\build/../main/main.cpp:38: first defined here
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

@jakydibe
Copy link

u don't have to compile with idf.py... use make

@LeoNiik
Copy link

LeoNiik commented Dec 11, 2023

thanks, it worked!

@jakydibe
Copy link

add this line to you CMakeList inside main: target_link_libraries(${COMPONENT_LIB} -Wl,-zmuldefs)

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

No branches or pull requests

3 participants