Thread overview
Compile on Cygwin with gdc
Aug 11, 2005
k2
Aug 11, 2005
Derek Parnell
Aug 11, 2005
k2
August 11, 2005
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
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
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