User forums > Help

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

<< < (5/6) > >>

BlueHazzard:

--- Quote from: gatolen on October 17, 2015, 05:24:18 pm ---Thank you all! I was able to get the program running by uninstalling it a couple times getting my GNC installer redownloading twice and reinstalling. Now time to talk to my computer and learn this wonderful
program. You'll probably hear from me again. Thanks all, Len

--- End quote ---
What is "gnc"?


--- Quote from: gatolen on October 18, 2015, 03:14:14 am --- tied to the popup window giving full administrator control to code blocks for my download.
In just a matter of 20 minutes my linker now has a glitch.

--- End quote ---
why does c::b download files? where do you get your installation file?

It would be easier to help if you post full rebuild logs. All information we need is stored in this log. Only telling us, that you have glitches and corruped files won't help us help you.
OT:  About the corrupt downloads: I think in my last 3 years of Internet usage i never had a corrupt file from downloading, and i used all kind of connections from 56k over ISDN, ADSL and now fiber. How do you (and other) download files? Isn't TCP made for not loosing data? Are you using download manager? Are you checking the md5sums?

greetings

BlueHazzard:

--- Quote from: scarphin on October 15, 2015, 07:43:56 am ---What is the '-march=i486' flag for? What is your architecture?

--- End quote ---

--- Quote from: gatolen on October 18, 2015, 03:14:14 am ---Scarphin, I had tried to identify my processor to the compiler which did not work either.

--- End quote ---
Don't mess with the compiler settings. And if you do, post the full build log. I bet you are not using a processor with i486 architecture....

gatolen:
Hi BlueH, The gnc was a typo gnu was to be there. In the compiler install options during the compiler snaffuu to see if I could direct the install better there is a option to identity the OS system core and that seemed the closest. Now that seems to work, although you maybe right I might remove it but it is working. I'll try to give you the best update on how my install is functioning. I'm using my tablet at a Starbucks now, no airtime left sense that Hugh loss I had during my first install. Okay uninstalled the last code block copy. Still have my GNU Installer on desktop. Reinstalled a fresh copy of code blocks while at this Starbucks. Went through a couple hello world demo writes worked great saved everything from file drop down before leaving. Went to my shop stayed off line and started to open up my first workspace and hello world. Now went to build, just fine, went to run and had the exe. failed. I spent sometime tracing it down found the .o file was located next to the main.c file which was not in the bin file. I think the compiler is working find, tested it on a new project with new main.c and the build was fine. But during the linker phase the .o file is not saved in the obj folder thus the .exe failed statement. I then click on my main.o file, (located next to my main.c file which is not in the
 bin file) and a popup then asks would you like to run cb run console, this maybe a little different I don't have my laptop here, I run the cb console and up comes my program in the command window.
I can modify my hello world then build , all fine, go to run it comes up .exe failed ( I believe linker file not found). Then open up windows explore again, I find the main.o file next to my main.c (not in the
bin file). Click on it, popup says would you like cab console to run file,  yes. Up comes my command
window with the new info added to hello world. I believe when I save file 'hello world' after adding
test words in the program the file is working fine because now the compiler builds correctly from my
source file. Here is where the glitch is the object file does not get saved in the obj folder which I believe is needed for the linker to finish its work. I'll see what data I have left, I paid for extra after that Hugh loss but trying not to have it happen again to me. I'll copy the actual failure message and post it. Thank you for your concern, Len

BlueHazzard:
You mess things up somewhere. According your long posts, you are speculating something about (what i can read from your posts) you have 0 plan. You can keep trying to fix this by your on, and trying things out (and i think with this, you will learn a lot) or you can let us help you. But we will need the full build log.

TL:DR:
I, and all others can't help you if you don't post the full build log, so i will not provide any help as long as you won't post the full build log...

greetings and happy hacking

gatolen:
Hi again ,I am stil at it. Redownloaded the program and I can compile and it runs but the command screen
just turns on for a second then turns off. It does have the Hello world printed on it but is off in less then a second.  I have gone into my gnu program folders and the icons that do open the
command prompt show the same response. Feel I'm getting closer now and will continue my efforts.
The build is as follows:

  Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Users\Len\MDocuments\First Program\
Adding source dir: C:\Users\Len\MDocuments\First Program\
Adding file: C:\Users\Len\MDocuments\First Program\bin\Debug\First Program.exe
Changing directory to: C:/Users/Len/MDOCUM~1/FIRSTP~1/.
Set variable: PATH=.;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Sony\VAIO Improvement;C:\Program Files (x86)\Sony\VAIO Startup Setting Tool;C:\Program Files (x86)\Microchip\xc16\v1.25\bin;C:\Program Files (x86)\Microchip\xc8\v1.35\bin

[debug]Command-line: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/Users/Len/MDOCUM~1/FIRSTP~1/bin/Debug/FIRSTP~1.EXE
[debug]Working dir : C:\Users\Len\MDOCUM~1\FIRSTP~1

Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/Users/Len/MDOCUM~1/FIRSTP~1/bin/Debug/FIRSTP~1.EXE
done

[debug]> set prompt >>>>>>cb_gdb:

Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints

[debug]Reading symbols from C:\Users\Len\MDOCUM~1\FIRSTP~1\bin\Debug\FIRSTP~1.EXE...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.5
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "i686-pc-mingw32".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) 7.5

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set new-console on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Function "__cxa_throw" not defined.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source C:\Program Files (x86)\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory C:/Users/Len/MDOCUM~1/FIRSTP~1/
[debug]Source directories searched: C:/Users/Len/MDOCUM~1/FIRSTP~1;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> tbreak "C:/Users/Len/MDocuments/First Program/main.c:4"
[debug]Temporary breakpoint 2 at 0x40136b: file C:\Users\Len\MDocuments\First Program\main.c, line 4.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: C:\Users\Len\MDOCUM~1\FIRSTP~1\bin\Debug\FIRSTP~1.EXE

Child process PID: 10316

[debug][New Thread 10316.0x2888]
[debug]Temporary breakpoint 2, main () at C:\Users\Len\MDocuments\First Program\main.c:6
[debug]C:\Users\Len\MDocuments\First Program\main.c:6:58:beg:0x40136b
[debug]>>>>>>cb_gdb:

At C:\Users\Len\MDocuments\First Program\main.c:6

[debug]> next
[debug]C:\Users\Len\MDocuments\First Program\main.c:7:89:beg:0x401377
[debug]>>>>>>cb_gdb:

At C:\Users\Len\MDocuments\First Program\main.c:7

[debug]> next
[debug]C:\Users\Len\MDocuments\First Program\main.c:8:104:beg:0x40137c
[debug]>>>>>>cb_gdb:

At C:\Users\Len\MDocuments\First Program\main.c:8

[debug]> next
[debug]0x004010fd in __mingw_CRTStartup ()
[debug]>>>>>>cb_gdb:

In __mingw_CRTStartup () ()

[debug]> bt 30
[debug]#0  0x004010fd in __mingw_CRTStartup ()
[debug]#1  0x76660e60 in msvcrt!__setlc_active () from C:\Windows\SysWOW64\msvcrt.dll
[debug]#2  0x777fac69 in ?? ()
[debug]#3  0x777fac3c in ?? ()
[debug]#4  0x00000000 in ?? ()
[debug]>>>>>>cb_gdb:
[debug]> next
[debug]Single stepping until exit from function __mingw_CRTStartup,
[debug]which has no line number information.
[debug]0x0040670c in ExitProcess@4 ()
[debug]>>>>>>cb_gdb:

In ExitProcess@4 () ()

[debug]> bt 30
[debug]#0  0x0040670c in ExitProcess@4 ()
[debug]#1  0x0040110c in __mingw_CRTStartup ()
[debug]#2  0x00000000 in ?? ()
[debug]>>>>>>cb_gdb:
[debug]> next
[debug]Single stepping until exit from function ExitProcess@4,
[debug]which has no line number information.
[debug]0x76b839e4 in KERNEL32!GetCurrentApplicationUserModelId () from C:\Windows\SysWOW64\kernel32.dll
[debug]>>>>>>cb_gdb:

In KERNEL32!GetCurrentApplicationUserModelId () (C:\Windows\SysWOW64\kernel32.dll)

[debug]> bt 30
[debug]#0  0x76b839e4 in KERNEL32!GetCurrentApplicationUserModelId () from C:\Windows\SysWOW64\kernel32.dll
[debug]#1  0x0040110c in __mingw_CRTStartup ()
[debug]#2  0x00000000 in ?? ()
[debug]>>>>>>cb_gdb:
[debug]> next
[debug]Single stepping until exit from function KERNEL32!GetCurrentApplicationUserModelId,
[debug]which has no line number information.
[debug]0x7780084a in ?? ()
[debug]>>>>>>cb_gdb:

In ?? () ()

[debug]> bt 30
[debug]#0  0x7780084a in ?? ()
[debug]#1  0x0040110c in __mingw_CRTStartup ()
[debug]#2  0x00000000 in ?? ()
[debug]>>>>>>cb_gdb:
[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function

[debug]> next
[debug]Cannot find bounds of current function
[debug]>>>>>>cb_gdb:

Cannot find bounds of current function
Continuing...

[debug]> cont
[debug]Continuing.
[debug][Inferior 1 (process 10316) exited normally]
[debug]>>>>>>cb_gdb:

[Inferior 1 (process 10316) exited normally]

[debug]> quit

Debugger finished with status 0
                                                                                                                 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version