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 - -srg-

Pages: [1]
1
Make sure the DLL from your freshly built SFML are next to your executable and that you don't have any stray DLLs in your PATH.
Yes, confirm: there is only one instance of sfml-system-2.dll in the system.

2
Good afternoon.

When running the compiled test application I get the error ‘The procedure entry point _ZNSt15basic_streambuflcSt11char_traitslcEE7seekposESt4fposliESt13_los_Openmode could not be located in the dynamic link library A:\SFML-2.6.1\build\lib\sfml-system-2.dll.’.

I have read similar topics, none of them helped.

The order of actions before compiling a programme:
1. Downloaded and installed MSVCRT-version of MinGW compiler v14.2.0 (64bit) from winlibs.com. Defined an environment variable for the root folder of the compiler. Running the mingw32-make command in an arbitrary folder worked.

2. Downloaded and unzipped the source code of SFML version 2.6.1 into the folder A:\SFML-2.6.1.

3. I went to the folder A:\SFML-2.6.1 and from the command line alternately executed the commands ‘cmake -B build -DCMAKE_BUILD_TYPE=Release’ and ‘cmake --build build --config Release’. Compilation of SFML sources is successful.

4. Compiling the test programme below in Eclipse CDT (latest version). It compiles and links successfully.
Code: [Select]
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>

int main() {
    sf::Window playground(sf::VideoMode(640, 480), "Sanke");

    while (playground.isOpen()) {
        sf::Event event;

        while (playground.pollEvent(event)) {
            switch (event.type) {
                case sf::Event::Closed:
                playground.close();
                break;
            }
        }

        playground.display();
    }
    return 0;
}



5. I drag the resulting exe-file into the folder where the sources were compiled, i.e. into A:\SFML-2.6.1\build\lib.

6. When I run the programme, I get the above error :(

Let me summarise my configuration:
Window 10 64bit
MinGW v14.2.0 64bit (MSVCRT)
SFML version 2.6.1 compiled from sources.
Eclipse CDT IDE

Please help in solving the problem.

P.S. The build log:
Code: [Select]
22:52:38 **** Incremental Build of configuration Debug for project SFML2Test ****
Info: Internal Builder is used for build
g++ -std=c++17 "-IC:\\Sdk\\SFML2\\include" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\SFML2Test.o" "..\\src\\SFML2Test.cpp"
..\src\SFML2Test.cpp: In function 'int main()':
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'Resized' not handled in switch [-Wswitch]
   12 |             switch (event.type) {
      |                    ^
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'LostFocus' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'GainedFocus' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'TextEntered' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'KeyPressed' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'KeyReleased' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'MouseWheelMoved' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'MouseWheelScrolled' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'MouseButtonPressed' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'MouseButtonReleased' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'MouseMoved' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'MouseEntered' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'MouseLeft' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'JoystickButtonPressed' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'JoystickButtonReleased' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'JoystickMoved' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'JoystickConnected' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'JoystickDisconnected' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'TouchBegan' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'TouchMoved' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'TouchEnded' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'SensorChanged' not handled in switch [-Wswitch]
..\src\SFML2Test.cpp:12:20: warning: enumeration value 'Count' not handled in switch [-Wswitch]
g++ "-LA:\\SFML-2.6.1\\build\\lib" -o SFML2Test.exe "src\\SFML2Test.o" -lsfml-graphics -lsfml-audio -lsfml-main -lsfml-network -lsfml-system -lsfml-window -lopengl32 -lwinmm -lgdi32

22:52:39 Build Finished. 0 errors, 23 warnings. (took 881ms)

Pages: [1]
anything