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

Author Topic: undefined reference to `_imp___ZN2sf5MusicC1Ej'  (Read 2942 times)

0 Members and 1 Guest are viewing this topic.

Wardaor

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
undefined reference to `_imp___ZN2sf5MusicC1Ej'
« on: January 16, 2013, 02:32:00 am »
The following line is the only audio related line in the program, I commented out the other few.

Quote
     sf::Music Music;

I receive the following error messages from Eclipse(Indigo) when trying to compile.

Quote
undefined reference to `_imp___ZN2sf5MusicC1Ej'   main.cpp   /sfmltest   line 36   C/C++ Problem
undefined reference to `_imp___ZN2sf5MusicD1Ev'   main.cpp   /sfmltest   line 36   C/C++ Problem

I currently have no problem using System, Graphics, or Config which are the only other SFML libs I've tried using.  The other audio lines I've commented out produce similar error messages.

I recall encountering something like this a year ago when dealing with another 3rd party library and it had something to do with creating a .def file that was needed. Considering that 3 of the other libs appear to be working and compiling fine, I am unsure why I am having an issue with the audio lib.

I'm on Win7-64, using Eclipse(Indigo), GCC 4.6.2

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: undefined reference to `_imp___ZN2sf5MusicC1Ej'
« Reply #1 on: January 16, 2013, 02:34:36 am »
Are you linking against sfml-audio(-s-d)? ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Wardaor

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: undefined reference to `_imp___ZN2sf5MusicC1Ej'
« Reply #2 on: January 16, 2013, 02:36:54 am »
I will properly flog myself later. Problem fixed.