Saturday, July 20, 2024

SOLVED SDL h No such file or directory

Hi, everyone!

Environment: Debian 12, SDL2, vscode (extensions: C/C++ Language Support (MS), CMake Tools (MS) )

main.cpp

#include "SDL2/SDL.h"


c_cpp_properties.json

add: /usr/local/include
{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "/usr/include/SDL2",
                "/usr/local/include",
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c17",
            "cppStandard": "c++17",
            "intelliSenseMode": "linux-gcc-x64",
            "compilerArgs": [
                "gcc main.cpp `pkg-config --cflags --libs sdl2`"
            ]
        }
    ],
    "version": 4
}


CMakeLists.txt
 

cmake_minimum_required(VERSION 3.5.0)
project(createwindow VERSION 0.1.0 LANGUAGES C CXX)

add_executable(createwindow src/main.cpp)

target_link_libraries(createwindow SDL2main SDL2 GL)
 

Hope this useful.

Tuesday, July 9, 2024

How to Fix Error Code 0xc0000225 in Windows 10

First for all: create a USB bootable in another machine. On Ubuntu, install WoeUSB. It has a trick: you need to give format on NTFS because Windows ISO contains huge files. How to Create Windows Bootable USB on Ubuntu 22.04 | Windows 10 or 11 

How to fix error code 0xc0000225 in Windows 10/11 I had no idea how long takes to run chkdsk c: /r, but does the job!.

How get this error? I don´t know. That error code is a corruption MBR or system files lost. Let me see. Recently, just enabled Windows 10 Developer Mode and disabled Secure Mode on Boot. And, last but not least, I started to use bash -c "command" since PowerShell (I am a lazy programmer and obfuscated so don't wanna run and wait to raise Ubuntu just for download Youtube videos).