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

Linking with 'link.exe' failed: exit code: 1120 (Windows, both MSVC and GNU) #13

Closed
dillionnason opened this issue Nov 14, 2022 · 3 comments
Assignees

Comments

@dillionnason
Copy link

I am getting this error compiling on Windows in debug:

libbgfx_sys-3a085ea111dd24ba.rlib(image.o) : error LNK2019: unresolved external symbol "bool __cdecl astc_codec::ASTCDecompressToRGBA(unsigned char const *,unsigned __int64,unsigned __int64,unsigned __int64,enum astc_codec::FootprintType,unsigned char *,unsigned __int64,unsigned __int64)" (?ASTCDecompressToRGBA@astc_codec@@YA_NPEBE_K11W4FootprintType@1@PEAE11@Z) referenced in function "void __cdecl bimg::imageDecodeToRgba8(struct bx::AllocatorI *,void *,void const *,unsigned int,unsigned int,unsigned int,enum bimg::TextureFormat::Enum)" (?imageDecodeToRgba8@bimg@@YAXPEAUAllocatorI@bx@@PEAXPEBXIIIW4Enum@TextureFormat@1@@Z)

I am able to compile and run in with --release. I am using CLion, but the error also occurs when I try and build directly with Cargo. Steps I've taken to try and fix it:

  • Switching to the GNU toolchain, but it looks like the issue is in linking bimg and not in the Rust part of the program.
  • Updating my VC 2019 toolchain (MSVC 14.29.30133).
  • Updating to the VC 2022 toolchain (MSVC 14.24.31933).
@emoon
Copy link
Owner

emoon commented Nov 15, 2022

Thanks for the report! I will fix it later today

@emoon emoon self-assigned this Nov 15, 2022
@emoon
Copy link
Owner

emoon commented Nov 16, 2022

Sorry I didn't get around to fixing it yesterday, I will try to do it today instead.

@emoon
Copy link
Owner

emoon commented Nov 17, 2022

Fixed in 0.16

@emoon emoon closed this as completed Nov 17, 2022
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

2 participants