|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
C++ & SDLCompilador: 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\SDLmain.lib(./Release/SDL_win32_main.obj)(.text[_main]+0x0):C:\SDL-1.2.11\Src\: multiple definition of `main' C:/Dev-Cpp/lib/libmingw32.a(main.o)(.text+0x0):main.c: first defined here Warning: .drectve `/DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized C:/Dev-Cpp/lib\SDLmain.lib(./Release/SDL_win32_main.obj)(.text[_main]+0x55):C:\SDL-1.2.11\Src\: undefined reference to `_alloca_probe' C:/Dev-Cpp/lib\SDLmain.lib(./Release/SDL_win32_main.obj)(.text[_main]+0xcd):C:\SDL-1.2.11\Src\: undefined reference to `SDL_main' C:/Dev-Cpp/lib\SDLmain.lib(./Release/SDL_win32_main.obj)(.text[_WinMain@16]+0x181):C:\SDL-1.2.11\Src\: undefined reference to `_alloca_probe' C:/Dev-Cpp/lib\SDLmain.lib(./Release/SDL_win32_main.obj)(.text[_WinMain@16]+0x1c1):C:\SDL-1.2.11\Src\: undefined reference to `_alloca_probe' collect2: ld returned 1 exit status make.exe: *** ["Eye] Error 1 As you can see I added the compiler linker options -lwinmm -lmingw32 -mwindows -lSDLmain -lSDL . Part of the code: #include <windows.h> #include "SDL/SDL.h" #include "falcon.h" #include <math.h> #pragma comment(lib,"SDL.lib") #pragma comment(lib,"SDLmain.lib") #define OK 1 // Operacion exitosa (encuantra todos los parametros) #define PURK_NO 2 // No encuentra purkinge pero si pupila #define NO 0 // Operacion fracasada (no encuentra nada) #define DATO_NO -99999 // Parametro no encontrado #define GRAF_NO 3 // Error en libreria grafica sdl (incompatibilidad con placa de video) class procesador { ................... Can anyone help me? -- Iñaki Cormenzana Méndez Computer Science Deliriums. http://www.proxxo.com.ar ------------------------------------------------------------------------------ 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@... 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 |
|
|
Re: C++ & SDL> #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@... 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 |
|
|
Re: C++ & SDLSalvatore 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@...> wrote:
-- Iñaki Cormenzana Méndez Computer Science Deliriums. http://www.proxxo.com.ar ------------------------------------------------------------------------------ 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@... 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 |
|
|
Re: C++ & SDLCompilador: 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@...> wrote: Salvatore Thanks for the response but that is not the problem, # include "SDL / SDL.h" works well, and the file is well-linked. -- Iñaki Cormenzana Méndez Computer Science Deliriums. http://www.proxxo.com.ar ------------------------------------------------------------------------------ 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@... 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 |
|
|
Re: C++ & SDLI 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@...> wrote:
-- Iñaki Cormenzana Méndez Computer Science Deliriums. http://www.proxxo.com.ar ------------------------------------------------------------------------------ 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@... 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 |
|
|
Re: C++ & SDL>From: Iñaki <proxxo@...> >To: MinGW Users List <mingw-users@...> >Sent: Wednesday, October 28, 2009 8:33:57 AM >Subject: Re: [Mingw-users] C++ & SDL > >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 Make sure your main function has the signature int main(int, char**). I think I've gotten similar errors by declaring "int main()". The problem is that SDL #defines "main" to SDL_main, then calls it with the original arguments that it got from the real main(). Since your "main" is not the real main, it doesn't get the same flexibility as the real main in its arguments. I don't remember for sure if that's the error I got when I did this. Google is great for looking up error messages. ------------------------------------------------------------------------------ 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@... 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 |
|
|
Re: C++ & SDLQuoting Iñaki <proxxo@...>:
> 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: > Why do you add -lmingw32? You shouldn't do that; the specs file for the linker will add it for you. -- Earnie ------------------------------------------------------------------------------ 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@... 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 |
|
|
Re: C++ & SDLQuoting Andrew Fleenor <andrewfleenor@...>:
>> >> C:/Dev-Cpp/lib/libmingw32.a(main.o)(.text+0x106):main.c: undefined >> reference to `WinMain@16' >> collect2: ld returned 1 exit status >> > > Make sure your main function has the signature int main(int, > char**). I think I've gotten similar errors by declaring "int > main()". The problem is that SDL #defines "main" to SDL_main, then > calls it with the original arguments that it got from the real > main(). Since your "main" is not the real main, it doesn't get the > same flexibility as the real main in its arguments. > How is correcting main() going to provide a reference for WinMain()? Did you notice the -mwindows in the command? That will require WinMain() and not main(). > I don't remember for sure if that's the error I got when I did this. > Google is great for looking up error messages. > It may benefit the list if the responder were to do so before responding. The resolution to the problem is, don't provide -lmingw32 on the command line. -- Earnie ------------------------------------------------------------------------------ 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@... 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 |
|
|
Re: C++ & SDL> From: Earnie Boyd <earnie@...>
> Quoting Andrew Fleenor : > > >> > >> C:/Dev-Cpp/lib/libmingw32.a(main.o)(.text+0x106):main.c: undefined > >> reference to `WinMain@16' > >> collect2: ld returned 1 exit status > >> > > > > Make sure your main function has the signature int main(int, > > char**). I think I've gotten similar errors by declaring "int > > main()". The problem is that SDL #defines "main" to SDL_main, then > > calls it with the original arguments that it got from the real > > main(). Since your "main" is not the real main, it doesn't get the > > same flexibility as the real main in its arguments. > > > > How is correcting main() going to provide a reference for WinMain()? > Did you notice the -mwindows in the command? That will require > WinMain() and not main(). Yes, you might think. However, I speak from personal experience. ------------------------------------------------------------------------------ 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@... 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 |
| Free embeddable forum powered by Nabble | Forum Help |