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

Author Topic: I can't fix these linker errors!!!  (Read 1995 times)

0 Members and 1 Guest are viewing this topic.

rabster

  • Newbie
  • *
  • Posts: 3
    • View Profile
I can't fix these linker errors!!!
« on: April 29, 2016, 03:00:04 am »
I've been at this for a few hours and it's seriously eating my freaking soul.
I got 17 unresolved externals and I have no clue why D:

Debug things
sfml-audio-s-d.lib
sfml-graphics-d.lib
sfml-main-d.lib
sfml-system-s-d.lib
sfml-window-s-d.lib
freetype.lib
gdi32.lib
jpeg.lib
opengl32.lib
winmm.lib
openal32.lib


Release
sfml-audio-s.lib
sfml-graphics.lib
sfml-main.lib
sfml-system-s.lib
sfml-window-s.lib
freetype.lib
gdi32.lib
jpeg.lib
opengl32.lib
winmm.lib
openal32.lib

........

Erdrick

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Email
Re: I can't fix these linker errors!!!
« Reply #1 on: April 29, 2016, 03:56:19 am »
Just at first glance, why are you combining static and non-static debug libraries?
And why are you combining static and non-static release libraries?

For Debug  you are using sfml-graphics-d.lib and not sfml-graphics-s-d.lib
For Release you are using sfml-graphics.lib and not sfml-graphics-s.lib


rabster

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: I can't fix these linker errors!!!
« Reply #2 on: April 29, 2016, 04:41:27 am »
Because when I use sfml-graphics-s-d.lib and sfml-graphics-s.lib I get this error Error   LNK1112   module machine type 'x64' conflicts with target machine type 'X86' Win32Project And so I just switched it to non-static but then I get linker errors???????

DarkRoku12

  • Full Member
  • ***
  • Posts: 203
  • Lua coder.
    • View Profile
    • Email
Re: I can't fix these linker errors!!!
« Reply #3 on: April 29, 2016, 06:03:09 am »
Because when I use sfml-graphics-s-d.lib and sfml-graphics-s.lib I get this error Error   LNK1112   module machine type 'x64' conflicts with target machine type 'X86' Win32Project And so I just switched it to non-static but then I get linker errors???????

See this link of the SFML FAQ
I would like a spanish/latin community...
Problems building for Android? Look here

rabster

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: I can't fix these linker errors!!!
« Reply #4 on: April 30, 2016, 03:08:42 am »
I think I fixed it I downloaded the 32bit version and just replaced that version into the current non-working 64bit version. And well it seemed to have worked :D. Hopefully it doesn't crash or do any wacky things, anyways thanks!!.

Erdrick

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
    • Email
Re: I can't fix these linker errors!!!
« Reply #5 on: April 30, 2016, 04:45:26 am »
I'm not sure who wrote all of the SFML site documentation but its really a beautiful thing.  Everything is extremely clear, very difficult to find ambiguity compared to other sites.