🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #35738

MWC/CSD bug?

#35738
From: Andy Cassino
Date: Tue, 03 Jan 1989 22:44
37 lines
1867 bytes
I'm having trouble with the -VCSD option in Mark Williams C, version 3.05.

The problem was discovered trying to debug a complex GEM application,
but can be demo'd with some very simple files:

foo.h - local include file that defines global variable "foo"
mod1.c - source module which #includes foo.h
main.c - another source module which #includes foo.h

The program compiles and runs when I compile with "cc mod1.c main.c".

However, with "cc -VCSD mod1.c main.c" there will be a complaint
similar to:

  "ld: foo redefined in main.c"

The resulting object code does not run (hangs, warm-boot required!)
and CSD is all confused if I try to use it.

If I compile only one of the source modules with -VCSD the link is
okay and I can run CSD (but this means I can debug only one module at
a time, whoopee).

This doesn't happen when a header file like stdio.h is included in
both files.

So, somehow the extra debug stuff generated by -VCSD causes trouble in
the linker. Does anyone know of a workaround? (Yes, I'll be writing
MWC soon!).

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    % Andy Cassino                                                  %
    % uucp: hplabs!hplsla!andyc  domain: andyc%hplsla@hplabs.hp.com %
    % Hewlett-Packard              Lake Stevens Instrument Division %
    % 8600 Soper Hill Road                   Everett, WA 98205-1298 %
    % (206) 335-2211                                                %
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Technical Details
Message-ID: <5440009@hplsla.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!hplabs!hp-pcd!hplsla!andyc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pasteur!ucbvax!hplabs!hp-pcd!hplsla!andyc
From: andyc@hplsla.HP.COM (Andy Cassino)
Newsgroups: comp.sys.atari.st
Subject: MWC/CSD bug?
Message-ID: <5440009@hplsla.HP.COM>
Date: 3 Jan 89 22:44:32 GMT
Organization: HP Lake Stevens, WA
Lines: 37