Compiling with G++ and segment fault on vector declaration
Thu Sep 16 23:16:00 GMT 2010
Thanks Marco. It worked!
I don't know how you got g++ version 4.3.4
Because the only version I see available is 3.4.4
I would like to understand the cause of this.
Does gcc work differently in cygwin?
How come I don't need to specify the header file?
On Thu, Sep 16, 2010 at 1:28 PM, Marco Atzeri <email@example.com> wrote:
> --- Gio 16/9/10, John Yoon ha scritto:
>> Hi there!
>> I have set the links to the files I used below:
>> I run this on cygwin:
>> $ g++ cards.h cards.cpp hw8.cpp
>> cards.h:74: internal compiler error: Segmentation fault
>> Please submit a full bug report,
>> with preprocessed source if appropriate.
>> See <URL:http://cygwin.com/problems.html> for
>> These files run fine on Ubuntu and LinuxMint
>> Any idea what the problem could be?
> also on cygwin
> $ g++ -c cards.cpp -o cards.o
> $ g++ -c hw8.cpp -o hw8.o
> $ g++ hw8.o cards.o -o cards
> $ g++ hw8.cpp cards.cpp -o cards
> $ g++ --version
> g++ (GCC) 4.3.4 20090804 (release) 1
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin