[so] gcc vs gcc.exe

Alexandru Mosoi brtzsnr at gmail.com
Wed Mar 19 23:47:51 EET 2008


argv[0] tine numele programului can il apelezi: in linux e gcc iar in
windows este gcc.exe.

probabil: face ceva de genul (in main) if (argc == 1) { printf("%s: no input
files\n", argv[0]); return 0; }

2008/3/19 Bogdan Ionut Ghit <bogdan.ghit at gmail.com>:

> Cred ca ati inteles gresit intrebarea mea:D
> Nu am avut o tentativa de compilare, prin urmare nu lipseste niciun
> fisier. Problema consta in extensia .exe pe care mi-o scoate cygwin-ul, iar
> shell-ul meu nu:)
>
> 2008/3/19 Cosmin Dumitru <cosu at cosu.ro>:
>
> Bogdan Ionut Ghit wrote:
> > > Comanda gcc in shell-ul meu intoarce rezultatul /gcc: no input files,
> > > /in timp ce in cygwin obtin /gcc.exe: no input files. /Are cineva idee
> > > care ar fi problema, pentru ca mie mi se pare indepenta de programul
> > meu:D
> > >
> > > Thanks!
> > Si nu e normal ? Ii dai un fisier sursa ca parametru ? E normal sa zica
> > asa daca rulezi gcc chior.
> >
> >
> > Cosmin
> > _______________________________________________
> > so mailing list
> > so at cursuri.cs.pub.ro
> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
> >
>
>
>
> --
> Bogdan Ghit
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>


-- 
Alexandru Moşoi
http://alexandru.mosoi.googlepages.com

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080319/f08f6903/attachment-0001.htm 


More information about the so mailing list