User forums > Help

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

(1/4) > >>

baconbeastnz:
Trying to run : http://www.sdltutorials.com/sdl-tutorial-basics/#comment-279

Linking executable: bin\SDL Tutorial 1.exe
CApp.h.gch\Release_CApp_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

And yep I've tried unchecking linker & compile settings in my header properties.

stahta01:
One remove CApp.h.gch from the CodeBlocks project if it exists in it.

Two delete the file CApp.h.gch.

The extension gch are for precompiled headers your gch might be corrupted, so deleting it should cause it to be re-created without error.

Tim S

baconbeastnz:
it gets created everytime, and ive tried deleting it... what does this error actually mean

stahta01:
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

Shadow:
Open CApp.h in the editor and right click the tab with the file's name on it. Click "Properties", go to "Build", and unclick "Link file." I had the same issue but it works fine for me now.

Navigation

[0] Message Index

[#] Next page

Go to full version