Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3046

[RESOLVED] Static linker error

$
0
0
I'm trying to statically link .dll files from SFML library so that I don't need to launch my program relying on the given .dll files. I added SFML_STATIC to the preprocessor section in the project properties then added these libraries in Linker > Input.

Code:

sfml-graphics-s-d.lib
sfml-window-s-d.lib
sfml-system-s-d.lib
sfml-audio-s-d.lib
sfml-network-s-d.lib
sfml-main.lib

When I try to build the program I'm met with the following error.

Code:

Severity        Code        Description        Project        File        Line        Suppression State        Details
Warning        LNK4098        defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library        Timber        C:\VS Project\Timber\MSVCRTD.lib(initializers.obj)        1

Is there any workable solution? I've been searching at the same topics for a day. Thank you in advance.

Viewing all articles
Browse latest Browse all 3046

Trending Articles