Thread: multiple types in one decleration

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    17

    multiple types in one decleration

    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

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Generalising methods to handle multiple weapon types
    By Swarvy in forum Game Programming
    Replies: 2
    Last Post: 05-22-2009, 02:52 AM
  2. Reading multiple data types to file
    By Wicket in forum C++ Programming
    Replies: 2
    Last Post: 04-05-2008, 10:14 AM
  3. Is this safe - linked list with multiple types
    By pronecracker in forum C Programming
    Replies: 18
    Last Post: 05-30-2007, 01:08 PM
  4. The Interactive Animation - my first released C program
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 48
    Last Post: 05-10-2007, 02:25 AM
  5. multiple inputs of multiple types
    By frontz in forum C Programming
    Replies: 8
    Last Post: 01-19-2004, 02:57 PM