Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Freak compiler error?

Freak compiler error?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++toolshelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oRion
    wrote on last edited by
    #1

    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|

    R 1 Reply Last reply
    0
    • O oRion

      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|

      R Offline
      R Offline
      redeemer
      wrote on last edited by
      #2

      try writing the function like this:

      void Utility::manexp(complex c,complex *mantss,int iex)
      {
      *mantss=c*pow(10,-iex);
      }

      O 1 Reply Last reply
      0
      • R redeemer

        try writing the function like this:

        void Utility::manexp(complex c,complex *mantss,int iex)
        {
        *mantss=c*pow(10,-iex);
        }

        O Offline
        O Offline
        oRion
        wrote on last edited by
        #3

        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:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups