any program will do, like
#include <iostream>

int main(void) {
    std::cout<<2<<std::endl;

    return 0;
}

 
I have been trying the mingw-w64 and experimental builds, and all the sf.net 
downloads are corrupted. am using ff29.0.1 on win7x64.


-------------
Jim Michaels
[email protected]
[email protected]
http://RenewalComputerServices.com
http://JesusnJim.com (my personal site, has software)
---
IEC Units: Computer RAM & SSD measurements, microsoft disk size measurements 
(note: they will say GB or MB or KB or TB when it is IEC Units!):
[KiB] [MiB] [GiB] [TiB]
[2^10B=1,024^1B=1KiB]
[2^20B=1,024^2B=1,048,576B=1MiB]
[2^30B=1,024^3B=1,073,741,824B=1GiB]
[2^40B=1,024^4B=1,099,511,627,776B=1TiB]
[2^50B=1,024^5B=1,125,899,906,842,624B=1PiB]
SI Units: Hard disk industry disk size measurements:

[kB] [MB] [GB] [TB]
[10^3B=1,000B=1kB]
[10^6B=1,000,000B=1MB]
[10^9B=1,000,000,000B=1GB]
[10^12B=1,000,000,000,000B=1TB]
[10^15B=1,000,000,000,000,000B=1PB]




>________________________________
> From: Ruben Van Boxem <[email protected]>
>To: "[email protected]" 
><[email protected]> 
>Sent: Monday, June 2, 2014 2:53 AM
>Subject: Re: [Mingw-w64-public] issue with .map file generation
> 
>
>
>2014-06-02 11:25 GMT+02:00 Jim Michaels <[email protected]>:
>
>what I am seeing is the offset from the event viewer's crashdump info (the 
>offset) doesn't match the code offset address in the .map file I generate 
>using -xLinker -Map=whereis.map
>>
>>I wish I could have gcc generate code to catch these exceptions like "Access 
>>Viuolation 0xc0000005" and give some useful info like a line number, or 
>>generate some file that contains the proper offset address.
>>
>
>
>Well, if you run a version of the program compiled with "-g" or even "-g3" 
>(and NOT linked with "-s" or -Wl,-s"), and at the moment of the segfault you 
>type into the gdb console "bt", you will be able to see exactly what function 
>calls lead to the crash. So you do:
>
>gcc -g blabla.c blabla2.c ... -o myprogram.exe
>
>gdb myprogram
>
>> run
>
>[segfault or other signaling error]
>
>> bt
>
>
>If you're allergic to the commandline, you can try running your program from 
>within an IDE like Qt Creator, which can visually aid you to step through the 
>code.
>
>
>That being said, if a compiler update is to blame, have you recompiled all 
>binaries that are used to create the program? There might be an 
>incompatibility lurking somewhere. This is just a guess though. A SSCCE is 
>needed to really diagnose your problem.
>
>
>Ruben
>
>
>
>>the event viewer shows P8: 0000000000019a8a (the offset)
>>the offset in the .map file and in objdump output starts with 401000 
>>(hexadecimal)
>>
>>so I need to find a way of generating proper .map files for debugging. is 
>>there a switch I am missing?
>>
>>between compiler segfaults and this, things are not looking too well for my 
>>programs.
>>Jim Michaels
>>
>>I am working on trying to find a way to boil down the compiler segfault into 
>>a bite-sized piece rather than sending the whole shebang. it might be hard be 
>>hard, nailing this one down is difficult, because it throws an error and 
>>segfaults on a perfectly good piece of code.
>>
>>
>>
>>--------------------------------------------
>>On Mon, 6/2/14, Ruben Van Boxem <[email protected]> wrote:
>>
>> Subject: Re: [Mingw-w64-public] issue with .map file generation
>> To: "[email protected]" 
>><[email protected]>
>> Date: Monday, June 2, 2014, 1:22 AM
>>
>>
>> You
>> cannot debug GCC generated programs with the Windows/Visual
>> Studio tools. You must use GDB.
>>
>> Ruben
>>
>>
>> 2014-06-02 9:46 GMT+02:00
>> Jim Michaels <[email protected]>:
>>
>> I am
>> unable to debug my programs, because the .map files and
>> .objdump files that are generated don't match the offset
>> given by werfault.exe which provides the minidump info form
>> windows. I did not want to use gdb.
>>
>>
>>
>>
>> -------------
>>
>> Jim Michaels
>>
>> [email protected]
>>
>> [email protected]
>>
>> http://RenewalComputerServices.com
>>
>> http://JesusnJim.com (my
>> personal site, has software)
>>
>> ---
>>
>> IEC Units: Computer RAM & SSD measurements, microsoft
>> disk size measurements (note: they will say GB or MB or KB
>> or TB when it is IEC Units!):
>>
>> [KiB] [MiB] [GiB] [TiB]
>>
>> [2^10B=1,024^1B=1KiB]
>>
>> [2^20B=1,024^2B=1,048,576B=1MiB]
>>
>> [2^30B=1,024^3B=1,073,741,824B=1GiB]
>>
>> [2^40B=1,024^4B=1,099,511,627,776B=1TiB]
>>
>> [2^50B=1,024^5B=1,125,899,906,842,624B=1PiB]
>>
>> SI Units: Hard disk industry disk size measurements:
>>
>>
>>
>> [kB] [MB] [GB] [TB]
>>
>> [10^3B=1,000B=1kB]
>>
>> [10^6B=1,000,000B=1MB]
>>
>> [10^9B=1,000,000,000B=1GB]
>>
>> [10^12B=1,000,000,000,000B=1TB]
>>
>> [10^15B=1,000,000,000,000,000B=1PB]
>>
>>
>>
>>
>>
>>
>>
>> 
>>------------------------------------------------------------------------------
>>
>> Learn Graph Databases - Download FREE O'Reilly Book
>>
>> "Graph Databases" is the definitive new guide to
>> graph databases and their
>>
>> applications. Written by three acclaimed leaders in the
>> field,
>>
>> this first edition is now available. Download your free book
>> today!
>>
>> http://p.sf.net/sfu/NeoTech
>>
>> _______________________________________________
>>
>> Mingw-w64-public mailing list
>>
>> [email protected]
>>
>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>>
>>
>> -----Inline Attachment Follows-----
>>
>>
>> 
>>------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE
>> O'Reilly Book
>> "Graph
>> Databases" is the definitive new guide to graph
>> databases and their
>> applications. Written
>> by three acclaimed leaders in the field,
>> this first edition is now available. Download
>> your free book today!
>> http://p.sf.net/sfu/NeoTech
>> -----Inline Attachment Follows-----
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Mingw-w64-public mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>>
>>------------------------------------------------------------------------------
>>Learn Graph Databases - Download FREE O'Reilly Book
>>"Graph Databases" is the definitive new guide to graph databases and their
>>applications. Written by three acclaimed leaders in the field,
>>this first edition is now available. Download your free book today!
>>http://p.sf.net/sfu/NeoTech
>>_______________________________________________
>>Mingw-w64-public mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>
>
>
>------------------------------------------------------------------------------
>Learn Graph Databases - Download FREE O'Reilly Book
>"Graph Databases" is the definitive new guide to graph databases and their 
>applications. Written by three acclaimed leaders in the field, 
>this first edition is now available. Download your free book today!
>http://p.sf.net/sfu/NeoTech
>
>_______________________________________________
>Mingw-w64-public mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
>
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to