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
|