Új hozzászólás Aktív témák

  • repvez

    addikt

    válasz coco2 #18612 üzenetére

    hát a moricka modszer nem jött be, mert hiába commenteltem át az egészet akkor meg azt irja, ki, hogy nincs rendesen lezárva a kod attol a sortol kezdve az utolsoig ahova a comment jelet tettem.

    Az alábbi dolgokat megprobáltam megcsinálni, de nem találtam meg, hogy mit hova kéne másolni .

    the "undefined reference" errors you are seeing are linker errors, which occur when the linker is unable to find a definition for a symbol that is used in the code. In this case, it means that you are missing some libraries that are needed to link your program.
    To resolve these errors, you need to make sure that you are linking against the appropriate libraries. Here are some steps you can take to fix the issue:
    Make sure that you have included the correct header files in your code. The header files are used by the compiler to resolve function signatures and other symbols.
    Make sure that you have added the required libraries to your linker settings. The libraries are used by the linker to resolve the definitions of the functions and symbols used in your code.
    In this case, since you are using DirectX, you need to link against the DirectX libraries. To do this, you can add the following linker directives to your project:
    #pragma comment(lib, "dxgi.lib")
    #pragma comment(lib, "d3d11.lib")
    #pragma comment(lib, "d3dcompiler.lib")

    these directives tell the linker to include the dxgi.lib, d3d11.lib, and d3dcompiler.lib libraries in the build process.
    Alternatively, you can add the libraries to your linker settings in your project properties. To do this:
    Right-click on your project in the Solution Explorer and select "Properties".In the "Configuration Properties" section, select "Linker" -> "Input".Add the required libraries to the "Additional Dependencies" field.
    Make sure to separate the library names with a semicolon (;).
    After making these changes, try rebuilding your project and see if the linker errors are resolved.

Új hozzászólás Aktív témák