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

Author Topic: [SFML 1.6] Problem at building the workspace [C::B][Win7]  (Read 2648 times)

0 Members and 1 Guest are viewing this topic.

hamar

  • Newbie
  • *
  • Posts: 7
    • View Profile
[SFML 1.6] Problem at building the workspace [C::B][Win7]
« on: May 25, 2012, 08:30:03 pm »
Hi!

I watched all the 36 pages, but i didn't find a topic, or a solution for this.
I want to build SFML 1.6 SDK version on my computer, because i want to add one more file. Now I open the ...\build\codeblocks\SFML.workspace with my codeblocks. And i try to build the worksapce but it give an error:

...
...
-------------- Build: Debug DLL_Win32 in sfml-window ---------------

Compiling: ..\..\src\SFML\Window\Input.cpp
Compiling: ..\..\src\SFML\Window\VideoMode.cpp
Compiling: ..\..\src\SFML\Window\Win32\Joystick.cpp
Compiling: ..\..\src\SFML\Window\Win32\VideoModeSupport.cpp
Compiling: ..\..\src\SFML\Window\Win32\WindowImplWin32.cpp
Compiling: ..\..\src\SFML\Window\Window.cpp
Compiling: ..\..\src\SFML\Window\WindowImpl.cpp
Compiling: ..\..\src\SFML\Window\Context.cpp
Linking dynamic library: ..\..\lib\mingw\sfml-window-d.dll
mingw32-g++.exe: ..\..\lib\mingw\libsfml-system-d.a: No such file or directory
Process terminated with status 1 (0 minutes, 4 seconds)
0 errors, 0 warnings
 
And i don't understand how to solve this problem.
In the minGW folder i have the following files:
libsfml-system.dll.a
libsfml-system-d.dll.a
sfml-system.dll
sfml-system-d.dll

So what should i do now? :S

Thank you!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: [SFML 1.6] Problem at building the workspace [C::B][Win7]
« Reply #1 on: May 25, 2012, 09:35:10 pm »
The ".dll" suffix (in libsfml-system.dll.a) is added automatically by your version of Code::Blocks, and is not expected by SFML. There should be an option to disable it.

Quote
i want to add one more file.
May I ask why? It looks like a bad idea.
Laurent Gomila - SFML developer

hamar

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: [SFML 1.6] Problem at building the workspace [C::B][Win7]
« Reply #2 on: May 26, 2012, 09:55:55 am »
I see, however i didn't find this option. I will try to find this option.

Actually, my plan is to make a new string, that have some more attribute, that would be good for my program. Or should I inherit my class from sf::Drawable and from sf::String, Or inherit from sf::Drawable and then copy all of the sf::String's code into my class, or it is programatically an ugly solution? I just want to make a clear code... that is why I wanted to add an other class, similarly to that sf:: String.

Anyhow, Thank you, for you answer. :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: [SFML 1.6] Problem at building the workspace [C::B][Win7]
« Reply #3 on: May 26, 2012, 10:14:56 am »
You can do whatever you want, but why would it have to be in SFML? Just create this new class in your own code, so that you don't need to recompile SFML (and can distribute your code without your modified version of SFML).
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: [SFML 1.6] Problem at building the workspace [C::B][Win7]
« Reply #4 on: May 26, 2012, 10:46:24 am »
If you just need additional operations, why don't you define them as global functions that operate on sf::String?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

hamar

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: [SFML 1.6] Problem at building the workspace [C::B][Win7]
« Reply #5 on: May 27, 2012, 07:53:52 pm »
Actually I forget, how did I get to this decision; that I must add this more class to my SFML. :S Now I if I started this topic then I have to get the final answer.

Well... I tried to find this auto .dll suffix completion... But I can't find it. Where should it be?

@Nexus, my class should look like sf::String class but I want to add 2 more variable and I have to modify the rendering function. What would you suggest? Inheriting, from sf::String, and modify that rendering thing, or copy the sf::String's codes and just simply change the sf::String::Render(...) function?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: [SFML 1.6] Problem at building the workspace [C::B][Win7]
« Reply #6 on: May 27, 2012, 08:16:14 pm »
Quote
Well... I tried to find this auto .dll suffix completion... But I can't find it. Where should it be?
I have no idea, it never happened on my version of Code::Blocks and I never had to deal with this option.

By the way, you should try to switch to SFML 2 ;)
Laurent Gomila - SFML developer

hamar

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: [SFML 1.6] Problem at building the workspace [C::B][Win7]
« Reply #7 on: May 28, 2012, 12:24:12 pm »
Ok, So the solution is switching to SFML 2. And everything is okay.

Thank you for your answers!