News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

windows 8 can't build debug can't find file

Started by gatolen, October 09, 2015, 04:07:52 AM

Previous topic - Next topic

gatolen

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.

stahta01

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]

gatolen

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.

gatolen

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

scarphin

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.

gatolen

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.

gatolen

Searching the forums turns up many different compiler issues but they don't seem to be from the default driver issue.

stahta01

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++.
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]

gatolen

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.

gatolen

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.

stahta01

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++.
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]

gatolen

Thanks Tim, Working at getting it downloaded.

gatolen

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

gatolen

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

BlueHazzard

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...

Quote from: gatolen 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

i don't get this part:
Quoteto 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:
Quote from: stahta01 on October 09, 2015, 04:19:45 AM
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