User forums > Help

mm its late & gch: file not recognized: File format not recognized

<< < (2/4) > >>

baconbeastnz:
wicked sick, now im just getting this:


-------------- Build: Release in SDL Tutorial 1 ---------------

mingw32-g++.exe -LC:\SDL\lib -L"C:\Program Files\Microsoft Visual Studio 9.0\VC\lib"  -o "bin\SDL Tutorial 1.exe" obj\CApp_OnCleanup.o obj\CApp_OnEvent.o obj\CApp_OnInit.o obj\CApp_OnLoop.o obj\CApp_OnRender.o obj\CApp.o   -s  -lmingw32 -lSDLmain -lSDL -lmingw32 -lSDLmain -lSDL  -mwindows
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c:(.text+0x1b3): undefined reference to `__imp___iob'
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c:(.text+0x1ce): undefined reference to `__imp___iob'
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c:(.text+0x1df): undefined reference to `__imp___iob'
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c:(.text+0x1f2): undefined reference to `__imp___iob'
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c:(.text+0x265): undefined reference to `__imp___iob'
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c:(.text+0x276): more undefined references to `__imp___iob' follow
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c:(.text+0x2c3): undefined reference to `__imp__atexit'
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c:(.text+0x2d3): undefined reference to `__imp___onexit'
C:\SDL\lib/libSDLmain.a(SDL_win32_main.o): In function `ParseCommandLine':
/usr/local/cross-tools-mingw32/bin/../../cross-tools/usr/local/include/ctype.h:158: undefined reference to `__imp____mb_cur_max'
/usr/local/cross-tools-mingw32/bin/../../cross-tools/usr/local/include/ctype.h:158: undefined reference to `__imp___pctype'
/usr/local/cross-tools-mingw32/bin/../../cross-tools/usr/local/include/ctype.h:158: undefined reference to `__imp___pctype'
/usr/local/cross-tools-mingw32/bin/../../cross-tools/usr/local/include/ctype.h:158: undefined reference to `__imp____mb_cur_max'
C:\SDL\lib/libSDLmain.a(SDL_win32_main.o): In function `ShowError':
/Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:142: undefined reference to `__imp___iob'
C:\SDL\lib/libSDLmain.a(SDL_win32_main.o): In function `cleanup_output':
/Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:169: undefined reference to `__imp___iob'
/Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:170: undefined reference to `__imp___iob'
C:\SDL\lib/libSDLmain.a(SDL_win32_main.o): In function `WinMain':
/Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:308: undefined reference to `__imp___iob'
/Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:331: undefined reference to `__imp___iob'
C:\SDL\lib/libSDLmain.a(SDL_win32_main.o):/Users/hercules/trunk/SDL-1.2/./src/main/win32/SDL_win32_main.c:345: more undefined references to `__imp___iob' follow
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
17 errors, 0 warnings

baconbeastnz:
cancel that, its working!!! omg

Carola:
Bringing back up an old topic (did as I was told: first try to search),
just so you know what's been said already.
I'm not adding any code, because the problem is similar.
Anyway, I don't get it sorted. Either:

1. I check 'Link File', and I get the error with the .gch file (same as in previous posts, I can delete it, but it's constructed anew)
2. I uncheck 'Link File', and I get a whole load of 'undefined reference' errors.

stahta01:

--- Quote from: stahta01 on June 02, 2008, 03:38:23 am ---Turn on Full Compiler Logging and post the commands that cause the error; and someone might be able to help you.

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S

--- End quote ---

Carola:
Sorry, I thought, maybe some new developments/experiences
made it an easy question to answer, since it's a question I've
seen has been popping up at various forums, though all give
the same solutions, and it seems arbitrary if it works out or not.

I'll try to be precise, let me know if you need any more.

1. checked both "link" & "compile" buttons for "StringTokenizer.h".

Build log gives:


--- Code: ---mingw32-g++.exe -L"D:\2 - Bouwkunde\070901 - MSc Bouwkunde aan TUe\PROJ FEM-Tool\1 - Programma HH" -L"C:\Program Files\CodeBlocks\MinGW\GNU\include"  -o bin\Debug\HH.exe obj\Debug\main.o StringTokenizer.h.gch    "C:\Program Files\CodeBlocks\MinGW\lib\libglu32.a"
StringTokenizer.h.gch: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
--- End code ---

What does "status 1" mean?
I tried friend Google, he just gives a lot of forums with questions similar to mine.


2. unchecked "link" button, checked "compile" button for "StringTokenizer.h"

Build log (fragment):


--- Code: ---obj\Debug\main.o||In function `_Z10createRoomSs':|
D:\2 - Bouwkunde\070901 - MSc Bouwkunde aan TUe\PROJ FEM-Tool\1 - Programma HH\main.cpp|129|undefined reference to `StringTokenizer::nextToken()'|
D:\2 - Bouwkunde\070901 - MSc Bouwkunde aan TUe\PROJ FEM-Tool\1 - Programma HH\main.cpp|131|undefined reference to `StringTokenizer::nextToken()'|
D:\2 - Bouwkunde\070901 - MSc Bouwkunde aan TUe\PROJ FEM-Tool\1 - Programma HH\main.cpp|134|undefined reference to `StringTokenizer::nextToken()'|
D:\2 - Bouwkunde\070901 - MSc Bouwkunde aan TUe\PROJ FEM-Tool\1 - Programma HH\main.cpp|137|undefined reference to `StringTokenizer::nextToken()'|

[...]

D:\2 - Bouwkunde\070901 - MSc Bouwkunde aan TUe\PROJ FEM-Tool\1 - Programma HH\main.cpp|3623|undefined reference to `StringTokenizer::nextToken()'|
D:\2 - Bouwkunde\070901 - MSc Bouwkunde aan TUe\PROJ FEM-Tool\1 - Programma HH\main.cpp|3626|undefined reference to `StringTokenizer::nextToken()'|
D:\2 - Bouwkunde\070901 - MSc Bouwkunde aan TUe\PROJ FEM-Tool\1 - Programma HH\main.cpp|3641|undefined reference to `StringTokenizer::countTokens()'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|

--- End code ---


Code for main.cpp (fragment):

[...]


StringTokenizer.cpp (fragment):

[...]


StringTokenizer.h (entirely):

[...]


Sorry, took out the code
it's someone else's project,
and I figured it isn't relevant for the problem

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version