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


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:

#include <stdlib.h> 

using namespace std;
//Other Functions

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


void signalEnd() 

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.