Thread overview | |||||
---|---|---|---|---|---|
|
August 11, 2005 Compile on Cygwin with gdc | ||||
---|---|---|---|---|
| ||||
I installed Cygwin, and then compiled simple D source. But, I got error. Is it necessary to set some up? - test.d - int mian(char[][] args) { return 0; } - result - $ gdc test.d /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libgphobos.a(cmain.o):cmain.d:(.text+ 0x1a): undefined reference to `__Dmain' collect2: ld returned 1 exit status |
August 11, 2005 Re: Compile on Cygwin with gdc | ||||
---|---|---|---|---|
| ||||
Posted in reply to k2 | On Thu, 11 Aug 2005 09:21:52 +0000 (UTC), k2 wrote: > I installed Cygwin, and then compiled simple D source. > But, I got error. Is it necessary to set some up? > > - test.d - > > int mian(char[][] args) > { > return 0; > } > > - result - > > $ gdc test.d > /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libgphobos.a(cmain.o):cmain.d:(.text+ > 0x1a): undefined reference to `__Dmain' > collect2: ld returned 1 exit status Could it be that you mispelled 'main'? //int mian(char[][] args) int main(char[][] args) { return 0; } -- Derek Parnell Melbourne, Australia 11/08/2005 8:02:14 PM |
August 11, 2005 Re: Compile on Cygwin with gdc | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | Oops! I'm fool man... Forget it :-)
>Could it be that you mispelled 'main'?
>
>//int mian(char[][] args)
>int main(char[][] args)
>{
>return 0;
>}
>
>--
>Derek Parnell
>Melbourne, Australia
>11/08/2005 8:02:14 PM
|
Copyright © 1999-2021 by the D Language Foundation