Autor Beitrag
lemming
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Mi 20.10.04 10:25 
Hallo, wenn ich in Kylix eine Consolen Applikation programmiere, dann wird zwar das Programm fehlerlos compiliert, aber ich bekomme keinen Output angezeigt.
Wenn ich es von einer Konsole aus aufrufe, läuft das Programm erwartungsgemäß ab. Was läuft schief?

lemming


Zuletzt bearbeitet von lemming am Mi 20.10.04 10:44, insgesamt 1-mal bearbeitet
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mi 20.10.04 10:35 
Das wird wohl das gleiche Problem sein wie mit der Eingabaufforderung in Windows, dass das Prog geschlossen wird, bevor man es richtig mitkriegt.
Lösung: Probiers mal am Ende des Progs mit einem readln;

_________________
JSXGraph
lemming Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Mi 20.10.04 10:43 
Das hatte ich schon probiert. Ging nicht. Ich habe sogar eine for-Schleife eingebaut die ein ganzes Weilchen wartet. Hat nicht geklappt. Dann ein readln(i). Hat auch nicht geklappt. :((
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 20.10.04 18:48 
Dann geb uns für unsere Glaskugeln doch mal etwas Futter, oder Quelltext ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
lemming Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Do 21.10.04 07:16 
ausblenden Quelltext
1:
2:
writeln("Hallo Welt!");
readln;


Das war auch schon der ganze Code. Ich habe das Gefühl das Programm wird normal ausgeführt, aber ich bekomme es einfach in keinem Fenster angezeigt.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 21.10.04 07:21 
Ich kenne mich mit Kylix zwar nicht aus, aber versuche doch mal im Writeln den Standard-Output anzugeben:
ausblenden Delphi-Quelltext
1:
2:
writeln(Output,"Hallo Welt!");  
readln;

Normalerweise wird das standardmäßig dort gesetzt (in Delphi), aber evtl. muss das in Kylix definitiv gesetzt werden.
lemming Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Do 21.10.04 07:31 
Nein, leider keine Änderung.
jojo-sp
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 317

Windows XP Prof, Vista Ultimate & Home Premium, Windows 7
Delphi 7 Enterprise, Delphi 2009
BeitragVerfasst: Do 21.10.04 07:45 
Vielleicht musst du noch folgendes einfügen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
program AConsole;

{$Apptype Console}  // Gibt die Ausgabe in der Konsole an

uses
  Windows;
begin
  .
  .
  .
end.


Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.

_________________
Ist der Ruf erst ruiniert, lebts sich gänzlich ungeniert...
Wilhelm Busch (1832 - 1908)
lemming Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Do 21.10.04 08:12 
Die Compiler-Anweisung steht drin, keine Änderung.
Könnte es etwas mit meinem Linux allgemein zu tun haben? Schließlich kann ich das Programm ohne Probleme von einer Konsole aufrufen.
jojo-sp
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 317

Windows XP Prof, Vista Ultimate & Home Premium, Windows 7
Delphi 7 Enterprise, Delphi 2009
BeitragVerfasst: Do 21.10.04 08:28 
Keine Ahnung! Nutze Linux nur @Home zum surfen, programmieren tu ich nach wie vor nur mit Windows. Daher habe ich keine Peilung, woran es liegen könnte.

_________________
Ist der Ruf erst ruiniert, lebts sich gänzlich ungeniert...
Wilhelm Busch (1832 - 1908)
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Sa 09.07.05 21:38 
Falls sich noch jemand für die Lösung interessiert: Unter Linux sind alle Anwendungen Konsolenanwendungen. Einige geben jedoch statt Text nur Anweisungen an X Windows. Um nicht zu jedem Fenster eine Konsole anzuzeigen, zeigt X diese Konsolenausgaben nicht an. Will man sie sehen, so muss man das Programm unter einer (virtuellen) Konsole wie xterm oder konsole ausführen.

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.