In compiling the x86 version of my program I'm getting "Linker error. Section larger than 4GiB: .data".
X64 versions compile perfectly. Is this a bug in PB or something too large in my program?
PB 6.20 Linker error in x86 compile
Re: PB 6.20 Linker error in x86 compile
32 bit Windows/FAT32 limitation. Max file and RAM size 2^32 ~ 4GB.
-
- Enthusiast
- Posts: 443
- Joined: Sun Apr 06, 2008 12:54 pm
- Location: Brisbane, Qld, Australia
- Contact:
Re: PB 6.20 Linker error in x86 compile
Went back to PB 6.12 - same error. Went back to 6.04 (which we had used for our previous release) - compiles OK.
So for now we will use PB 6.20 for x64 and PB 6.04 for x86.
So for now we will use PB 6.20 for x64 and PB 6.04 for x86.
Re: PB 6.20 Linker error in x86 compile
How do you end up with more than 4GB of data section in x86 ?
-
- Enthusiast
- Posts: 443
- Joined: Sun Apr 06, 2008 12:54 pm
- Location: Brisbane, Qld, Australia
- Contact:
Re: PB 6.20 Linker error in x86 compile
No idea! And don't know how to check. The compiled executable (compiled with 6.04) is about 14Mb.
Re: PB 6.20 Linker error in x86 compile
Now that's wierd ! Some guys have the same issue on another language: https://community.intel.com/t5/Intel-Fo ... -p/1566027 may be it's an lld-link issue. Would be interesting to see what is the root cause of this though. Could you try to remove some code until it compiles to see if a specific line cause this ?
-
- Enthusiast
- Posts: 443
- Joined: Sun Apr 06, 2008 12:54 pm
- Location: Brisbane, Qld, Australia
- Contact:
Re: PB 6.20 Linker error in x86 compile
I'll spend a bit of time on that later this week.