Skip to content

clang-cl: error LNK2019: unresolved external symbol __udivti3 #56

Closed
@kimwalisch

Description

@kimwalisch

The clang-cl compiler (Windows version of Clang) supports 128-bit integers but not yet 128-bit division. This causes a linker error when compiling libdivide using clang-cl:

> clang-cl /arch:AVX2 /I. /EHsc /W3 /O2 /DLIBDIVIDE_AVX2 test\tester.cpp
tester-d6bae9.obj : error LNK2019: unresolved external symbol __udivti3 referenced in function "private: void __cdecl DivideTest<unsigned __int64>::test_many<0>(unsigned __int64)" (??$test_many@$0A@@?$DivideTest@_K@@AEAAX_K@Z)
tester.exe : fatal error LNK1120: 1 unresolved externals
clang-cl: error: linker command failed with exit code 1120 (use -v to see invocation)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions