0

So Ive googled this error but I cant find an explanation of why this is happening in my code..

Error:

g++ -o code code.cpp
code.cpp:8:17: error: too many decimal points in number
code.cpp:8:43: error: too many decimal points in number
code.cpp:1:1: error: expected unqualified-id before '<' token
make: *** [code] Error 1

My code:

//Includes
#include <stdlib.h> 

using namespace std;
//Other Functions

//Main function
void signalEnd();
 int main(int argc, char** argv) {
  //main code here


  signalEnd(); 
}

void signalEnd() 
{
    system("./done.sh");
}

I know usually you declare a function above the main to use it but in my current way I construct this file this is not possible.

So the line with the error is my forward declaration. I have no idea what is wrong.

I would appreciate any tips or help on this.

Thank you

Edited by mike_2000_17: Fixed formatting

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by MandrewP
0

You should post all of your code the way it actually appears so we can check it out. A misspelling or a missed ";" can give weird errors.

Edited by MandrewP: spell correction

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.