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

Author Topic: Visual C++ Express 2008  (Read 7018 times)

0 Members and 1 Guest are viewing this topic.

FrewCen

  • Newbie
  • *
  • Posts: 8
    • View Profile
Visual C++ Express 2008
« on: February 29, 2012, 07:20:42 am »
Ok, hi all.

Today I have new problem.
My code + error:

It is something like:
Code: [Select]
fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8 - sfml-system.dll
fatal error LNK1107: invalid or corrupt file: cannot read at 0x2A8 - sfml-window.dll
fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B0 - sfml-graphics.dll

So does anybody know how to repair it? Please help me.

J.F.I.: On Visual Studio 2010 Proffessional I'm getting debug error, not LNK error...

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Visual C++ Express 2008
« Reply #1 on: February 29, 2012, 07:49:55 am »
If you had googled the error code LNK1107 you would have found on the first entry the following answer...

Quote
How you are including a DLL into a project?

You need to add the lib file to the linker options not the DLL!


PS: To google, go to www.google.com and enter a search term into the textbox, then hit the return key.  :P
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

dotty

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Visual C++ Express 2008
« Reply #2 on: February 29, 2012, 02:44:25 pm »
I'm new to C++ but isn't

Quote
using namespace sf;


and then

Quote
sf::Event
completely wrong?

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Visual C++ Express 2008
« Reply #3 on: February 29, 2012, 03:37:50 pm »
It's optional. You can still do it, cause there might be disambiguos cases otherwise (e.g. two namespaces with the same class inside).

 

anything