error: storage class specified for parameter `eitMemoryAllocated'

This is a discussion on error: storage class specified for parameter `eitMemoryAllocated' within the C Programming forums, part of the General Programming Boards category; What does this error mean? error: storage class specified for parameter `eitMemoryAllocated' I tried to turn of parts of the ...

  1. #1
    Algorithm engineer
    Join Date
    Jun 2006
    Posts
    286

    error: storage class specified for parameter `eitMemoryAllocated'

    What does this error mean?

    error: storage class specified for parameter `eitMemoryAllocated'

    I tried to turn of parts of the code and realized I got completely other errors when I turned of #include <stdio.h>. Instead it complained about parse error in stdio.h, it didn't know what FILE was.

  2. #2
    Awesomefaceradcore bivhitscar's Avatar
    Join Date
    Apr 2006
    Location
    Melbourne, Australia
    Posts
    210
    How about posting some code?
    it's ironic considerate rarity patron of love higher knowledge engulfs me...

  3. #3
    Algorithm engineer
    Join Date
    Jun 2006
    Posts
    286
    Quote Originally Posted by bivhitscar
    How about posting some code?
    It's a little bit hard, I try to turn off parts of the code before the error but the only improvement i got is when I turn of #include <stdio.h>, and that makes no sence because the type is uint32_t.
    Code:
    extern uint32_t eitMemoryAllocated;
    is the line that causes the error. A lot of similar errors also with "error: storage class specified for parameter" shows up when I try to compile. When I remove the extern keyword, the error changes to "parse error before "eitMemoryAllocated"". The other errors disappears I think but a lot of other parse errors turn up.
    Last edited by TriKri; 07-17-2006 at 05:37 AM.

  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,162
    Sounds like maybe you're missing a semi-colon somewhere. Just trying random things to get the program to compile isn't the best approach. Again, please post your actual code.

    And what compiler are you using?
    If you understand what you're doing, you're not learning anything.

  5. #5
    Algorithm engineer
    Join Date
    Jun 2006
    Posts
    286

    Cool

    I use gcc. But I've solved it now. I don't quite remember what it was, but it is a really big project I'm on and I changed a lot of things in a few different files if I remember correctly and then, the last thing I did that made it compile was removing a double include of a file. There one see what can happen.

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Well that's your problem right there. Make the least amount of changes you can, then recompile. Repeat until finished.


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Specializing class
    By Elysia in forum C++ Programming
    Replies: 6
    Last Post: 09-28-2008, 04:30 AM
  2. matrix class
    By shuo in forum C++ Programming
    Replies: 2
    Last Post: 07-13-2007, 01:03 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Replies: 7
    Last Post: 05-26-2005, 10:48 AM
  5. Abstract class problem
    By VanJay011379 in forum C++ Programming
    Replies: 9
    Last Post: 07-31-2002, 01:30 PM

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