Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-01

Initialization code question

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Felipe Monteiro de Carvalho

Hello,

I am a bit confused by the initialization assembler files. I see on Windows the entry point should be _WinMainCRTStartup for gui apps. I can see this function declared on the wprt0.as file. But it´s also declared on the system unit! So, which one is being used? Is one of the two useless???

Also, where is it defined that the prt0.o file should be linked with my executable? On my tests I think it isn´t linking this file...

thanks,

Felipe Monteiro de Carvalho

Reply by email

Florian Klaempfl
to Felipe Monteiro de Carvalho
Show quoted text 7 lines
Hello, I am a bit confused by the initialization assembler files. I see on Windows the entry point should be _WinMainCRTStartup for gui apps. I can see this function declared on the wprt0.as file. But it´s also declared on the system unit! So, which one is being used? Is one of the two useless???

The *.as are for bootstrapping with 2.0.4. They aren't used anymore by 2.1.1

Also, where is it defined that the prt0.o file should be linked with my executable? On my tests I think it isn´t linking this file...

In systems/t_win.pas

Reply by email

Felipe Monteiro de Carvalho
to Felipe Monteiro de Carvalho

Hi, is the name _WinMainCRTStartup mandatory for windows applications entry point?

I tryed to execute my symbian app as a normal win32 app, and windows says the app failed to initialize itself correctly.... I am just wondering what kind of initialization it is talking about.

thanks,

Felipe Monteiro de Carvalho

Reply by email