Karle, Chris wrote:
> find /usr/include | xargs grep __real__
> 
> led me to:
> /usr/include/g++/complex
> 
> 
> 
> -----Original Message-----
> From: Ramiro Aceves [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 02, 2005 10:49 AM
> To: misc@openbsd.org
> Subject: complex.h under OpenBSD
> 
> 
> Hello dear OpenBSD fans.
> 
> I am trying to compile a C program (Numerical Electromagnetics Code,
> NEC, for antenna modelling) that needs complex numbers. I compiled it
> with gcc on Linux with no special problems. It is an originaly fortran
> written  program that nowadays is translated into C for convenience.
> 
> I used to work with "complex.h" header file on Linux, but I have not
> been able to find the complex.h file on OpenBSD.
> 
> In OpenBSD, I see that (as said in "info gcc") things like:
> 
> _Complex float variable_name;
> __real__ variable;
> __imag__ variable;
> 
> work perfectly.
> 
> Do you know where can I get the complex.h file, or please can you point
> me in the right direction? I am puzzled now.
> 
> Thanks in advance
> 
> Ramiro.
> EA1ABZ.
> 

Just for curiosity, I have been looking for some clues on how to compile
it and find this. The following is said on www.freshports.org from the
FreeBSD proyect:

nec2c .9 / comms
    Broken BROKEN: "does not build (gcc does not understand complex
numbers)"
    Ignore IGNORE: "is marked as broken: "does not build (gcc does not
understand complex numbers)""
    Used to calculate antenna patterns useful to ham radio
    Maintained by: [EMAIL PROTECTED]

Ramiro.

Reply via email to