🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by ELDER%VAX.OXFORD.AC.UK Fri, 24 Mar 1989 14:28
Problem with static double array
#1788
Author: ELDER%VAX.OXFORD.AC.UK
Date: Fri, 24 Mar 1989 14:28
31 lines
1065 bytes
Version: 1.34.0
System:  Sun-4110 running SunOS 4.0.1
Files:   tm.h -> tm-sparc.h   md -> sparc.md

Source file:

static double s[16];

main()
$
    s[0] = 0;


Problem: compiling and running using
    g++ -o try try.cc
    try

provokes the message
    Bus error (core dumped)

Replacing double by float causes the problem to go away.
The original source file seems to work OK with gcc 1.34.0


PS A second general problem is that I cannot get g++ to produce
   dynamically linked executables, although gcc will do so.
   Is this a problem with ld++ ?

John Elder
Department of Biochemistry
University of Oxford
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads