{"author_name":"Trasevol_Dog","cat":"LD #34","comments":[],"epoch":1449952140,"likes":0,"metadata":{"p_key":"11076","p_author":"Trasevol_Dog","p_authorkey":"51405","p_urlkey":"46312","p_title":"HALP!","p_cat":"LD #34","p_event":"LD34","p_time":"1449952140","p_likes":"0","p_comments":"0","p_status":"UPD5","us_key":"51405","us_name":"Trasevol_Dog","us_username":"trasevol_dog","event_start":"1449792000","event_key":"31","event_name":"LD34"},"text":"<p>Hi!<\/p>\n <p>&nbsp;<\/p>\n <p>I hope the LD34 is going well for everyone even though it probably isn&#8217;t!<\/p>\n <p>I have an issue. I am coding my game in c with sdl2 on Linux, and I haven&#8217;t done that in while and it seems I can&#8217;t cross-compile it to windows. Well I can but the executable just doesn&#8217;t do anything. The code runs just fine on Linux itself. Here is the command line I use to cross-compile the thing:<\/p>\n <p>i686-w64-mingw32-gcc code.c -o exe -lmingw32 -lm -L\/mySDL2folder\/i686-w64-mingw32\/lib -I\/mySDL2folder\/i686-w64-mingw32\/include -lSDL2main -lSDL2 -lSDL2_ttf -lSDL2_mixer -lSDL2_image -mwindows<\/p>\n <p>So yea, I am using mingw64, the sdl2 dev files should be alright as I did successfully cross-compile with them in the past, although it was for Windows 7 and I am now on Windows 10. I can&#8217;t cross compile a simple hello world application either so I guess I&#8217;m missing one or two mingw32 flags maybe?<\/p>\n <p>Does anyone have any idea?<\/p>\n <p>&nbsp;<\/p>\n <p>Thanks and happy jamming to you!<\/p>","time":"December 12th, 2015 3:29 pm","title":"HALP!"}