News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

fatal error: _defs.h:No such file or directory

Started by sinha.harry23, June 18, 2015, 11:25:34 AM

Previous topic - Next topic

sinha.harry23

I have recently started using code blocks::13.12,as I try to build&run my program the following message is shown:-


How do I fix this?

stahta01

Please click on link and read and follow the directions.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

If you can NOT figure out the problem posting a build log will help others help you.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

sinha.harry23

thank you for the reply ....... i've still not been able to fix the problem.......here's the build log:-

stahta01

#3
Learn how to cut and paste; and, please use code tags!

Edit: Please learn to also follow direction and post the full build log!

Edit2: The little you posted implies a bad compiler installation; I will look for the directions that I posted in the past to try to troubleshoot this issue.

Edit3: Link to the direction on my github site https://github.com/stahta01/stahta01.github.io/blob/master/CodeBlocks/CB_Trouble_Shooting/CodeBlocks%20MinGW%20GCC%20Troubleshooting.txt

I feel rotten today; so, I hope I wrote clear enough directions for you to follow.

Edit4: Posted the steps here on the forum http://forums.next.codeblocks.org/index.php/topic,20359.msg138588.html#msg138588
To comment on the directions use that thread.
To post your info and ask questions about your setup use this thread.
If in doubt use your own thread to post.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

sinha.harry23

Tim ,thank you again for helping me out.......btw there's a new problem i am facing....i've attached the screenshot below.I would be really thankful if you could help me out with this issue.

stahta01

Try saving the file. You edited but did NOT save it; the "*" before the name means it has NOT been saved.
Also, I suggest using CB Projects and adding the file to the project.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

sinha.harry23

thanks once again Tim  :) ......there's one more thing in the attachment below:-

stahta01

#7
Try using the C++ header instead of old name that ends in ".h".

And, try learning how to cut and paste text !!!!!!!!!!!!!!!!!!!!!!!!!!!!

Edit2: Please READ this link and try to follow it!!
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]