Re: complex.h under OpenBSD

2005-09-05 Thread Ramiro Aceves
Hello again, After several days of investigation, I was able to patch and make NEC (numerical Electromacnetigs Code) in plain C languaje under OpenBSD. The trick was making function definitions for those functions that are "built-in " in gcc compiler: #define complex _Complex double creal(comple

Re: complex.h under OpenBSD

2005-09-03 Thread Ramiro Aceves
Hannah Schroeter wrote: > Hello! > > On Sat, Sep 03, 2005 at 09:30:51AM +0200, Ramiro Aceves wrote: > >>[...] > > >>Thank you very much to all for your responses. I seems that It is a good >>time to learn the C++ thing. Some time ago with no too much free time, I >>tried it with no luck. I foun

Re: complex.h under OpenBSD

2005-09-03 Thread Hannah Schroeter
Hello! On Sat, Sep 03, 2005 at 09:30:51AM +0200, Ramiro Aceves wrote: >[...] >Thank you very much to all for your responses. I seems that It is a good >time to learn the C++ thing. Some time ago with no too much free time, I >tried it with no luck. I found object oriented programming very strange

Re: complex.h under OpenBSD

2005-09-03 Thread Ramiro Aceves
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 &

Re: complex.h under OpenBSD

2005-09-03 Thread Ramiro Aceves
Bob Beck wrote: 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. > > > What you posted is not a C program it is a C++ program. If you > actually use the C++ compiler it works fine. You don't need to "find > the head

Re: complex.h under OpenBSD

2005-09-02 Thread Ramiro Aceves
Hello dear friends, I am sorry, I do not know how to program in C++, I was looking for something in "plain C", not C++. I seems that as Otto stated, complex.h is a C99 thing and OpenBSD does not fully support C99. Anyway, I understand it better now. I will see whether I am able to modify the prog

Re: complex.h under OpenBSD

2005-09-02 Thread Bob Beck
> > > 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. What you posted is not a C program it is a C++ program. If you actually use the C++ compiler it works fine. You don't need to "find the header file" if you actua

Re: complex.h under OpenBSD

2005-09-02 Thread Dave Feustel
On Friday 02 September 2005 13:32, Otto Moerbeek wrote: > On Fri, 2 Sep 2005, Ramiro Aceves wrote: > > > 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

Re: complex.h under OpenBSD

2005-09-02 Thread Otto Moerbeek
On Fri, 2 Sep 2005, Ramiro Aceves wrote: > 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

Re: complex.h under OpenBSD

2005-09-02 Thread J. Lievisse Adriaanse
Is /usr/include/g++/backward/complex.h what you mean? Jasper On Fri, 02 Sep 2005 17:49:19 +0200 Ramiro Aceves <[EMAIL PROTECTED]> wrote: > Hello dear OpenBSD fans. > > I am trying to compile a C program (Numerical Electromagnetics Code, > NEC, for antenna modelling) that needs complex numbers.

Re: complex.h under OpenBSD

2005-09-02 Thread Karle, Chris
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

complex.h under OpenBSD

2005-09-02 Thread Ramiro Aceves
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 conveni