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![]()
This is a discussion on multiple types in one decleration within the C++ Programming forums, part of the General Programming Boards category; hi all, in my project when i tried to compile with "g++ -c 1.cpp" (i also have 1.h and main1.cpp). ...
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.
I support http://www.ukip.org/ as the first necessary step to a free Europe.