Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: collect2.exe: error: ld returned 1 exit status  (Read 2358 times)

0 Members and 1 Guest are viewing this topic.

Samsung03

  • Newbie
  • *
  • Posts: 1
    • View Profile
collect2.exe: error: ld returned 1 exit status
« 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
« Last Edit: January 21, 2019, 09:31:35 pm by Samsung03 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10846
    • View Profile
    • development blog
    • Email
Re: collect2.exe: error: ld returned 1 exit status
« Reply #1 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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything