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

Author Topic: Cannot locate function definitions...  (Read 1738 times)

0 Members and 1 Guest are viewing this topic.

intrinsic

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Cannot locate function definitions...
« on: August 10, 2016, 04:43:25 pm »
When I look at the class declaration, all the functions are underlined, even the constructor. The compiler is complaining that it cannot locate the function definitions.

I am using SMFL 2.3.2 I have included the lib folder and the include folder.
Now I admit that I am somewhat new to programming, but I was able to set up the HGE engine and do a little programming with it. Never had any issue and the setup process is very similar.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
Re: Cannot locate function definitions...
« Reply #1 on: August 10, 2016, 05:01:50 pm »
Does the compiler really complain or is it more your IDE that shows red lines? Because it's quite often the case that the IDE's detection isn't perfect, but the compiler will run without issues.

What's your IDE?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

intrinsic

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Cannot locate function definitions...
« Reply #2 on: August 10, 2016, 05:21:14 pm »
VS 2015, it's a green underline.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
Re: Cannot locate function definitions...
« Reply #3 on: August 10, 2016, 05:56:48 pm »
But it does compile?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

intrinsic

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Cannot locate function definitions...
« Reply #4 on: August 10, 2016, 06:17:35 pm »
No, it does not compile. It's a pretty ugly error with 17 unresolved externals.

http://pastebin.com/5jbCCMZ6

intrinsic

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Cannot locate function definitions...
« Reply #5 on: August 10, 2016, 06:20:15 pm »
Okay so I didn't include
sfml-graphics-d.lib
sfml-window-d.lib
sfml-system-d.lib

it compiles now, sorry.

 

anything