Author Topic: windows 8 can't build debug can't find file  (Read 11707 times)

Offline gatolen

  • Multiple posting newcomer
  • *
  • Posts: 18
windows 8 can't build debug can't find file
« on: October 09, 2015, 04:07:52 am »
Hi, Like so many I am just starting code blocks, looks what I need. Installed wrote "Hello World" saved.
Looked for file good location, went to build everything fine, hit run debug request file path correct but does not exist I think. Rechecked location okay. Erased , rewrote and build, same result. Default debug selected.
What am I doing wrong? Thanks for your time.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gatolen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: windows 8 can't build debug can't find file
« Reply #2 on: October 09, 2015, 07:17:56 am »
Hi staha, I looked into those and didn't find what I needed. I may have stated my problem a bit wrong I believe it gets compiled and says that things are good in the build message but when I do run the debug says  the file may not exist. I then force run the file myself from the command prompt , a massage comes up with a  saying  program non compatible for win 64 call vendor. Quite confusing.
I have win8 , GCC 4.7.1 windows/unicode-32 bit. I did compile and run a example program that was Hello World from some library I think in one of the beginner c examples. I'll keep my nose in the books and try again.

Offline gatolen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: windows 8 can't build debug can't find file
« Reply #3 on: October 09, 2015, 09:04:27 pm »
any help out there? l am probably on my own with this. was able to get some files to work but went to save them and when reopening they had multiple paths I guess. I have a list of the build problems when I went to reopen a saved file

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: windows 8 can't build debug can't find file
« Reply #4 on: October 09, 2015, 09:19:28 pm »
You're seriously depleting your chances to get any help by NOT posting a full build log as stated in the first link stahta provided.

Offline gatolen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: windows 8 can't build debug can't find file
« Reply #5 on: October 12, 2015, 09:17:05 pm »
Okay let me try this . I start new project hello world then go to build get
Target see an invalid compiled; run aborted

Went to settings Global compiler GNU GCC Compiler listedu
Goto toolchain click auto-detect "could not auto detect , use default installation directory? Yes
 Same invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!] notice came up.
Debug says error "need to specify debug program in settings
For MinGW compiler it's gdb.exe
Select gdb
Try again same thing.
Seems path to compiler not downloaded from code blocks maybe
Sorry not being more computer savey but I am just learning. Thanks for your reply.

Offline gatolen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: windows 8 can't build debug can't find file
« Reply #6 on: October 12, 2015, 09:24:31 pm »
Searching the forums turns up many different compiler issues but they don't seem to be from the default driver issue.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: windows 8 can't build debug can't find file
« Reply #7 on: October 12, 2015, 11:17:06 pm »
Step 1. Install an C/C++ Compiler
(Record the location you installed it into.)
Step 2. Tell Code::Blocks where the compiler is located.
http://wiki.codeblocks.org/index.php/Installing_a_supported_compiler#Compiler-neutral_setup_steps

Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gatolen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: windows 8 can't build debug can't find file
« Reply #8 on: October 13, 2015, 02:25:58 am »
okay that almost at least i could see that the download failed at a few important areas which resulted in not getting the complier installed. some files made it but the larger ones didn't. this is my older machine with xp my newer one is win8. i saved the download log showing the larger files failing to download. it is pretty long. would you like to see it? it looks like something on the compliers sight gave the failure notice. thank you for your efforts.

Offline gatolen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: windows 8 can't build debug can't find file
« Reply #9 on: October 13, 2015, 04:01:57 am »
tried downloading  quite a few times now with same results the complier files fail about the same time i have 53 giga available so its not storage. the shutdown is from the web. anyone heard of such a thing, thanks again.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: windows 8 can't build debug can't find file
« Reply #10 on: October 13, 2015, 04:26:07 pm »
I suggest learning to use someting other than .doc files inside zip files to report this problem to the website that supports the compiler!
This site supports only the Code::Blocks IDE. It does NOT support any compiler!

Tim S.


C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gatolen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: windows 8 can't build debug can't find file
« Reply #11 on: October 13, 2015, 06:02:28 pm »
Thanks Tim, Working at getting it downloaded.

Offline gatolen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: windows 8 can't build debug can't find file
« Reply #12 on: October 13, 2015, 07:13:59 pm »
Hi all, Well after a night of trying i was able to get my complier downloaded and was able to get a feel of the mingw install manager.
I don't think it came through a standard set up though. I do hello world and open the main save it again but when I try to build the logger says can't find file. Looking under main properties I find it's path but looking into the obj folder it is not there so the compiler is looking in another path I guess. Tim I'll go back into the wiki info on this and see if I can figure it out. Moving foward.

Len

Offline gatolen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: windows 8 can't build debug can't find file
« Reply #13 on: October 13, 2015, 08:18:51 pm »
Hi, Still at it. Tried  adding a path for the compiler to find the saved file hello world but it still can't find the file. I use the properties of the main for the path but the compiler has trouble finding its way probably a bad download. Any suggestions?
Thanks for you efforts. Len

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: windows 8 can't build debug can't find file
« Reply #14 on: October 13, 2015, 11:31:41 pm »
why can't you use http://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/tdm-gcc-5.1.0-3.exe/download
download it, install it, and let c::b auto detect it...

Hi, Still at it. Tried  adding a path for the compiler to find the saved file hello world but it still can't find the file. I use the properties of the main for the path but the compiler has trouble finding its way probably a bad download. Any suggestions?
Thanks for you efforts. Len

i don't get this part:
Quote
to find the saved file hello world but it still can't find the file.
who can't find witch file?
if your compiler is working, then i would suggest:
Read the FAQs http://wiki.codeblocks.org/index.php/FAQ

At least read these ones:
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_My_build_fails_in_the_compile.2Flink.2Frun_step_with_a_Permission_denied_error.3F

Tim S.


specially the part with http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F and there how to post a build log. And don't use .zip files, with .doc in it. Simply paste the build log content in code tags (the # symbol in the new post editor from the forum)

greetings