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

Author Topic: Error: Can't find the specified file?  (Read 5117 times)

0 Members and 1 Guest are viewing this topic.

tom64

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Error: Can't find the specified file?
« on: April 11, 2013, 03:08:29 am »
I opened SFML build in Visual Studio and try to run the Pong demo.

I get error: \vc2008\sfml-audio\Debug static\sfml-audio.lib'.
The system cannot find the file specified.

Am I supposed to do something like tell it where the files are?

Sorry I'm also new to VS..
Newbie to C++ and SFML

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error: Can't find the specified file?
« Reply #1 on: April 11, 2013, 08:11:37 am »
Did you build SFML first?
Laurent Gomila - SFML developer

tom64

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Error: Can't find the specified file?
« Reply #2 on: April 11, 2013, 02:52:21 pm »
No, but I just built it now and I still get the same error.

Says 2 failed.

fatal error C1083: Cannot open include file: 'QWidget': No such file or directory
fatal error C1083: Cannot open include file: 'wx/wx.h': No such file or directory

But when I run it still complains about the audio lib.
Newbie to C++ and SFML

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error: Can't find the specified file?
« Reply #3 on: April 11, 2013, 03:20:33 pm »
Quote
Says 2 failed.

fatal error C1083: Cannot open include file: 'QWidget': No such file or directory
fatal error C1083: Cannot open include file: 'wx/wx.h': No such file or directory
This is expected, ignore them.

Quote
But when I run it still complains about the audio lib.
Is it a compiler, linker or runtime error?
Laurent Gomila - SFML developer

tom64

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Error: Can't find the specified file?
« Reply #4 on: April 12, 2013, 11:39:21 am »
I don't know. I'm not skilled vocabularily speaking.

I just click 'Run without debugger' and instantly I get a Windows message popup.
Newbie to C++ and SFML

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error: Can't find the specified file?
« Reply #5 on: April 12, 2013, 11:46:47 am »
Well, then take a screenshot of the error message and post it here ;)
Laurent Gomila - SFML developer

tom64

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Error: Can't find the specified file?
« Reply #6 on: April 12, 2013, 03:14:03 pm »
Newbie to C++ and SFML

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error: Can't find the specified file?
« Reply #7 on: April 12, 2013, 03:23:22 pm »
I can't imagine what you've put in your project settings to have a runtime error complaining about a .lib file :o

Can you upload your project file?
Laurent Gomila - SFML developer

tom64

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Error: Can't find the specified file?
« Reply #8 on: April 12, 2013, 03:26:33 pm »
I didn't put anything in project settings. I haven't used VS much either, it's practically a fresh install.

All I did was download SFML, open it, and try to run the pong..
Newbie to C++ and SFML

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error: Can't find the specified file?
« Reply #9 on: April 12, 2013, 04:21:32 pm »
Ah, sorry, I forgot you were working with the SFML solution.

Maybe you should learn Visual Studio with your own projects, instead of SFML. You've probably done something wrong, but I don't know what.
Laurent Gomila - SFML developer

tom64

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Error: Can't find the specified file?
« Reply #10 on: April 12, 2013, 04:33:22 pm »
All I remember was that VS said something about SFML being outdated and had to be updated in some way, so I pressed 'OK'. Maybe that's what it was.. I'm on VS 2012 Ultimate.
Newbie to C++ and SFML

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Error: Can't find the specified file?
« Reply #11 on: April 12, 2013, 05:31:22 pm »
People already got errors after converting the SFML solution to newer version of VS. But not this kind of runtime error.

But forget SFML 1.6, use 2.0.
Laurent Gomila - SFML developer