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

Pages: [1]
1
General / Re: Cant compile sfml on windows
« on: January 13, 2017, 05:49:12 pm »
Ok thank you. I was trying to move this to a better place thinking i could delete or move my previous post.

2
General / Cant compile sfml on windows
« on: January 13, 2017, 05:56:28 am »
g++ -IC:\SFML\include -c main.cpp -o main.o
g++ -LC:\SFML\lib -o main.exe -o main.o -lsfml-graphics -lsfml-window -lsfml-system  -lsfml-main -mwindows

I have compiled and tried to execute the program in this way but i get the following error

C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x2e): undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status

3
General / Re: SFML compile c++
« on: January 13, 2017, 12:43:02 am »
gcc -LC:\SFML\lib -o main.exe -o main.o -lsfml-graphics -lsfml-window -lsfml-system -lsfml-main -mwindows

4
General / Re: SFML compile c++
« on: January 13, 2017, 12:13:59 am »
g++ -LC:\SFML\lib -o main.exe -o main.o -lsfml-graphics -lsfml-window -lsfml-system  -mwindows

5
General / Re: SFML compile c++
« on: January 12, 2017, 11:45:37 pm »
Hi, I tried to add the flag but it still produces the same error

6
General / Cant compile sfml on windows
« on: January 12, 2017, 11:02:14 pm »
I have attached a picture of the error that I get.

Pages: [1]
anything