# Undefined Symbol Linker Error when Cross Compiling to Linux

**URL:** <https://forums.unrealengine.com/t/undefined-symbol-linker-error-when-cross-compiling-to-linux/1159922>\
**Category:** Platform & Builds\
**Tags:** linker, cross-compiling, Linux, unreal-engine, question\
**Created:** [May 9, 2023, 9:00am UTC](https://forums.unrealengine.com/t/undefined-symbol-linker-error-when-cross-compiling-to-linux/1159922 "2023-05-09T09:00:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeetsterr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yeetsterr/32/625614_2.png) [@Yeetsterr](https://forums.unrealengine.com/u/Yeetsterr)\
**Post date:** [May 9, 2023, 9:00am UTC](https://forums.unrealengine.com/t/undefined-symbol-linker-error-when-cross-compiling-to-linux/1159922/1 "2023-05-09T09:00:40Z")

</div>

Hello. I am getting the following error during the linking step when cross compiling to Linux from Windows on 5.1.1.

I am using [GitHub - bitcoin-core/secp256k1: Optimized C library for EC operations on curve secp256k1](https://github.com/bitcoin-core/secp256k1) (written entirely in C) which compiles to static .a and .lib libraries. It works on Windows with .lib perfectly fine but fails on Linux with:

```auto
"level":"Error","message":"ld.lld: error: undefined symbol: secp256k1_ecdsa_recover","id":201,"line":28,"lineCount":38,"format":"ld.lld: error: undefined symbol: {symbol}","properties":{"symbol":{"$type":"Symbol","$text":"secp256k1_ecdsa_recover","identifier":"secp256k1_ecdsa_recover"}}}

```

This is for a free and open source Unreal Plugin. Feel free to try it out here [GitHub - G7DAO/web3.unreal: Unreal Engine plugin for integrating EVM compatible blockchains into games](https://github.com/G7DAO/web3.unreal).  
The static libraries are here [web3.unreal/Plugins/web3Unreal/Source/ThirdParty/lib at main · G7DAO/web3.unreal · GitHub](https://github.com/G7DAO/web3.unreal/tree/main/Plugins/web3Unreal/Source/ThirdParty/lib).

Any help is much appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![Yeetsterr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yeetsterr/32/625614_2.png) [@Yeetsterr](https://forums.unrealengine.com/u/Yeetsterr)\
**Post date:** [May 29, 2023, 1:13am UTC](https://forums.unrealengine.com/t/undefined-symbol-linker-error-when-cross-compiling-to-linux/1159922/2 "2023-05-29T01:13:01Z")

</div>

The solution here was to recompile secp256k1 with the recover ecdsa signature module flag. i.e. my library didn’t have the symbol and the issue was not with unreal engine.
