Thread overview | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
October 08, 2004 Application fails to reach main | ||||
---|---|---|---|---|
| ||||
seems this happend in two separate apps/environments/people. only on windows, dmd 0.102 the application fails to reach the main function or any of the static constructors. there is no small example yet. this post is just trying to get the attention of other pleople with the same problem. my application compiles and runs fine on linux. there considerable changes from linux to windows but not on the code directly envolved after commenting out large sections of it. see thread: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D/11562 Ant |
October 08, 2004 Re: Application fails to reach main | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | "Ant" <Ant_member@pathlink.com> wrote in message news:ck679j$1j96$1@digitaldaemon.com... > the application fails to reach the main function > or any of the static constructors. Perhaps try instrumenting the dmain2.d file in phobos\internal. |
October 09, 2004 Re: Application fails to reach main | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | On Fri, 08 Oct 2004 16:02:24 -0700, Walter wrote:
> "Ant" <Ant_member@pathlink.com> wrote in message news:ck679j$1j96$1@digitaldaemon.com...
>> the application fails to reach the main function
>> or any of the static constructors.
>
> Perhaps try instrumenting the dmain2.d file in phobos\internal.
thanks, I'll try it.
Ant
|
October 11, 2004 Re: Application fails to reach main | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | On Fri, 08 Oct 2004 16:02:24 -0700, Walter wrote:
> "Ant" <Ant_member@pathlink.com> wrote in message news:ck679j$1j96$1@digitaldaemon.com...
>> the application fails to reach the main function
>> or any of the static constructors.
>
> Perhaps try instrumenting the dmain2.d file in phobos\internal.
yeah, I put one printf before each statement on dmain2.
they all show on stdout when compiling phobos through the win32.mak,
some before the "success!" some after.
they all show when I run a helloworld program,
UNLESS I link to my lib, even if the lib if not used at all. in that case nothing is printed out, no messages of errors.
any body out there is compiling programs with libs beside phobos? we know that the other example also fails (apollo from Carlos).
so seems there is some problem with linking to libs(?)
what other tests can I do?
Ant
|
October 11, 2004 Re: Application fails to reach main | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | On Mon, 11 Oct 2004 18:25:32 -0400, Ant wrote:
> On Fri, 08 Oct 2004 16:02:24 -0700, Walter wrote:
>
>> "Ant" <Ant_member@pathlink.com> wrote in message news:ck679j$1j96$1@digitaldaemon.com...
>>> the application fails to reach the main function
>>> or any of the static constructors.
>>
>> Perhaps try instrumenting the dmain2.d file in phobos\internal.
>
> yeah, I put one printf before each statement on dmain2.
> they all show on stdout when compiling phobos through the win32.mak,
> some before the "success!" some after.
> they all show when I run a helloworld program,
>
> UNLESS I link to my lib, even if the lib if not used at all. in that case nothing is printed out, no messages of errors.
>
> any body out there is compiling programs with libs beside phobos? we know that the other example also fails (apollo from Carlos).
>
> so seems there is some problem with linking to libs(?)
>
> what other tests can I do?
>
I would try it with dmd 0.101 if I can get it.
Of course this might be some problem with my code
but I should get some error message.
Ant
|
October 11, 2004 Re: Application fails to reach main | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | On Mon, 11 Oct 2004 18:25:32 -0400, Ant wrote: [snip] > any body out there is compiling programs with libs beside phobos? Yes, I'm doing that and not having any problems. Win XP system. Libraries that I've created from compiling D source code and using the "dm\bin\lib -c" command. -- Derek Melbourne, Australia 12/10/2004 9:29:07 AM |
October 11, 2004 Re: Application fails to reach main | ||||
---|---|---|---|---|
| ||||
Posted in reply to Derek Parnell | On Tue, 12 Oct 2004 09:31:13 +1000, Derek Parnell wrote:
> On Mon, 11 Oct 2004 18:25:32 -0400, Ant wrote:
>
>
> [snip]
>
>> any body out there is compiling programs with libs beside phobos?
>
> Yes, I'm doing that and not having any problems. Win XP system. Libraries that I've created from compiling D source code and using the "dm\bin\lib -c" command.
Well, it doesn't work for me.
once again DUI and leds for windows are waiting for the
next dmd version.
Ant
|
October 12, 2004 Re: Application fails to reach main | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | "Ant" <duitoolkit@yahoo.ca> wrote in message news:pan.2004.10.11.22.25.32.19933@yahoo.ca... > On Fri, 08 Oct 2004 16:02:24 -0700, Walter wrote: > > > "Ant" <Ant_member@pathlink.com> wrote in message news:ck679j$1j96$1@digitaldaemon.com... > >> the application fails to reach the main function > >> or any of the static constructors. > > > > Perhaps try instrumenting the dmain2.d file in phobos\internal. > > yeah, I put one printf before each statement on dmain2. > they all show on stdout when compiling phobos through the win32.mak, > some before the "success!" some after. > they all show when I run a helloworld program, > > UNLESS I link to my lib, even if the lib if not used at all. in that case nothing is printed out, no messages of errors. > > any body out there is compiling programs with libs beside phobos? we know that the other example also fails (apollo from Carlos). > > so seems there is some problem with linking to libs(?) > > what other tests can I do? > > Ant > are you sure it is running the right main? Is there a WinMain or something? It seems odd that just linking will prevent startup from getting to dmain2. |
October 12, 2004 Re: Application fails to reach main | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | In article <ckgs9c$s4t$1@digitaldaemon.com>, Ben Hinkle says... > > >"Ant" <duitoolkit@yahoo.ca> wrote in message news:pan.2004.10.11.22.25.32.19933@yahoo.ca... >> On Fri, 08 Oct 2004 16:02:24 -0700, Walter wrote: >> >> > "Ant" <Ant_member@pathlink.com> wrote in message news:ck679j$1j96$1@digitaldaemon.com... >> >> the application fails to reach the main function >> >> or any of the static constructors. >> > >> > Perhaps try instrumenting the dmain2.d file in phobos\internal. >> >> yeah, I put one printf before each statement on dmain2. >> they all show on stdout when compiling phobos through the win32.mak, >> some before the "success!" some after. >> they all show when I run a helloworld program, >> >> UNLESS I link to my lib, even if the lib if not used at all. in that case nothing is printed out, no messages of errors. >> >> any body out there is compiling programs with libs beside phobos? we know that the other example also fails (apollo from Carlos). >> >> so seems there is some problem with linking to libs(?) >> >> what other tests can I do? >> >> Ant >> > >are you sure it is running the right main? Is there a WinMain or something? It seems odd that just linking will prevent startup from getting to dmain2. > I'm afraid I'm not sure... But, why would it change the main when I link to my lib? How can I be sure? Ant |
October 12, 2004 Re: Application fails to reach main | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | In article <ckgs9c$s4t$1@digitaldaemon.com>, Ben Hinkle says... > > >"Ant" <duitoolkit@yahoo.ca> wrote in message news:pan.2004.10.11.22.25.32.19933@yahoo.ca... >> On Fri, 08 Oct 2004 16:02:24 -0700, Walter wrote: >> >> > "Ant" <Ant_member@pathlink.com> wrote in message news:ck679j$1j96$1@digitaldaemon.com... >> >> the application fails to reach the main function >> >> or any of the static constructors. >> > >> > Perhaps try instrumenting the dmain2.d file in phobos\internal. >> >> yeah, I put one printf before each statement on dmain2. >> they all show on stdout when compiling phobos through the win32.mak, >> some before the "success!" some after. >> they all show when I run a helloworld program, >> >> UNLESS I link to my lib, even if the lib if not used at all. in that case nothing is printed out, no messages of errors. >> >> any body out there is compiling programs with libs beside phobos? we know that the other example also fails (apollo from Carlos). >> >> so seems there is some problem with linking to libs(?) >> >> what other tests can I do? >> >> Ant >> > >are you sure it is running the right main? Is there a WinMain or something? It seems odd that just linking will prevent startup from getting to dmain2. > You think I might have a main on my lib and don't know about it? what happens if a have a global "int main(int argc, char** argv)"? I'll look to it tonight. Ant |
Copyright © 1999-2021 by the D Language Foundation