Can't i use operator overriding as global function?

I used operator overriding ‘&’ as global function.

it worked so well in Editor and pc.

but A problem appear in packaging.

A Error was about operator overriding ‘&’ as global function.

(operator overriding as class member function was fine.)

Can’t i use operator overriding as global function?
(for mobile and for packaging)

here is Error Log in packaging.

MainFrameActions: 패키징 (안드로이드 (ETC1)): UnrealBuildTool: 53 warnings generated.
MainFrameActions: 패키징 (안드로이드 (ETC1)): UnrealBuildTool: [6/6] clang++.exe
MainFrameActions: 패키징 (안드로이드 (ETC1)): UnrealBuildTool: C:///android-ndk-r11c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin\ld: error: Client/Client.generated.cpp-armv7-es2.o: multiple definition of ‘operator&(int, FOint32 const&)’
MainFrameActions: 패키징 (안드로이드 (ETC1)): UnrealBuildTool: C:///android-ndk-r11c/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/lib/gcc/arm-linux-androideabi/4.9/…/…/…/…/arm-linux-androideabi/bin\ld: Client/Module.Client.cpp-armv7-es2.o: previous definition here


Could you please provide me with the exact reproduction steps to reproduce this issue? I’d also like to see the full error output logs. Please upload the logs as a .txt file.


Hey 1205,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!

sorry about late anwer.
this issue was about my project’s function, not about UE4.

I resolve this problem.
so thank you your answer.