Freak compiler error?
-
I have experience fatal error C1001: INTERNAL COMPILER ERROR when I tried to implement my code in OOP in VC++ 6.0. I have tested fine in normal C++ code.. here's a bit of the code. #include void Utility::manexp(complex c,complex &mantss,int &iex) { mantss=c*pow(10,-iex); } There are something wrong with the multiplication here. I have tried to take out the multiplication.. and there is no complier error.WHat is happening here? Just the compiler freaking me out here?:confused: X|
-
I have experience fatal error C1001: INTERNAL COMPILER ERROR when I tried to implement my code in OOP in VC++ 6.0. I have tested fine in normal C++ code.. here's a bit of the code. #include void Utility::manexp(complex c,complex &mantss,int &iex) { mantss=c*pow(10,-iex); } There are something wrong with the multiplication here. I have tried to take out the multiplication.. and there is no complier error.WHat is happening here? Just the compiler freaking me out here?:confused: X|
-
try writing the function like this:
void Utility::manexp(complex c,complex *mantss,int iex)
{
*mantss=c*pow(10,-iex);
}Thanks for your reply. I have solved the problem for now.I think there is some problems with the complier in recognising what the type pow is supposed to be. I have used a dummy variable of double type. Then passing the pow value to that dummy and multiply it to mantss. It works this way as it make the compiler to recognise it's a double type. :omg: