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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Brainfuck

Pages: [1]
1
General / Re: Linux can't link ;/
« on: August 12, 2012, 04:11:55 pm »
Its working now lol..
I change sfml-system.so.2.0 to sfml-system.so, copy it and set second file sfml-system.so.2 xD and now its working o.O Topic to close xd

2
General / Re: Linux can't link ;/
« on: August 12, 2012, 12:43:47 pm »
i download this archive : http://www.sfml-dev.org/download/2.0-rc/SFML-2.0-rc-linux-32.tar.bz2
I extracted it and put libraries and includes into usr/lib & usr/includes ( its working on 1.6 )

3
General / Linux can't link ;/
« on: August 12, 2012, 10:50:48 am »
Hi there!
I have a little problem ;/
1.6 when I was using the 1.6 all was ok, yesterday I switched to 2.0 and I can not link anything under Linux (Debian 6 x32) ( VPS )

Logs :
Code: [Select]
root@94:/Game-Server# g++ Server.o -o Server -lsfml-system
/usr/bin/ld:/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/libsfml-system.so: file format not recognized; treating as linker script
/usr/bin/ld:/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/libsfml-system.so:1: syntax error

content of libsfml-system.so :
Code: [Select]
libsfml-system.so.2
content of libsml-system.so.2 :
Code: [Select]
libsfml-system.so.2.0I've try to change libsfml-system.so.2.0 to libsfml-system.so but then ;/
LOG :
Code: [Select]
root@94:/Game-Server# g++ -c Server.cpp
root@94:/Game-Server# g++ -o Server Server.o -lsfml-system -lsfml-network
/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/libsfml-system.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status


Idk what im doing wrong :p compiles ok just cant link :f in 1.6 all was ok :F ( i rewrite my code to 2.0 ;p ( its working on windows ) all should be ok ;/ )

4
General / Strange problem with VC++ 10 and SFML 1.6 :P
« on: December 03, 2011, 04:49:35 pm »
Hi there ;)
I try to compile this code :
Code: [Select]

#include <SFML/Graphics.hpp>

int main()
{
sf::RenderWindow App(sf::VideoMode(640,480,32),"Title");

    sf::Image Img;
    Img.LoadFromFile("sprite.png");

    sf::Sprite Sprite(Img);

    Sprite.SetPosition(200.f, 100.f);

    while (App.IsOpened())
    {
        App.Clear();        

        App.Draw(Sprite);

        App.Display();
    }

    return EXIT_SUCCESS;
}

with VC++ 2010 and i got this strange errors :

Code: [Select]
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(30): error C2143: syntax error : missing ',' before '<'
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(325) : see reference to class template instantiation 'std::_Deque_const_iterator<_Ty,_Alloc,_SECURE_VALIDATION>' being compiled
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(30): error C2518: keyword 'typename' illegal in base class list; ignored
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(31): error C2518: keyword 'typename' illegal in base class list; ignored
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(31): error C2518: keyword 'typename' illegal in base class list; ignored
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(45): error C2146: syntax error : missing ';' before identifier '_Mydequebase'
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(125): error C2143: syntax error : missing ',' before '*'
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(379): warning C4346: 'std::_Deque_const_iterator<_Ty,_Alloc,_SECURE_VALIDATION>::_Mydequebase' : dependent name is not a type
1>          prefix with 'typename' to indicate a type
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(452) : see reference to class template instantiation 'std::_Deque_iterator<_Ty,_Alloc,_SECURE_VALIDATION>' being compiled
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(379): error C2061: syntax error : identifier '_Mydequebase'
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(473): error C2143: syntax error : missing ',' before '<'
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(489) : see reference to class template instantiation 'std::_Deque_map<_Ty,_Alloc>' being compiled
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(539): error C2065: '_SECURE_VALIDATION_DEFAULT' : undeclared identifier
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(1316) : see reference to class template instantiation 'std::deque<_Ty,_Alloc>' being compiled
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(540): error C2065: '_SECURE_VALIDATION_DEFAULT' : undeclared identifier
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(548): error C3203: '_Deque_iterator' : unspecialized class template can't be used as a template argument for template parameter '_RanIt', expected a real type
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(548): error C2955: 'std::_Deque_iterator' : use of class template requires template argument list
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(339) : see declaration of 'std::_Deque_iterator'
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(549): error C3203: '_Deque_const_iterator' : unspecialized class template can't be used as a template argument for template parameter '_RanIt', expected a real type
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(549): error C2955: 'std::_Deque_const_iterator' : use of class template requires template argument list
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(30) : see declaration of 'std::_Deque_const_iterator'
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(1320): error C2143: syntax error : missing ';' before '<'
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(1320): error C2059: syntax error : '<'
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(1320): error C2065: '_Ty' : undeclared identifier
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(1320): error C2065: '_Ax' : undeclared identifier
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(1321): error C2143: syntax error : missing ';' before '{'
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(1321): error C2447: '{' : missing function header (old-style formal list?)
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(473): error C2504: '_Container_base_aux_alloc_real' : base class undefined
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(496) : see reference to class template instantiation 'std::_Deque_map<_Ty,_Alloc>' being compiled
1>          with
1>          [
1>              _Ty=sf::Event,
1>              _Alloc=std::allocator<sf::Event>
1>          ]
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(514) : see reference to class template instantiation 'std::_Deque_val<_Ty,_Alloc>' being compiled
1>          with
1>          [
1>              _Ty=sf::Event,
1>              _Alloc=std::allocator<sf::Event>
1>          ]
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\queue(22) : see reference to class template instantiation 'std::deque<_Ty>' being compiled
1>          with
1>          [
1>              _Ty=sf::Event
1>          ]
1>          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\SFML/Window/Window.hpp(312) : see reference to class template instantiation 'std::queue<_Ty>' being compiled
1>          with
1>          [
1>              _Ty=sf::Event
1>          ]
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(473): error C2143: syntax error : missing ',' before '<'
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\deque(476): fatal error C1903: unable to recover from previous error(s); stopping compilation

Please help :) i dont know what im doing wrong.

Pages: [1]