SFML community forums

Help => General => Topic started by: Samsung03 on January 21, 2019, 09:16:35 pm

Title: collect2.exe: error: ld returned 1 exit status
Post by: Samsung03 on January 21, 2019, 09:16:35 pm
This is my first post!

Whenever I try to run the sfml tutorial program i get this error
(click to show/hide)

I am using the command g++ main.cpp -I C:\SFML-2.5.1\include\

I am running Windows 10 64-bit and am using SFML 2.5.1
Title: Re: collect2.exe: error: ld returned 1 exit status
Post by: eXpl0it3r on January 21, 2019, 11:52:29 pm
Read the Getting Started tutorials and learn how to use your toolchain, especially what a linker is, what it does and how to link libraries. This is basic C++/tooling knowledge unrelated to SFML. ;)