Project : Console application
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
--------------------------------------------------------------------------------
Switching to target: default
Linking console executable: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\console.exe
C:\Program Files\CodeBlocks\lib/libmingw32.a(main.o):main.c:(.text+0x106): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
Linking console executable: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\console.exePlease enable full command line (see my sig) and re-post the ouput of C::B.
C:\Program Files\CodeBlocks\lib/libmingw32.a(main.o):main.c:(.text+0x106): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
Linking console executable [...] undefined reference to `WinMain@16'Change your target's type to GUI executable (project options).
Loading lexer_cg.xml
Loading lexer_cpp.xml
Loading lexer_f77.xml
Loading lexer_gm.xml
Loading lexer_hitasm.xml
Loading lexer_lua.xml
Loading lexer_prg.xml
Loading lexer_rc.xml
Loading lexer_xml.xml
Loading toolbar...
Added compiler "GNU GCC Compiler"
Added compiler "Microsoft Visual C++ Toolkit 2003"
Added compiler "Borland C++ Compiler 5.5"
Added compiler "Digital Mars Compiler"
Added compiler "OpenWatcom (W32) Compiler"
Added compiler "SDCC Compiler"
Source code formatter (AStyle) plugin loaded
C::B Profiler plugin loaded
Class wizard plugin loaded
Code completion plugin loaded
Code Statistics plugin loaded
Compiler plugin loaded
GDB Debugger plugin loaded
Default MIME handler plugin loaded
Dev-C++ DevPak updater/installer plugin loaded
Source HTML, RTF and ODT exporter plugin loaded
Help plugin plugin loaded
Code::Blocks Plugin wizard plugin loaded
To-Do List plugin loaded
Windows XP Look'n'Feel plugin loaded
Loading workspace "C:\Documents and Settings\Owner.YOUR-99DDF15D27\.CodeBlocks\default.workspace"
Loading project file...
Parsing project file...
Loading target default
Loading project files...
Project's base path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
Project's common toplevel path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
Start parsing project Console application
Concurrent threads for pool set to 2
End parsing project Console application (no files found?)
Setting up compiler environment...
Setting up compiler environment...
Loading project file...
Parsing project file...
Loading target default
Loading project files...
Project's base path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
Project's common toplevel path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
Start parsing project SDL Application
Concurrent threads for pool set to 2
Setting up compiler environment...
Done parsing project SDL Application (1 total parsed files, 67 tokens in 0.47 seconds).
Updating class browser...
Class browser updated.
project data set for C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\game.cpp
Top Editor: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\game.cpp
Loading project file...
Parsing project file...
Loading target default
Loading project files...
Project's base path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
Project's common toplevel path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
Start parsing project SDL Application
Concurrent threads for pool set to 2
Setting up compiler environment...
Done parsing project SDL Application (1 total parsed files, 1 tokens in 0.47 seconds).
Updating class browser...
Class browser updated.
project data set for C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\main.cpp
Setting up compiler environment...
Parser::TerminateAllThreads: Aborting all tasks...
C++ Parser freed
Setting up compiler environment...
Setting up compiler environment...
Parser::TerminateAllThreads: Aborting all tasks...
C++ Parser freed
Setting up compiler environment...
Setting up compiler environment...
Parser::TerminateAllThreads: Aborting all tasks...
C++ Parser freed
12 templates loaded
0 user templates loaded
Loading project file...
Parsing project file...
Loading target default
Loading project files...
Project's base path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
Project's common toplevel path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
Start parsing project SDL Application
Concurrent threads for pool set to 2
End parsing project SDL Application (no files found?)
Setting up compiler environment...
found C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\main.cpp
Scanned 0 files for #includes, cache used 1, cache updated 0
Setting up compiler environment...
Setting up compiler environment...
Scanned 0 files for #includes, cache used 1, cache updated 0
Setting up compiler environment...
Setting up compiler environment...
Scanned 0 files for #includes, cache used 1, cache updated 0
Setting up compiler environment...
Scanned 0 files for #includes, cache used 1, cache updated 0
Setting up compiler environment...
Setting up compiler environment...
Scanned 0 files for #includes, cache used 1, cache updated 0
Setting up compiler environment...
Scanned 0 files for #includes, cache used 1, cache updated 0
Scanned 0 files for #includes, cache used 1, cache updated 0
Scanned 0 files for #includes, cache used 1, cache updated 0
Scanned 0 files for #includes, cache used 1, cache updated 0
Setting up compiler environment...
Scanned 0 files for #includes, cache used 1, cache updated 0
Scanned 0 files for #includes, cache used 1, cache updated 0
Setting up compiler environment...
12 templates loaded
0 user templates loaded
Loading project file...
Parsing project file...
Loading target default
Loading project files...
Project's base path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
Project's common toplevel path: C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\
Start parsing project Console application
Concurrent threads for pool set to 2
End parsing project Console application (no files found?)
Setting up compiler environment...
Could not find Insert menu!
found C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\main.cpp
Scanned 0 files for #includes, cache used 1, cache updated 0
Setting up compiler environment...
Setting up compiler environment...
Scanned 0 files for #includes, cache used 1, cache updated 0
Setting up compiler environment...
Setting up compiler environment...
Scanned 0 files for #includes, cache used 1, cache updated 0
Setting up compiler environment...
Setting up compiler environment...
I followed your sig, and I think you wanted the info under the code::blocks debug tab, if so here it is after i enabled full command line logging.Oh dear... :lol:
#include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}
Switching to target: defaultI have, however noticed that it compiles fine when I click compile, but if I click build I get the message above.
mingw32-g++.exe -L"C:\Program Files\CodeBlocks\lib" -o "C:\Documents and Settings\Owner.YOUR-99DDF15D27\My Documents\myprograms\console.exe" .objs\main.o -lSDL -lSDL_image -lSDLmain
C:\Program Files\CodeBlocks\lib/libmingw32.a(main.o):main.c:(.text+0x106): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
-lSDL -lSDL_image -lSDLmainRemove those libraries from the linker settings of your project and it will certainly work.