Main Page | Report this Page
Computers Forum Index  »  Computer Compilers - LCC  »  Bugs...
Page 1 of 1    

Bugs...

Author Message
jacob navia...
Posted: Fri Jun 05, 2009 10:05 pm
Guest
beheiger wrote:
Quote:
Dear Jacob,

thanks for answering. The line where this happens is

deltak=2.0*b*cimag(tildeeta[iKplusk]-tildeeta[iKpluskstern]) ;

where deltaK and the array tildeeta[] are defined as double complex
variables
iKplusk and iKpluskstern are integer, and b is a double.

My includes in this file are

#include <ctype.h
#include <stdio.h
#include <stdlib.h
#include <math.h
#include <string.h
#include <limits.h
#include <complex.h

and a couple of my own headers.

I recall having problems with complex.h before. Interestingly,
the problem occurs in my project after the compiler has passed
maybe hundred lines or more of similar code without trouble.
If I comment out the above line, there is a similar problem below in
my code and so on, so I do not think that there is anything too special
about that line. Also, under linux, gcc compiles the same code
without error or warning messages, so I assume that my syntax
is ok.

Have a nice weekend,

Andi


Mmm this looks really bad, because I have compiled:

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <limits.h>
#include <complex.h>

int main(void)
{
double complex deltak=0;
double b=0;
double complex tildeeta[2];
int iKpluskstern=0,iKplusk=0;

deltak=2.0*b*cimag(tildeeta[iKplusk]-tildeeta[iKpluskstern]) ;
}


without any problems...

What can that be?

Is there any way of sending me some code that crashes the compiler
if I send you a non-disclosure agreement?
 
 
Page 1 of 1    
All times are GMT
The time now is Tue Dec 01, 2009 3:12 am