iphonekda.blogg.se

Codeblocks compiler settings to prevent winmain16 errors
Codeblocks compiler settings to prevent winmain16 errors





codeblocks compiler settings to prevent winmain16 errors

Build: Debug in SDL (compiler: Copy of GNU GCC Compiler(64)).

codeblocks compiler settings to prevent winmain16 errors

I'll be back with more questions as I get deeper into SDL code. Thanks much for your interest and all your suggestions. I see it still shows up in the Build Log so it may be in the Removed -mwindows from the project settings and it still worked. I Also had to update all the project's build options and properties.Īfter all that was complete everything worked. Then I had to figure how to set it up in Code:Blocks for compiling I found a 64 bit mingw32 that took a long time to download and Got a late start on this problem today because I was up past 2AM. Project -> build option Put check mark on " Have g++ follow the C++11 ISO C++ language standard " Go to project > build option and put a check mark on "Have g++ follow the C++11 ISO C++ language standard ".

codeblocks compiler settings to prevent winmain16 errors

Select the checkbox in Settings-> Compiler > Build options "Explicitly add currently compiling file's directory to compiler search dirs". There was a suggestions on the web regarding placing -mwindows as compilerįlag which you can see in the Build logs. Process terminated with status 1 (0 minute(s), 0 second(s))Ģ error(s), 0 warning(s) (0 minute(s), 0 second(s))

codeblocks compiler settings to prevent winmain16 errors

Process terminated with status 0 (0 minute(s), 0 second(s))Ġ error(s), 0 warning(s) (0 minute(s), 0 second(s))Ĭ:/Program Files (x86)/CodeBlocks/MinGW/bin/./lib/gcc/mingw32/4.9.2/./././libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to error: ld returned 1 exit status Output file is bin\Debug\SDL.exe with size 1.01 MB Mingw32-g++.exe -Wall -std=c++11 -fexceptions -g -mwindows -std=c++11 -mwindows -IC:\SDL2-2.0.5\include\SDL2 -I"C:\Program Files\CodeBlocks\SDL" -IC:\SDL2-2.0.5\include\SDL2 -I"C:\Program Files\CodeBlocks\SDL" -c "C:\Program Files\CodeBlocks\SDL\main.cpp" -o obj\Debug\main.o Build: Debug in SDL (compiler: GNU GCC Compiler). If I add #include and try to build itĪgain I get the error message 'undefined reference to name is main.cpp When I build a simple "Hello World" program there are no errors and The compiler I use is Mingw32 and search directories set toĬ:\SDL2-2.0.5\include\SDL. I am running Code::Blocks version 16.01 on Windows 7 Professional SP1 Here's the information I left out in my original post.







Codeblocks compiler settings to prevent winmain16 errors