Sign in Join

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

Mailing lists / lazarus / 2018-07

Different paths, different computers, and one project

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Marcos Douglas B. Santos

Imagine a project that works only with set of unit paths (-Fu), not packages. The issue is that a computer could have a different path for a lib, comparing to another one.

I've removed the paths from the project (.lpi) and added an with `-Fu` and `-Fl` paths. I can compile the project, but the code-completion doesn't work because the IDE can't find the units.
I can't also use `Other sources` option cause it will have the same problem using `-Fu` and hard-coded paths.

How to configure the paths?

Regards,
Marcos Douglas

Reply by email

Marcos Douglas B. Santos
to Marcos Douglas B. Santos
Marcos Douglas B. Santos wrote 12 lines
Imagine a project that works only with set of unit paths (-Fu), not packages. The issue is that a computer could have a different path for a lib, comparing to another one. I've removed the paths from the project (.lpi) and added an with `-Fu` and `-Fl` paths. I can compile the project, but the code-completion doesn't work because the IDE can't find the units. I can't also use `Other sources` option cause it will have the same problem using `-Fu` and hard-coded paths. How to configure the paths?

I've used the $Env(name) and it worked.
The $Env is the best option in that case?

Reply by email