Sign in Join

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

Mailing lists / fpc-pascal / 2008-08

Re: Help with Free Pascal - RTL!!

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

SirStorm25
to leledumbo
leledumbo wrote 6 lines
Hello SirStorm25 Didn't expect to see you here. Check the top of system unit and systemh.inc and you'll find out why.

Neither did I!!!

I think I get it now :) , so, I have to change {$undef FPC_HAS_FEATURE_TEXTIO} in system.pas to {$define FPC_HAS_FEATURE_TEXTIO} ? Regards

SirStorm25.

View this message in context: http://www.nabble.com/Help-with-Free-Pascal---RTL%21%21-tp18952131p18960065.html Sent from the Free Pascal - General mailing list .
SirStorm25
to leledumbo
leledumbo wrote 11 lines
SirStorm25 wrote: > > so, I have to change {$undef FPC_HAS_FEATURE_TEXTIO} in system.pas to > {$define FPC_HAS_FEATURE_TEXTIO} ? > Well... just try it =^D How can you use file related functions without any file system support (don't worry, I'm working on it B-))?

Well, Im trying to see if I can simply get it to load a text file in the iso and display it on the console. But, sadly, whenever I do define the TextIO feature, it comes with many more problems %-| , here are the errors that come from text.inc:

text.inc(21,11) Error: Identifier not found "Do_Close"
text.inc(27,20) Error: Identifier not found "Do_Read"
text.inc(39,14) Error: Identifier not found "Do_Write"
text.inc(60,10) Error: Identifier not found "Do_Open"
text.inc(72,20) Error: Identifier not found "Do_Isdevice"
text.inc(201,12) Error: Identifier not found "Do_Erase"
text.inc(211,15) Error: Identifier not found "Do_Rename"
text.inc(294,26) Error: Identifier not found "Do_Isdevice"
text.inc(303,36) Error: Identifier not found "Do_FilePos"
text.inc(347,16) Error: Identifier not found "do_seek"
text.inc(636,13) Fatal: Unknown compilerproc "fpc_widestr_to_ansistr". Check
if you use the
correct runtime library.

I guess that fatal one is because I haven't defined WideStrings.

But, the others, I have no idea about them!!!

Regards

SirStorm25.

View this message in context: http://www.nabble.com/Help-with-Free-Pascal---RTL%21%21-tp18952131p18960362.html Sent from the Free Pascal - General mailing list .
SirStorm25
to leledumbo
leledumbo wrote
Well, for the iso... I guess it's possible to read files stored in it. Grub can read menu.cfg, so why can't we? The problem is... how?

If we could get those functions working it might be possible, but text.inc doesn't like to be compiled in this case :-( . If we could get the code for these functions and place them in one single file maybe... readwritelib.pas, but thats all the ideas I have. Unless we could try and invent our own functions for reading files. But that might take even longer! Any Ideas??? :confused:

Regards
SirStorm25.

View this message in context: http://www.nabble.com/Help-with-Free-Pascal---RTL%21%21-tp18952131p18960976.html Sent from the Free Pascal - General mailing list .