User forums > Help
won't compile, even defualt console.
avgprogramerjoe:
Hey guys i was working on a game, and I don't think i did anything but my code just wouldn't compile, so i spent all day trying to figure out, untill i reverted to previus code in which had run before, yet did not run then. So i tried the defualt sdl app, which did not run, and the default console which did not run. So i reinstalled codeblocks and it is still not working. I get this message.
--- Quote ---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)
--- End quote ---
I'm using windows xp, 32bt with mingw which i installed with code::blocks, could i have vc++ 05 installed as well and did have devc++. I don't know if any of that matters, and if you need any other info please let me know.
I hope i was informative enough, as I learned from the post, posted earlier with the same problem, except on linux.
Joe
MortenMacFly:
--- Quote from: avgprogramerjoe on September 04, 2007, 02:10:32 am ---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
--- End quote ---
Please enable full command line (see my sig) and re-post the ouput of C::B.
With regards, Morten.
thomas:
--- Quote from: avgprogramerjoe on September 04, 2007, 02:10:32 am ---Linking console executable [...] undefined reference to `WinMain@16'
--- End quote ---
Change your target's type to GUI executable (project options).
avgprogramerjoe:
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.
--- Quote ---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...
--- End quote ---
Is there any other way I can help?
Joe
MortenMacFly:
--- Quote from: avgprogramerjoe on September 04, 2007, 01:45:38 pm ---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.
--- End quote ---
Oh dear... :lol:
I didn't mean the startup-log but the compiler log that has more information afterwards when you are *compiling* the application. Anyway - did you already try the hint Thomas gave you?
Navigation
[0] Message Index
[#] Next page
Go to full version