🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2122

Re: Linking problems onder gcc 2.2.2

#2122
From: T.Lampre
Date: Thu, 15 Oct 1992 04:27
29 lines
1556 bytes
In article <92287.163931U52468@uicvm.uic.edu> U52468@uicvm.uic.edu writes:
>
>  I'm having problems linking under gcc/os/2.  First, gcc won't link by itself.
>Fine, I use gcc -c and link386.. This works.. sometimes..  I have had, as of
>yet, no success linking c++ programs.  The linker always reports this error:
>
>Unresolved external entry:
>  __CTOR_LIST__
>  __DTOR_LIST__
>
>I searched the object files I was linking and did not find these strings.  I
>did find them, once each, in libc.lib and a number of times in the c++
>library file.  This is confusing!   What am i doing wrong??
>

You need to run collect on the output. See sample program no 2 for an
example. The next version of gcc/2 will not require this.

>  Also, I have some object files I would like to turn into a library.  How
>can I do this??
>

Get glibp113.zoo from ftp-os2.nmsu.edu. It is in
pub/os2/2.0/programming/gcc2-222.

(Actually, I thought glib was at version 1.14, where did it go?)

Trevor Lampre
<mmtl@cc.flinders.edu.au>
Technical Details
Message-ID: <1992Oct15.042733.48910@frodo.cc.flinders.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!sgiblab!munnari.oz.au!yoyo.aarnet.edu.au!frodo.cc.flinders.edu.au!hobson.cc.flinders.edu.au!mmtl
References: <92287.163931U52468@uicvm.uic.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!hoptoad!pacbell.com!sgiblab!munnari.oz.au!yoyo.aarnet.edu.au!frodo.cc.flinders.edu.au!hobson.cc.flinders.edu.au!mmtl
From: mmtl@hobson.cc.flinders.edu.au (T.Lampre)
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
Subject: Re: Linking problems onder gcc 2.2.2
Message-ID: <1992Oct15.042733.48910@frodo.cc.flinders.edu.au>
Date: 15 Oct 92 04:27:33 GMT
References: <92287.163931U52468@uicvm.uic.edu>
Sender: @frodo.cc.flinders.edu.au
Organization: Flinders University
Lines: 29