[LLVMdev] Code to be moved to the specific platform in lib/System?

Henrik Bach henrik_bach_llvm at hotmail.com
Sat Sep 25 01:17:29 PDT 2004


Hi

I'm compiling: llvm/lib/Support/SystemUtils.cpp on MinGW. However, it stops 
complaining about these errors:
--------------------------
C:/MinGW/msys/local/src/llvm/lib/Support/SystemUtils.cpp: In function `bool
   llvm::isExecutableFile(const std::string&)':
C:/MinGW/msys/local/src/llvm/lib/Support/SystemUtils.cpp:44: error: `getuid'
   undeclared (first use this function)
C:/MinGW/msys/local/src/llvm/lib/Support/SystemUtils.cpp:44: error: (Each
   undeclared identifier is reported only once for each function it appears
   in.)
C:/MinGW/msys/local/src/llvm/lib/Support/SystemUtils.cpp:46: error: `getgid'
   undeclared (first use this function)
C:/MinGW/msys/local/src/llvm/lib/Support/SystemUtils.cpp:47: error: 
`S_IXGRP'
   undeclared (first use this function)
C:/MinGW/msys/local/src/llvm/lib/Support/SystemUtils.cpp:49: error: 
`S_IXOTH'
   undeclared (first use this function)
--------------------------

On mingw the these functions or values aren't declared. However, to me it 
seems that the code in SystemUtils.cpp is specific to a platform. Shouldn't 
this code be moved to the specific platform in lib/System?

Any suggestions?

Henrik

_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/




More information about the llvm-dev mailing list