1
General / Re: SFML doesn't want to work...
« on: September 18, 2013, 06:13:51 pm »
Ya he arreglado el problema se ve que usaba como compiler Dev-C++ por raro que parezca...
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.
-------------- Build: Release in abc (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -O2 -DSFML_STATIC -I"C:\Program Files (x86)\CodeBlocks\MinGW\include" -c "C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp" -o obj\Release\main.o
mingw32-g++.exe -L"C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML" -o bin\Release\abc.exe obj\Release\main.o -s -lsfml-audio-s -lsfml-graphics-s -lsfml-network-s -lsfml-system-s -lsfml-window-s
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x177):GLCheck.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x192):GLCheck.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x1ae):GLCheck.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x1c1):GLCheck.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x1de):GLCheck.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x1f9):GLCheck.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x215):GLCheck.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x230):GLCheck.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x345):GLCheck.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x6a1):GLCheck.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x6c3):GLCheck.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(GLCheck.cpp.obj)(.text+0x6fb):GLCheck.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x2e5):Texture.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x2f8):Texture.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x315):Texture.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x328):Texture.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x345):Texture.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x4a9):Texture.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x4c5):Texture.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x4d5):Texture.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x4f2):Texture.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x502):Texture.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x51f):Texture.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x53b):Texture.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x54b):Texture.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x568):Texture.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x578):Texture.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x595):Texture.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Texture.cpp.obj)(.text+0x5cd):Texture.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x228):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x240):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x483):Shader.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x4db):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x532):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x5e3):Shader.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x607):Shader.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x668):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x6b7):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x6ef):Shader.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x707):Shader.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0xe19):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0xe39):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0xe55):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0xf21):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0xf41):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0xf5d):Shader.cpp: more undefined references to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)' follow
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0xff7):Shader.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x101f):Shader.cpp: undefined reference to `std::ctype<char>::_M_widen_init() const'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x1181):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:\Program Files (x86)\CodeBlocks\MinGW\lib\SFML/libsfml-graphics-s.a(Shader.cpp.obj)(.text+0x119e):Shader.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
Process terminated with status 1 (0 minutes, 7 seconds)
50 errors, 0 warnings (0 minutes, 7 seconds)
I will reply in spanish (If is necesary I can translate it to english but this way is faster for me)
@echo off
cd C:/SFML-2.1/Build/
set PATH=%~dp0bin;%PATH%
mingw32-make
||=== abc, Release ===|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|1|SFML/Graphics.hpp: No such file or directory|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp||In function `int main()':|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|5|error: `sf' has not been declared|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|5|error: `RenderWindow' undeclared (first use this function)|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|5|error: (Each undeclared identifier is reported only once for each function it appears in.)|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|5|error: expected `;' before "window"|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|6|error: `sf' has not been declared|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|6|error: `CircleShape' undeclared (first use this function)|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|6|error: expected `;' before "shape"|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|7|error: `shape' undeclared (first use this function)|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|7|error: `sf' has not been declared|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|7|error: `Green' undeclared (first use this function)|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|9|error: `window' undeclared (first use this function)|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|11|error: `sf' has not been declared|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|11|error: `Event' undeclared (first use this function)|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|11|error: expected `;' before "event"|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|12|error: `event' undeclared (first use this function)|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|14|error: `sf' has not been declared|
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp|14|error: `Closed' undeclared (first use this function)|
||=== Build finished: 18 errors, 0 warnings (0 minutes, 0 seconds) ===|
-------------- Build: Release in abc (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -fexceptions -O2 -DSFML_STATIC -I"C:\Program Files (x86)\CodeBlocks\MinGW\include\SFML" -c "C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp" -o obj\Release\main.o
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:1:29: SFML/Graphics.hpp: No such file or directory
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp: In function `int main()':
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:5: error: `sf' has not been declared
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:5: error: `RenderWindow' undeclared (first use this function)
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:5: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:5: error: expected `;' before "window"
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:6: error: `sf' has not been declared
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:6: error: `CircleShape' undeclared (first use this function)
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:6: error: expected `;' before "shape"
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:7: error: `shape' undeclared (first use this function)
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:7: error: `sf' has not been declared
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:7: error: `Green' undeclared (first use this function)
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:9: error: `window' undeclared (first use this function)
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:11: error: `sf' has not been declared
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:11: error: `Event' undeclared (first use this function)
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:11: error: expected `;' before "event"
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:12: error: `event' undeclared (first use this function)
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:14: error: `sf' has not been declared
C:\Users\Alvaro\Documents\Aprendiendo C++\abc\main.cpp:14: error: `Closed' undeclared (first use this function)
Process terminated with status 1 (0 minutes, 0 seconds)
18 errors, 0 warnings (0 minutes, 0 seconds)