I solved the error by moving "-lwinmm -lmingw32" the end, now the linkers were so "-lSDLmain -lSDL -lfalcon -mwindows -lwinmm -lmingw32. 

But I have a new error:

Compilador: Default compiler
Building Makefile: "H:\Vision 3\Iñaki\SDK - 2009\Virtual_Eyes\Makefile.win"
Ejecutando  make...
make.exe -f "H:\Vision 3\Iñaki\SDK - 2009\Virtual_Eyes\Makefile.win" all
g++.exe Virtual_Eyes.o  -o "Eye Tracker.exe" -L"C:/Dev-Cpp/lib" -lSDLmain -lSDL -lfalcon -mwindows -lwinmm -lmingw32 -mwindows  

C:/Dev-Cpp/lib/libmingw32.a(main.o)(.text+0x106):main.c: undefined reference to `WinMain@16'
collect2: ld returned 1 exit status

make.exe: *** ["Eye] Error 1

Ejecución Terminada


Any Ideas?

On Wed, Oct 28, 2009 at 1:17 PM, Iñaki <proxxo@gmail.com> wrote:
Compilador: Default compiler
Building Makefile: "H:\Vision 3\Iñaki\SDK - 2009\Virtual_Eyes\Makefile.win"
Ejecutando  make...
make.exe -f "H:\Vision 3\Iñaki\SDK - 2009\Virtual_Eyes\Makefile.win" all
g++.exe -c Virtual_Eyes.cpp -o Virtual_Eyes.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"   

g++.exe Virtual_Eyes.o  -o "Eye Tracker.exe" -L"C:/Dev-Cpp/lib" -lwinmm -lmingw32 -mwindows -lSDLmain -lSDL -mwindows falcon.lib C:/Dev-Cpp/lib/SDL.lib C:/Dev-Cpp/lib/SDLmain.lib  

C:/Dev-Cpp/lib/libSDLmain.a(SDL_win32_main.o)(.text+0x397): In function `console_main':
/Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:217: undefined reference to `SDL_main'
collect2: ld returned 1 exit status

make.exe: *** ["Eye] Error 1

Ejecución Terminada


On Wed, Oct 28, 2009 at 1:13 PM, Iñaki <proxxo@gmail.com> wrote:
Salvatore Thanks for the response but that is not the problem, # include "SDL / SDL.h" works well, and the file is well-linked.

Any ideas?

On Wed, Oct 28, 2009 at 12:59 PM, Salvatore Santagati <salvatore.santagati@gmail.com> wrote:
> #include <windows.h>
> #include "SDL/SDL.h"
> #include "falcon.h"
> #include <math.h>
>
> #pragma comment(lib,"SDL.lib")
> #pragma comment(lib,"SDLmain.lib")


http://www.libsdl.org/faq.php?action=listentries&category=2#19

Salvatore

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.

Most annoying abuses are:
1) Top posting
2) Thread hijacking
3) HTML/MIME encoded mail
4) Improper quoting
5) Improper trimming
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users



--
Iñaki Cormenzana Méndez

Computer Science Deliriums.
http://www.proxxo.com.ar




--
Iñaki Cormenzana Méndez

Computer Science Deliriums.
http://www.proxxo.com.ar




--
Iñaki Cormenzana Méndez

Computer Science Deliriums.
http://www.proxxo.com.ar