[18749] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] linking C programs in Splus 4.5

daemon@ATHENA.MIT.EDU (Rudy Gideon)
Mon Jul 26 16:40:32 1999

Date: Mon, 26 Jul 1999 14:35:32 -0600 (MDT)
From: Rudy Gideon <gideon@selway.umt.edu>
To: "St. Louis S-news" <s-news@wubios.wustl.edu>
Cc: Kevin B Wright <kwright@selway.umt.edu>,
        Rudy Gideon <gideon@selway.umt.edu>
Message-Id: <Pine.OSF.3.95.990726142303.12099A-100000@selway.umt.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Question: We had Splus 3.2 on a digital unix and our C programs
were statically linked using GCC.  We now want to link the same
C programs on Splus 4.5 using watcom C/C++ version 11. Either 
static or dynamic linking is OK.  We can compile our C programs
(make command) but we cannot link.

What we have done: Select our C program and hit "make" under sources
and it is successfully compiled, but if we use "make" unter Targets
we get the following errors:
wmake -f C:\cprogs\rg.mk-h -e C:\cprogs\rg.exe
wlink name rg d all op inc SYS nt op m op
          make=2S op q op symt @rglk1
error: E2028: _CHK is an undefined reference
  "     "    malloc_  "        "
  "     "    free_    "        "
etc

When we use the "make" under sources it does make an object
file but when we try to link it in Splus we get the following
Error in dyn.load("rgfile.obj"): No definition for 4 symbols
Dumped
Warning messages:
1: undefined symbol "malloc_" in: dyn.load("rgfile.obj")
2: undefined symbol "free_" in: dyn.load("rgfile.obj")
3: undefined symbol "printf_" in: dyn.load("rgfile.obj")
4: undefined symbol "exit_" in: dyn.load("rgfile.obj")


Professor Rudy A. Gideon
Dept. of Mathematical Sciences
University of Montana
Missoula, MT 59812-0864
Phone:office 406-243-4162 or home 406-728-3858
Mathematics Dept. 406-243-5311
e-mail: gideon@selway.umt.edu









Error in dyn.load("rgfile.obj"): No definition for 4 symbols
Dumped
Warning messages:
1: undefined symbol "malloc_" in: dyn.load("rgfile.obj")
2: undefined symbol "free_" in: dyn.load("rgfile.obj")
3: undefined symbol "printf_" in: dyn.load("rgfile.obj")
4: undefined symbol "exit_" in: dyn.load("rgfile.obj")


-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post