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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - gordogordo

Pages: [1]
1
General / Linking problems
« on: March 08, 2017, 11:40:08 pm »
I am trying to start with SFML and have not been able to compile the getting started program. I am getting undefined reference errors.

I understand this could result from a number of issues including a compiler mismatch, but I wanted to ask here to make sure I wasn't just doing something wrong linking. I am using the minGW32 toolchain installed by msys2, so I downloaded GCC 6.1.0 MinGW (DW2) - 32-bit.

I am using Netbeans, in the project properties I did the following:
  • Added the include directory to the include directories menu
  • Added SFML_STATIC to the preprocessor definitions
  • Added the lib folder to linker>additional library direcories
  • Added sfml-graphics-s-d,sfml-window-s-d,sfml-system-s-d, .a files under linker>libraries
The mode is Debug, 32 bits.
From what I can tell this should work, but I am getting undefined reference errors?

Is there something that I did wrong?

-Thanks for any assistance

Pages: [1]
anything