[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] stat()



Frank Damgaard wrote:
> 
> In article <sslug@sslug> Egon wrote:
> 
> > Det er nu lykkedes mig (håber jeg) at få stablet en gcc3.1 linux->win32
> > cross-compiler på benene (mingw).
> > Nu har jeg bare det problem, at win32 ikke understøtter POSIX :-(
> > Hvad bruger man istedet for stat() til at identificere om en fil
> > allerede eksisterer i win32?
> > Er der noget som helst der bare minder om en standard for det på win32?
> > Okay, jeg kan også acceptere en quick'n'durty løsning - jeg skal i
> > første omgang bare se om det kan lykkes at kompilere programmet og
> > senere køre det på win32 (det bliver iøvrigt i første omgang via wine).
> 
> Har du set i /Cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/mingw32/
> /Cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/mingw32/sys/stat.h
> (eller hvor den nu ligger i de nyere versioner af cygwin/mingwin32)
> 
> Der burde være noget der kan bruges.
> 
> Du kan også se på nogle originale windows kald i
> /Cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/Windows32/
> 

Efter noget roderi, fandt jeg ud af, at problemet var at __STRICT_ANSI__
var sat.
Jeg indførte -U__STRICT_ANSI__ og vupti mingw cross-compileren anvender
stat().
Det var da den bedste løsning ikk' ;-)

Tak for de forskellige forslag, men nu tror jeg at jeg bare beholder
stat();-)

/Egon


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *