Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Cross Compiling Help
Index -> Programming, C -> C Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DtY




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, C -> C Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: