View Full Version : Uses declaration on FPC
arthurprs
09-11-2007, 06:18 PM
why this did not work?
obj_engine in '../../SDL & GL/obj_engine.pas',
obj_input in '../../SDL & GL/obj_input.pas',
obj_image in '../../SDL & GL/obj_image.pas',
obj_font in '../../SDL & GL/obj_font.pas';
obs: on delphi it compiles well
Legolas
09-11-2007, 07:40 PM
Maybe because the blank space in "SDL & GL"?
jdarling
09-11-2007, 07:40 PM
FPC and lazarus don't allow you to specify paths in the uses clause. Instead set the path in your project options or set them in FPC.cfg.
cronodragon
09-11-2007, 08:19 PM
In FPC, I use paths in the uses clause, and it works:
{$mode objfpc}{$H+}
uses
Mundano in '..\Mundano.pas',
Escenas in '..\Escenas.pas',
Entidades in '..\Entidades.pas';
jdarling
09-11-2007, 08:57 PM
Well, I'll be damned, it does work :). Guess that was all a figment of my imagination from a version long gone.
I'd try escaping the & symbol and see if thats the problem. Seems in the back of my mind that a c style escape might help (\&).
cronodragon
09-11-2007, 09:07 PM
why this did not work?
obj_engine in '../../SDL & GL/obj_engine.pas',
obj_input in '../../SDL & GL/obj_input.pas',
obj_image in '../../SDL & GL/obj_image.pas',
obj_font in '../../SDL & GL/obj_font.pas';
obs: on delphi it compiles well
You could try \ instead of / , that's what I'm using (in Windows). No idea if that affects in Linux.
JernejL
09-11-2007, 09:31 PM
i think it doesn't like spaces, also the uses.. in.. breaks code insight in lazarus.
arthurprs
10-11-2007, 01:13 AM
Inverted the / and worked ;D
Robert Kosek
10-11-2007, 02:03 AM
Inverted the / and worked ;DSilly Linux software. :P :lol:
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.