#65 Fixed compiling with clang on Mac

open
Bugs (14)
5
2011-12-18
2011-12-18
Anonymous
No

Hi, I was creating a Portfile to be able to install latest cvs with macports and I found that building with clang was broken. Searching around I found that the cause was the handling by clang of the inline keyword differently from gcc http://clang.llvm.org/compatibility.html#inline .
As one sudgestion says in that page I simply removed the word inline and minidlna compiled fine.
Attached the 2 files I modified.

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-12-18
     
    Attachments
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-12-18
     
    Attachments
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-12-18

    I forgot to mention that I'm using a Mac Os X 10.7.2 with clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn), stock version with XCode 4.2(.1)

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-12-20

    Another way using clang

     
    Attachments
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-12-20

    Another way using clang

     
    Attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks