Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lime Liquid

Pages: [1]
1
Graphics / Re: Access To Default Font.
« on: April 15, 2023, 01:03:34 pm »
I know, but at least how to have a font without loading it from file?

2
Graphics / Access To Default Font.
« on: April 15, 2023, 11:55:31 am »
How to access SFML's default font?
I have read the documentation but it's outdated.

I need to access SFML's default font because I'm running an executable from usb drive and then ejecting it.
Of course, custom font (chivomono) I used didn't load because it wasn't there.

I can't copy font and exe to hard drive, because Windows Defender blocks it even with Administrator Permission. I'm using Visual Studio 2022.

Thanks for reading!

3
Window / Re: Getting error with linker - __imp_ files are missing.
« on: February 10, 2023, 08:59:53 am »
The functions mentioned in the errors are all from user32.lib, you need to add it to the linker input.

This still doesn't fix all of the errors. Now linker.exe exits with code 1120, and I get 3 errors:

sfml-window-s.lib(JoystickImpl.cpp.obj) : error LNK2001: unresolved external symbol __imp_RegCloseKey
sfml-window-s.lib(JoystickImpl.cpp.obj) : error LNK2001: unresolved external symbol __imp_RegOpenKeyExW
sfml-window-s.lib(JoystickImpl.cpp.obj) : error LNK2001: unresolved external symbol __imp_RegQueryValueExW


Thanks anyway for your try!

4
Window / Re: Getting error with linker - __imp_ files are missing.
« on: February 09, 2023, 08:38:19 am »
As mentioned in the Getting Started tutorials, once you link SFML statically, you'll also have to specify SFML's dependencies.

See the table for which libraries are needed: https://www.sfml-dev.org/tutorials/2.5/start-vc.php

You can just add them to the linker settings without having to know their location, as the linker already knows that.
I already linked everything right. I suppose that it is sfml-window-s.lib that makes those 50 errors...

I have linked in Linker - Input : opengl32.lib;winmm.lib;freetype.lib;gdi32.lib;sfml-graphics-s.lib;sfml-window-s.lib;sfml-system-s.lib

Sorry for any inconvenience,

5
Window / Getting error with linker - __imp_ files are missing.
« on: February 08, 2023, 05:57:32 pm »
This is not my first time working with SFML, I just created new project. Linked everything correctly, even defined SFML_STATIC variable in preprocessor C++ Caterogy. I'm getting bunch errors for Release, such as:

sfml-window-s.lib(VideoModeImpl.cpp.obj) : error LNK2001: unresolved external symbol __imp_EnumDisplaySettingsW
sfml-window-s.lib(CursorImpl.cpp.obj) : error LNK2001: unresolved external symbol __imp_GetDC
sfml-window-s.lib(WglContext.cpp.obj) : error LNK2001: unresolved external symbol __imp_GetDC
sfml-window-s.lib(WindowImplWin32.cpp.obj) : error LNK2001: unresolved external symbol __imp_GetDC
sfml-window-s.lib(CursorImpl.cpp.obj) : error LNK2001: unresolved external symbol __imp_ReleaseDC
sfml-window-s.lib(WglContext.cpp.obj) : error LNK2001: unresolved external symbol __imp_ReleaseDC
sfml-window-s.lib(WindowImplWin32.cpp.obj) : error LNK2001: unresolved external symbol __imp_ReleaseDC


There are totally 50 linker errors like this.
Visual Studio 2022, C++ 14 with SFML-2.5.1

Any help?

Pages: [1]
anything