Xref: utzoo comp.databases:8249 comp.lang.c:34880 Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!hubcap!ncrcae!ncrlnk!ciss!dgrimmer From: dgrimmer@ciss.Dayton.NCR.COM (Dave.Grimmer@Dayton.NCR.COM) Newsgroups: comp.databases,comp.lang.c Subject: Clipper/C Problem Message-ID: <1654@ciss.Dayton.NCR.COM> Date: 17 Dec 90 14:55:31 GMT Organization: NCR Corp. Information Systems & Services Lines: 63 I am using Clipper 87 and MS C 5.10 to try to do some trig functions. The programs and command lines used to link them are shown below. Basically, the problem is that I get an unresolved external refference to "_cos" in a program that try to do a cosine function. I probably have missed something simple. If you have any experience interfacing Clipper and MS C, please look at this simple problem and let me know what I have missed. Any help would be appreciated... -- Dave Grimmer NCR Corporate Information Resource Planning (PCD 6) Dave.Grimmer@Dayton.NCR.COM TEST.PRG -------- clear ? "The cos of 30 degrees is: "+str(djgcos(30)) DJGCOS.C -------- /* Return cos of angle passed in degrees */ #include #include #include CLIPPER djgcos() { double i; i=_parnd(1); _retnd(cos(i / 57.29578)); } COMPILE CLIPPER PROGRAM WITH: ----------------------------- clipper test -m COMPILE MS C 5.10 PROGRAM WITH: ------------------------------- CL -c -AL -Zl /Oalt /FPa /Gs djgcos.c LINK WITH MS LINK 3.65 ---------------------- link /NOE test.obj djgcos.obj ,,, \clipper\clipper RESULTS: ------- LINK : error L2029: Unresolved externals: _cos in file(s): DJGCOS.OBJ(djgcos.c) There was 1 error detected -- Dave Grimmer NCR Corporate Information Resource Planning (PCD 6) Dave.Grimmer@Dayton.NCR.COM