Sign in Join

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

Mailing lists / lazarus / 2009-08

Application refuses to create console in Win32

1 message · 1 person ·

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,

In a simple app for win32 I am getting a funny situation. It refuses to create the console, so it given an error in the first WriteLn. I have set and unset many time the -WR option to make sure it's off, and in "Show compiler options" it doesn't appear, but somehow Lazarus is activating it, because I made a batch script to build the app and when built through the script, which just uses the same options Lazarus says he is using the windows console appears. Problem with Lazarus 0.9.26

Here is the batch:

Path=C:\Programas\lazarus26\fpc\2.2.2\bin\i386-win32\ ppc386.exe directxcube.pas -Sgi -O1 -gl -vewnhi -l -FuC:\Programas\directx\FPC_DirectX92\ -Fu. -odirectxcube.exe pause

And the structure of the application:

program directxcube;
{$ifdef fpc}
{$mode delphi}
{$endif}
{$apptype console}

uses
Classes, SysUtils, Math,
Windows,
Direct3D9, D3DX9,

  Joysticks;
...
begin
  ...
end.

thanks,

Felipe Monteiro de Carvalho

Reply by email