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 - Oppenheim

Pages: [1]
1
General / Re: Can't compile tutorial code - it's been 2 days by now
« on: August 07, 2013, 08:16:52 pm »
It worked! Problem resolved. Thanks binary1248 and Gobbles!

2
General / Re: Can't compile tutorial code - it's been 2 days by now
« on: August 07, 2013, 07:04:19 pm »
Here it goes:
Code: [Select]
-------------- Clean: Debug in teste (compiler: GNU GCC Compiler)---------------

Cleaned "teste - Debug"

-------------- Build: Debug in teste (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Wall  -g -DSFML_STATIC  -std=c++11 -std=c++0x   -Ic:\sfml-2.1\include  -c C:\Users\NEUSA\Desktop\teste\main.cpp -o obj\Debug\main.o
mingw32-g++.exe -Lc:\sfml-2.1\lib  -o bin\Debug\teste.exe obj\Debug\main.o    -lsfml-graphics-s-d -lsfml-window-s-d -lsfml-system-s-d
obj\Debug\main.o: In function `main':
C:/Users/NEUSA/Desktop/teste/main.cpp:5: undefined reference to `sf::String::String(char const*, std::locale const&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:5: undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
C:/Users/NEUSA/Desktop/teste/main.cpp:5: undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:6: undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'
C:/Users/NEUSA/Desktop/teste/main.cpp:7: undefined reference to `sf::Color::Green'
C:/Users/NEUSA/Desktop/teste/main.cpp:7: undefined reference to `sf::Shape::setFillColor(sf::Color const&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:15: undefined reference to `sf::Window::close()'
C:/Users/NEUSA/Desktop/teste/main.cpp:12: undefined reference to `sf::Window::pollEvent(sf::Event&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:18: undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'
C:/Users/NEUSA/Desktop/teste/main.cpp:18: undefined reference to `sf::RenderTarget::clear(sf::Color const&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:19: undefined reference to `sf::RenderStates::Default'
C:/Users/NEUSA/Desktop/teste/main.cpp:19: undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:20: undefined reference to `sf::Window::display()'
C:/Users/NEUSA/Desktop/teste/main.cpp:9: undefined reference to `sf::Window::isOpen() const'
C:/Users/NEUSA/Desktop/teste/main.cpp:23: undefined reference to `sf::RenderWindow::~RenderWindow()'
C:/Users/NEUSA/Desktop/teste/main.cpp:23: undefined reference to `sf::RenderWindow::~RenderWindow()'
obj\Debug\main.o: In function `ZN2sf11CircleShapeD1Ev':
c:/sfml-2.1/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `vtable for sf::CircleShape'
c:/sfml-2.1/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `vtable for sf::CircleShape'
c:/sfml-2.1/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `sf::Shape::~Shape()'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 6 seconds)
19 errors, 0 warnings (0 minutes, 6 seconds)

3
General / Re: Can't compile tutorial code - it's been 2 days by now
« on: August 07, 2013, 02:46:37 pm »
Here it is. Unfortunately, my output was already as verbose as it gets:

Code: [Select]
-------------- Build: Debug in teste (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -Lc:\sfml-2.1\lib  -o bin\Debug\teste.exe obj\Debug\main.o    -lsfml-graphics-s-d -lsfml-window-s-d -lsfml-system-s-d
obj\Debug\main.o: In function `main':
C:/Users/NEUSA/Desktop/teste/main.cpp:5: undefined reference to `sf::String::String(char const*, std::locale const&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:5: undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
C:/Users/NEUSA/Desktop/teste/main.cpp:5: undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:6: undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'
C:/Users/NEUSA/Desktop/teste/main.cpp:7: undefined reference to `sf::Color::Green'
C:/Users/NEUSA/Desktop/teste/main.cpp:7: undefined reference to `sf::Shape::setFillColor(sf::Color const&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:15: undefined reference to `sf::Window::close()'
C:/Users/NEUSA/Desktop/teste/main.cpp:12: undefined reference to `sf::Window::pollEvent(sf::Event&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:18: undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'
C:/Users/NEUSA/Desktop/teste/main.cpp:18: undefined reference to `sf::RenderTarget::clear(sf::Color const&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:19: undefined reference to `sf::RenderStates::Default'
C:/Users/NEUSA/Desktop/teste/main.cpp:19: undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'
C:/Users/NEUSA/Desktop/teste/main.cpp:20: undefined reference to `sf::Window::display()'
C:/Users/NEUSA/Desktop/teste/main.cpp:9: undefined reference to `sf::Window::isOpen() const'
C:/Users/NEUSA/Desktop/teste/main.cpp:23: undefined reference to `sf::RenderWindow::~RenderWindow()'
C:/Users/NEUSA/Desktop/teste/main.cpp:23: undefined reference to `sf::RenderWindow::~RenderWindow()'
obj\Debug\main.o: In function `ZN2sf11CircleShapeD1Ev':
c:/sfml-2.1/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `vtable for sf::CircleShape'
c:/sfml-2.1/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `vtable for sf::CircleShape'
c:/sfml-2.1/include/SFML/Graphics/CircleShape.hpp:41: undefined reference to `sf::Shape::~Shape()'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
19 errors, 0 warnings (0 minutes, 0 seconds)

Should I post the files of the project here? Like, in a .zip?

4
General / Re: Can't compile tutorial code - it's been 2 days by now
« on: August 07, 2013, 05:23:49 am »
I've added all 3 as you suggested (had that one pass by me), but still am getting the same 19 errors.

5
General / Re: Can't compile tutorial code - it's been 2 days by now
« on: August 07, 2013, 05:05:35 am »
Here's what I have there:

sfml-graphics-s-d

It seems to me it should be sufficient, since I'm only using Graphics.hpp as this is the code from tutorial.
Thanks again.

6
General / Re: Can't compile tutorial code - it's been 2 days by now
« on: August 07, 2013, 04:49:43 am »
Hi Gobbles, thanks for the reply. Yes, I'm already using sfml-graphics-s-d for debug and sfml-graphics-s for release.

7
General / Can't compile tutorial code - it's been 2 days by now
« on: August 07, 2013, 01:43:41 am »
Hi there, I'm new to SFML and to the forums, this is my first post.
It's been 2 days by now since I started to try getting SFML 2.1 code from tutorial to compile.
So, what I am using:
- SFML 2.1
- CodeBlocks 12.11 and MinGW (same installation, files in MinGW's bin folder including libgcc_s_dw2-1.dll and libgcc_s_sjlj-1.dll)
- Windows 7
(I'm sticking with CodeBlocks, but already tried Visual Studio and NetBeans with no success.)
I've followed the tutorial, downloading the package SFML-2.1-windows-gcc-4.7-tdm-64bits (and already tried the others with no success, ofc)
My folder is SFML-2.1 in C: drive, which I've linked accordingly.
I've done the linkages for both debug and release types, using static libraries.
"include" and "lib" linkages, sfml-graphics-s, SFML_STATIC #define etc. Everything done as the tutorial told me, but I'm still getting these errors (the code I'm using is the one from the tutorial):

obj\Debug\main.o||In function `main':|
C:\Users\NEUSA\Desktop\teste\main.cpp|5|undefined reference to `sf::String::String(char const*, std::locale const&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|5|undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|5|undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|6|undefined reference to `sf::CircleShape::CircleShape(float, unsigned int)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|7|undefined reference to `sf::Color::Green'|
C:\Users\NEUSA\Desktop\teste\main.cpp|7|undefined reference to `sf::Shape::setFillColor(sf::Color const&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|15|undefined reference to `sf::Window::close()'|
C:\Users\NEUSA\Desktop\teste\main.cpp|12|undefined reference to `sf::Window::pollEvent(sf::Event&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|18|undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|18|undefined reference to `sf::RenderTarget::clear(sf::Color const&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|19|undefined reference to `sf::RenderStates::Default'|
C:\Users\NEUSA\Desktop\teste\main.cpp|19|undefined reference to `sf::RenderTarget::draw(sf::Drawable const&, sf::RenderStates const&)'|
C:\Users\NEUSA\Desktop\teste\main.cpp|20|undefined reference to `sf::Window::display()'|
C:\Users\NEUSA\Desktop\teste\main.cpp|9|undefined reference to `sf::Window::isOpen() const'|
C:\Users\NEUSA\Desktop\teste\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
C:\Users\NEUSA\Desktop\teste\main.cpp|23|undefined reference to `sf::RenderWindow::~RenderWindow()'|
obj\Debug\main.o||In function `ZN2sf11CircleShapeD1Ev':|
c:\sfml-2.1\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `vtable for sf::CircleShape'|
c:\sfml-2.1\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `vtable for sf::CircleShape'|
c:\sfml-2.1\include\SFML\Graphics\CircleShape.hpp|41|undefined reference to `sf::Shape::~Shape()'|
||=== Build finished: 19 errors, 0 warnings (0 minutes, 1 seconds) ===|

Help, please?

P.s. 1: Please, don't be rude. It's not like I didn't read the tutorials. I must have read them a thousand times by now, and I'm trying to get this to compile since yesterday.
P.s. 2: I've tried searching for similar problems on the forum, but I'm getting a Database Error.

Pages: [1]
anything