[GH-ISSUE #52] Windows 7: ScriptFreeCache not found in GDI32.dll #32

Closed
opened 2026-05-05 03:35:05 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @CannibalSoftware on GitHub (Dec 13, 2021).
Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/52

theide.exe - Entry Point Not Found

The procedure entry point ScriptFreeCache could not be located in the dynamic link linbrary GDI32.dll.
This is likely due to the order of the linking of libraries:
https://docs.microsoft.com/en-us/windows/win32/api/usp10/nf-usp10-scriptfreecache?redirectedfrom=MSDN
On the page is this note:
"Important Starting with Windows 8: To maintain the ability to run on Windows 7, a module that uses Uniscribe must specify Usp10.lib before gdi32.lib in its library list."

Originally created by @CannibalSoftware on GitHub (Dec 13, 2021). Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/52 theide.exe - Entry Point Not Found The procedure entry point ScriptFreeCache could not be located in the dynamic link linbrary GDI32.dll. This is likely due to the order of the linking of libraries: https://docs.microsoft.com/en-us/windows/win32/api/usp10/nf-usp10-scriptfreecache?redirectedfrom=MSDN On the page is this note: "Important Starting with Windows 8: To maintain the ability to run on Windows 7, a module that uses Uniscribe must specify Usp10.lib before gdi32.lib in its library list."
Author
Owner

@badrelmers commented on GitHub (Feb 11, 2022):

yes I have the same error in win 7 x64
image

<!-- gh-comment-id:1035994767 --> @badrelmers commented on GitHub (Feb 11, 2022): yes I have the same error in win 7 x64 ![image](https://user-images.githubusercontent.com/40046489/153562962-6cf8b132-fbfe-42a4-86a1-837ffc2a2bfc.png)
Author
Owner

@mirek-fidler commented on GitHub (Feb 11, 2022):

usp10 moved before gdi32... (in current master, should be in nightly tomorrow).

Please report if that solved your problem.

<!-- gh-comment-id:1036410790 --> @mirek-fidler commented on GitHub (Feb 11, 2022): usp10 moved before gdi32... (in current master, should be in nightly tomorrow). Please report if that solved your problem.
Author
Owner

@kov-serg commented on GitHub (Feb 13, 2022):

Confirm
upp-win-16190 works under windows 7
upp-win-16187 - fails to run

<!-- gh-comment-id:1037885314 --> @kov-serg commented on GitHub (Feb 13, 2022): Confirm upp-win-16190 works under windows 7 upp-win-16187 - fails to run
Author
Owner

@kov-serg commented on GitHub (Mar 21, 2022):

The problem is a little deeper.
When create gui project is adds

Core
CtrlCore
CtrlLib
Draw
Painter
PdfDraw
RichText
plugin/bmp
plugin/png
plugin/z

packages
Draw package depends on "usp10 user32 gdi32"
but CtrlCore is also depends on gdi32: "advapi32 comdlg32 comctl32 imm32 user32 gdi32"
so in final linker option we have

... -ladvapi32 -lcomdlg32 -lcomctl32 -limm32 -luser32 -lgdi32 -lusp10 -luser32 -lgdi32 -lkernel32 -luser32 -lole32 -loleaut32 -luuid -lws2_32 -ladvapi32 -lshell32 -lwinmm -lmpr -Wl,--end-group

And this cause resulting executable fails to run under windows 7

<!-- gh-comment-id:1074031515 --> @kov-serg commented on GitHub (Mar 21, 2022): The problem is a little deeper. When create gui project is adds ``` Core CtrlCore CtrlLib Draw Painter PdfDraw RichText plugin/bmp plugin/png plugin/z ``` packages Draw package depends on "usp10 user32 gdi32" but CtrlCore is also depends on gdi32: "advapi32 comdlg32 comctl32 imm32 user32 **gdi32**" so in final linker option we have ... -ladvapi32 -lcomdlg32 -lcomctl32 -limm32 -luser32 -l**gdi32** -l**usp10** -luser32 -l**gdi32** -lkernel32 -luser32 -lole32 -loleaut32 -luuid -lws2_32 -ladvapi32 -lshell32 -lwinmm -lmpr -Wl,--end-group And this cause resulting executable fails to run under windows 7
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#32
No description provided.