Thread: GHS: error: this declaration has no storage class or type specifier

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    2

    GHS: error: this declaration has no storage class or type specifier

    Hey,

    I try to compile a code for the V850ES/Fx2 Development Kit of NEC with the GHS-Compiler. At first I included the libraries which are on the cd (nec). But when I try to compile I always get the following error amongst others (all the same type):

    File: intrv850.h
    Code:
    this declaration has no storage class or type specifier:
    __intrinsic void          __disable_interrupt(void);
    
    expected a ";":
    __intrinsic void          __disable_interrupt(void);
    Do you think I have forget to include some libraries or other files?

    thanks and regards,
    markus

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    What compiler are you using? __intrinsic is a MS specific keyword, and perhaps even needs a "modern enough" compiler.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    2
    I am using the Multi 4.2.4 (ide) of green hillls with Green Hills Optimizing C/C++/EC++ Compilers,

    regards
    markus

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by markus_do View Post
    I am using the Multi 4.2.4 (ide) of green hillls with Green Hills Optimizing C/C++/EC++ Compilers,

    regards
    markus
    So not a Microsoft compiler then... Sorry, you'd probably be better off talking to someone who can help with Green Hill compilers - not sure anyone here can.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. Register
    By sean345 in forum C Programming
    Replies: 7
    Last Post: 05-08-2002, 03:06 PM
  5. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 06:51 PM