bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #37143] Unable to run cmd line programs on Windows


From: razvan_bc
Subject: Re: [bug #37143] Unable to run cmd line programs on Windows
Date: Tue, 4 Sep 2012 10:32:33 -0700 (PDT)

i sugest you to try this at home:

files: main.bat ... from here you compile your app,here you modify hello3
with any name have your .m file
compile.bat ...this will be called by main to compile your app in a .exe
file
and your file in the same dir with this files


main.bat
-------------------------------
compile hello3
hello3
pause
-------------------------------


compile.bat
-------------------------------
rem by razvan_bc@yahoo.com
set curent=%cd%
set destinatia=c:\GNUstep\bin\
set exefile="%destinatia%%1.exe"
set mfile=%1.m
xcopy "%curent%\%mfile%" "%destinatia%" /y /s /e /q
echo "%curent%\%mfile%"
rem pushd
cd c:\GNUstep\bin\
c:
"%destinatia%\gcc.exe" -o %1 %mfile% -I
/GNUstep/GNUstep/System/Library/Headers -L
/GNUstep/GNUstep/System/Library/Libraries -std=c99 -lobjc -lgnustep-base
-fconstant-string-class=NSConstantString
xcopy %exefile% "%curent%\" /y /s /e /q
 del %destinatia%%exefile%
 del %destinatia%%mfile%
rem popd
 rd %curent%\pkgconfig /s /q
 rd %curent%\icu /s /q


-------------------------------


an example file for this test:
hello3.m
--------------------------------
#import "CTPeriodicLease.h"
@implementation CTPeriodicLease
@synthesize weeklyRental;
+ (CTLease *)periodicLeaseWithWeeklyPrice:(float)weeklyPrice {
    CTPeriodicLease *lease = [CTPeriodicLease alloc]; 
    lease.weeklyRental = weeklyPrice;        
    return [lease autorelease];
}
- (NSString *)description {
    return [NSString stringWithFormat:@"$%0.2f per week", 
            self.weeklyRental];
}
@end
--------------------------------





Nikos Mavrogiannopoulos-5 wrote:
> 
> URL:
>   <http://savannah.gnu.org/bugs/?37143>
> 
>                  Summary: Unable to run cmd line programs on Windows
>                  Project: GNUstep
>             Submitted by: fedor
>             Submitted on: Sat 18 Aug 2012 11:40:27 AM MDT
>                 Category: Base/Foundation
>                 Severity: 3 - Normal
>               Item Group: Bug
>                   Status: None
>                  Privacy: Public
>              Assigned to: None
>              Open/Closed: Open
>          Discussion Lock: Any
> 
>     _______________________________________________________
> 
> Details:
> 
> A recent change has made it impossible to run command line programs on
> Windows.  I get:
> 
> $ defaults read
> C:\gnustepdev\GNUstep\System\Tools\defaults.exe: Uncaught exception
> NSGenericExc
> eption, reason: Unable to get attributes of lock file we made
> 
> This bug was introduced somewhere between revisions 35389:35392 (most
> likely
> in NSFileManager.m).  Still trying to narrow down the cause...
> 
> 
> 
> 
>     _______________________________________________________
> 
> Reply to this item at:
> 
>   <http://savannah.gnu.org/bugs/?37143>
> 
> _______________________________________________
>   Message sent via/by Savannah
>   http://savannah.gnu.org/
> 
> 
> _______________________________________________
> Bug-gnustep mailing list
> Bug-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-gnustep
> 
> 

-- 
View this message in context: 
http://old.nabble.com/-bug--37143--Unable-to-run-cmd-line-programs-on-Windows-tp34317254p34388389.html
Sent from the GNUstep - Bugs mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]