hi all,
in my project when i tried to compile with "g++ -c 1.cpp" (i also have 1.h and main1.cpp).
i had an error and it says "multiple types in one decleration".
can anyone tell me the problem?
since it is a project i cant paste all the code
hi all,
in my project when i tried to compile with "g++ -c 1.cpp" (i also have 1.h and main1.cpp).
i had an error and it says "multiple types in one decleration".
can anyone tell me the problem?
since it is a project i cant paste all the code
At a guess, you have
int float foo; // so which is it? int or float
> since it is a project i cant paste all the code
Well posting the relevant code which the error message points to would be helpful
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.