Article View: net.lang.c++
Article #248complex arithmetic problem
From: Boyd Merworth
Date: Wed, 09 Jul 1986 19:57
Date: Wed, 09 Jul 1986 19:57
36 lines
1491 bytes
1491 bytes
I have been building the C++ Translator, Release 1.0 and have
a question.
I followed the tips from Jonathan P. Leech in his posting to
this newsgroup <278@cit-vax.Caltech.Edu>, dated 24 March 1986.
I was able to build a cfront successfully and even tested munch
with the "Hello, world" program. But I have tried an example
program from the Release Notes and am unsuccessful in getting it
to compile. The program is:
#include <complex.h>
main(){
complex xx;
complex yy = complex(1,2.718);
xx = log (yy/3);
cout << 1+xx;
}
When I compile it with CC, I get the following errors:
CC test.c:
cc test..c -lC
Undefined:
_log
_atan2
Any help will be greatly appreciated. I am building the translator
on a VAX 11/780 running 4.2BSD.
--
Boyd Merworth
The University of Texas at Austin, Computation Center, Austin, TX 78712
merworth@ngp.cc.utexas.edu {ihnp4,allegra,ut-sally}!ut-ngp!merworth
{seismo}!ut-sally!merworth
Technical Details
Message-ID:
<3625@ut-ngp.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!think!husc6!harvard!ut-sally!ut-ngp!merworthShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!think!husc6!harvard!ut-sally!ut-ngp!merworth From: merworth@ut-ngp.UUCP (Boyd Merworth) Newsgroups: net.lang.c++ Subject: complex arithmetic problem Message-ID: <3625@ut-ngp.UUCP> Date: Wed, 9-Jul-86 15:57:36 EDT Article-I.D.: ut-ngp.3625 Posted: Wed Jul 9 15:57:36 1986 Date-Received: Thu, 10-Jul-86 05:23:32 EDT Organization: UTexas Computation Center, Austin, Texas Lines: 36 Keywords: complex