Article View: comp.os.os2.programmer
Article #457non-emx gcc with IBM toolkit
From: Robert J. Manley
Date: Fri, 24 Jul 1992 19:39
Date: Fri, 24 Jul 1992 19:39
30 lines
1561 bytes
1561 bytes
Hopefully a simple question for you OS/2 2.00 gcc (non-emx) gurus.
I want to use this version of gcc with the IBM developer's toolkit. I have
the icc2gcc file but it looks like it is relevant only for the emx version
(it is very nice though). In the docs it does mention the neccessary trivial
defines (e.g. _Seg16) which allow the compiler to successfully parse the
include files. Furthermore, I have overridden the default "C++" calling
context via the explicit language specification of
extern "C"
{
#include <os2.h>
}
The problem I am having is that the os2386 libs seem to have ASM symbols
i.e. no underscore and case insensitive. The latter I can live with but the
lack of underscores is producing unresolved externals which I can't seem to
get around. Now the question is, can I stop gcc from prepending underscores
to "C" functions (already tried -mno-underscores) or alternatively specify
another language (tried "ASM" and a bunch of others) to accomplish this.
Thanks in advance.
Robert.
--
# Robert J. Manley, rjm@dretor.dciem.dnd.ca #
# #include <std_disclaimer.hpp> #
# NTT Systems Inc., Toronto, Ontario, CANADA #
# Long Live Lint (C++ long ints that is!) #
Technical Details
Message-ID:
<6115@dciem.dciem.dnd.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!cs.utexas.edu!torn!utzoo!dciem!rjmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!cs.utexas.edu!torn!utzoo!dciem!rjm From: rjm@dciem.dciem.dnd.ca (Robert J. Manley) Newsgroups: comp.os.os2.programmer Subject: non-emx gcc with IBM toolkit Message-ID: <6115@dciem.dciem.dnd.ca> Date: 24 Jul 92 19:39:24 GMT Distribution: na Organization: NTT Systems Inc., Toronto, Canada Lines: 30