multiple types in one decleration

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). ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    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.

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, 01:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21