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

Error 168: >64K Global Types #21

Open
s-ludwig opened this issue Aug 6, 2017 · 8 comments
Open

Error 168: >64K Global Types #21

s-ludwig opened this issue Aug 6, 2017 · 8 comments

Comments

@s-ludwig
Copy link

s-ludwig commented Aug 6, 2017

I'm getting this error in a mid-sized application (using vibe-d and another internal library of similar size). It appears that this limit is quite easy to reach with moderate template use. The question is if anything can be done about this in the linker, or if this is a fundamental limitation rooted in the object file format.

Message:

MK CVP_GTYPES_64K_ERR,'>64K Global Types'

Constant:
CMP EAX,64K - 1000H

@PetarKirov
Copy link

CC @WalterBright
(It looks like you're not subscribed to receive notifications for this repo.)

@WalterBright
Copy link
Contributor

Moved to bugzilla:

https://issues.dlang.org/show_bug.cgi?id=17728

@dmi7ry
Copy link

dmi7ry commented Dec 13, 2018

I got same error when tried compile almost empty app based on hunt-database. Is there any workaround/solution?
P.S. Windows

@WalterBright
Copy link
Contributor

You're probably best off switching to a 64 bit compile with -m64.

@dmi7ry
Copy link

dmi7ry commented Dec 14, 2018

Thank you!

@WalterBright
Copy link
Contributor

Sorry I couldn't really fix it.

@Aphexus
Copy link

Aphexus commented May 25, 2019

This needs to be addressed. Getting same issue with gtkD.

\Libs\omf\gtkd.lib(Binding)
Error 168: >64K Global Types

This is when trying to build gtkD with debugs.

Clearly it is a limit issue so it should be an easy fix. It's happening x86 and not x64. It happens when I tried to use the lib in my app. I cannot use x64.

@wilzbach
Copy link

@Aphexus you can use normal mscoff linking for 32-bit too. With the newest version of dub (2.086), it's even the default.

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

6 participants