Cross Compiling Help
Author |
Message |
DtY
![](http://compsci.ca/v3/uploads/user_avatars/8576159234be48b7a8b0e8.png)
|
Posted: Sun Jun 14, 2009 7:54 pm Post subject: Cross Compiling Help |
|
|
The program compiles fine natively for Linux, but I can't get it to cross compile. (Note, I've never done this before).
I installed these packages: mingw32-SDL mingw32-binutils mingw32-cpp mingw32-gcc using yum (Fedora 10)
When I compile, it tells me:
$ i686-pc-mingw32-gcc -o Flashy.exe flash.c -lSDL
In file included from /usr/i686-pc-mingw32/sys-root/mingw/include/SDL/SDL_main.h:26,
from /usr/i686-pc-mingw32/sys-root/mingw/include/SDL/SDL.h:28,
from flash.c:2:
/usr/i686-pc-mingw32/sys-root/mingw/include/SDL/SDL_stdinc.h:72:20: error: iconv.h: No such file or directory
flash.c:5: error: conflicting types for 'SDL_main'
/usr/i686-pc-mingw32/sys-root/mingw/include/SDL/SDL_main.h:53: error: previous declaration of 'SDL_main' was here |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|
|