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

Pages: [1]
1
General / Re: Linker undefined references
« on: December 28, 2015, 04:33:58 pm »
I compiled SFML again but this time setting SFML_USE_STATIC_STD_LIBS flag to TRUE, it works fine.

2
General / Re: Linker undefined references
« on: December 28, 2015, 01:50:01 pm »
I've compiled SFML, and I'm able to compile examples such as Pong.

But I can't get the program to run, I'm getting this error : "wine: Call from 0x7bc52989 to unimplemented function libstdc++-6.dll.__cxa_guard_acquire, aborting"

So I guess the libstdc++-6.dll lack some functions the program needs and I can't do nothing about it...

3
General / Linker undefined references
« on: December 26, 2015, 09:25:09 pm »
Hello,

I'm trying to compile my project from Linux to Windows and the linker is giving me a few undefined references errors.

Using : SFML 2.3.2 for GCC 4.9.2 MinGW (DW2) - 32-bit
and compiling with i686-w64-mingw32-g++ (GCC) 5.3.1

(click to show/hide)

Thanks for your help

4
General / Re: How to stop SFML from printing Warnings ?
« on: August 11, 2015, 01:03:30 pm »
Thank you.

But what has it to do with the way I compile my program ?
Maybe I have two versions of SFML on my computer, and depending on the way I compile it includes one or another ?

5
General / How to stop SFML from printing Warnings ?
« on: August 11, 2015, 12:50:52 pm »
Hi,

When I compile my code with these args
Quote
-W -Wall -std=c++11
Everything is fine.
But when I compile with these args
Quote
$$(pkg-config --cflags --libs gtk+-2.0) -W -Wall -std=c++11
My program runs fine as always but SFML is often printing Warnings such as
Quote
Warning: Partial sends might not be handled properly.
(when sending data through non-blocking tcp socket), how to prevent SFML from printing these annoying Warnings ?
Keep in mind that I need to tell the compiler wich directory to include for gtk so I can't juste remove the compiler argument.

Thanks

6
General / Re: help compiling my game for Windows
« on: September 11, 2014, 07:52:39 pm »
Thanks for your reply you made me figure out the solution.

It works with
Quote
i586-mingw32msvc-g++ main.cpp -o main.exe -W -Wall -DSFML_DYNAMIC -ltgui -lsfml-system -lsfml-window -lsfml-graphics -lsfml-audio -lsfml-network -std=c++11

So the problem was that "main.cpp -o main.exe" should be the first argument and not the last (it's not comfy because I was using an alias). It's strange because when I use just g++ I can put these arguments wherever I want.

7
General / help compiling my game for Windows
« on: September 11, 2014, 06:38:05 pm »
Hi,

My game compiles and runs just fine on Linux (Debian), but when I try to create a Windows binary using mingw it fails.

Here is how I compile :
Quote
i586-mingw32msvc-g++ -W -Wall -DSFML_DYNAMIC -ltgui -lsfml-system -lsfml-window -lsfml-graphics -lsfml-network -lsfml-audio -std=c++11 main.cpp -o main.exe

and this is the output :
(click to show/hide)

lib files are in the right path, otherwise it would have said "Cannot find -libsfml-..."

Thanks for your help.

Pages: [1]