Skip to content
Guest Big Announcement

ld: 1 duplicate symbol for architecture arm64

Featured Replies

Can anyone help me fix this error?, Please:(
all my error:
ld: warning: directory not found for option '-F/home/phamduc612010/theos/vendor/lib/iphone/rootful'
duplicate symbol '_mainWindow' in:
    /home/phamduc612010/imgui/.theos/obj/arm64/Esp/PubgLoad.mm.7f9af399.o
    /home/phamduc612010/imgui/.theos/obj/arm64/Esp/ImGuiLoad.m.7f9af399.o
ld: 1 duplicate symbol for architecture arm64
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/home/phamduc612010/theos/makefiles/instance/library.mk:52: /home/phamduc612010/imgui/.theos/obj/arm64/kust.dylib] Error 1
make[2]: *** [/home/phamduc612010/theos/makefiles/instance/library.mk:52: /home/phamduc612010/imgui/.theos/obj/arm64/kust.dylib] Error 2
make[1]: *** [/home/phamduc612010/theos/makefiles/instance/library.mk:37: internal-library-all_] Error 2
make: *** [/home/phamduc612010/theos/makefiles/master/rules.mk:119: kust.all.tweak.variables] Error 2

my makefile:
 

export THEOS=/home/phamduc612010/theos


ARCHS = arm64

DEBUG = 0
FINALPACKAGE = 1
FOR_RELEASE = 1

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = kust


kust_FRAMEWORKS =  UIKit Foundation Security QuartzCore CoreGraphics CoreText  AVFoundation Accelerate GLKit SystemConfiguration GameController

kust_CCFLAGS = -std=c++11 -fno-rtti -fno-exceptions -DNDEBUG
kust_CFLAGS = -fobjc-arc -Wno-deprecated-declarations -Wno-unused-variable -Wno-unused-value

kust_FILES = ImGuiDrawView.mm $(wildcard Esp/*.mm)   $(wildcard Esp/*.m) $(wildcard KittyMemory/*.cpp) $(wildcard KittyMemory/*.mm) $(wildcard ImGuiMemory/*.cpp) $(wildcard ImGuiMemory/*.mm) $(wildcard img/*.m)

#kust_LIBRARIES += substrate
# GO_EASY_ON_ME = 1

include $(THEOS_MAKE_PATH)/tweak.mk

 

Thanks all!

Well if you read clearly

mainWindow is being duplicated in PubgLoad.mm and ImGuiLoad.m. delete or change name and see what happens

ld: warning: directory not found for option '-F/home/phamduc612010/theos/vendor/lib/iphone/rootful'
duplicate symbol '_mainWindow' in:
    /home/phamduc612010/imgui/.theos/obj/arm64/Esp/PubgLoad.mm.7f9af399.o
    /home/phamduc612010/imgui/.theos/obj/arm64/Esp/ImGuiLoad.m.7f9af399.o

 

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.