Menu

#13 compile error msvc on "static inline"

2.0
closed
nobody
None
2014-11-13
2014-10-28
No

all "C" functions declared with "static inline" need to be changed to "static __inline" for msvc compiler

f.e.
static inline char convert_pattern(char data, int shift)

->

static __inline char convert_pattern(char data, int shift)

Discussion

  • aliks-os

    aliks-os - 2014-10-29

    I can not change to "inline" owing to
    1) it are files third part project
    2)
    inline is a vendor-specific keyword (e.g. MSVC)

     
  • aliks-os

    aliks-os - 2014-10-29
    • status: open --> closed
     
  • Thomas Hasart

    Thomas Hasart - 2014-10-29

    yes, i see.
    but so it does not compile under msvc. and gcc does not work well with 64 bit under win...

     
  • aliks-os

    aliks-os - 2014-11-13

    I never worked woth MSVC. Tell me please what the mean the following flags for compiler: /TP /wd4018 /wd4244 /wd4305

     

    Last edit: aliks-os 2014-11-13

Log in to post a comment.