Author Topic: fatal error: _defs.h:No such file or directory  (Read 7412 times)

Offline sinha.harry23

  • Single posting newcomer
  • *
  • Posts: 4
fatal error: _defs.h:No such file or directory
« on: June 18, 2015, 11:25:34 am »
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?

Online stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: fatal error: _defs.h:No such file or directory
« Reply #1 on: June 18, 2015, 02:19:02 pm »
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++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sinha.harry23

  • Single posting newcomer
  • *
  • Posts: 4
Re: fatal error: _defs.h:No such file or directory
« Reply #2 on: June 18, 2015, 07:04:56 pm »
thank you for the reply ....... i've still not been able to fix the problem.......here's the build log:-

Online stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: fatal error: _defs.h:No such file or directory
« Reply #3 on: June 18, 2015, 08:00:19 pm »
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.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.
« Last Edit: June 18, 2015, 08:18:57 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sinha.harry23

  • Single posting newcomer
  • *
  • Posts: 4
Re: fatal error: _defs.h:No such file or directory
« Reply #4 on: June 18, 2015, 09:17:26 pm »
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.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: fatal error: _defs.h:No such file or directory
« Reply #5 on: June 18, 2015, 09:23:45 pm »
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++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sinha.harry23

  • Single posting newcomer
  • *
  • Posts: 4
Re: fatal error: _defs.h:No such file or directory
« Reply #6 on: June 18, 2015, 10:09:10 pm »
thanks once again Tim  :) ......there's one more thing in the attachment below:-

Online stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: fatal error: _defs.h:No such file or directory
« Reply #7 on: June 18, 2015, 10:11:46 pm »
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.
« Last Edit: June 18, 2015, 11:09:50 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org