Sign in Join

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

Mailing lists / fpc-pascal / 2000-09

Possible compiler bug

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Unknown author

In my ppc386.cfg I have these lines

# searchpath for includefiles
-Fid:\pp\source\rtl\$TARGET\*;d:\pp\units\$TARGET\*;d:\pp\projects\*

# searchpath for units and other system dependent things -Fud:\pp\source\rtl\$TARGET\*;d:\pp\units\$TARGET\*;d:\pp\projects\*

Any time I try to {$I} include a file in my d:\pp\projects directory, the compiler halts and says it can't compile one of the stock FPC units because no sources were found. If I move the .inc file I'm trying to include, to d:\pp\source\rtl\$TARGET\ then it works just fine. But I can't have the .inc file in d:\pp\projects.

Is there a way to get around this problem?

----------
Get your own FREE, personal Netscape Webmail account today at http://home.netscape.com/webmail/

Unknown author
Show quoted text 7 lines
In my ppc386.cfg I have these lines # searchpath for includefiles -Fid:\pp\source\rtl\$TARGET\*;d:\pp\units\$TARGET\*;d:\pp\projects\* # searchpath for units and other system dependent things -Fud:\pp\source\rtl\$TARGET\*;d:\pp\units\$TARGET\*;d:\pp\projects\*

You'll also need d:\pp\projects in the line as the \* adds all subdirs and not the basedir

Any time I try to {$I} include a file in my d:\pp\projects directory, the

compiler halts
and says it can't compile one of the stock FPC units because no sources were found. If I
move the .inc file I'm trying to include, to d:\pp\source\rtl\$TARGET\ then it works just
fine. But I can't have the .inc file in d:\pp\projects.

Is there a way to get around this problem?

What is the name of the include file?

Unknown author
to Unknown author
Show quoted text 6 lines
> # searchpath for includefiles > -Fid:\pp\source\rtl\$TARGET\*;d:\pp\units\$TARGET\*;d:\pp\projects\* You'll also need d:\pp\projects in the line as the \* adds all subdirs and not the basedir

I just Just tried that and it didn't make any difference.

What is the name of the include file?

defines.inc, has all of my compiler directives in it.

----------
Get your own FREE, personal Netscape Webmail account today at http://home.netscape.com/webmail/

Peter Vreman
to Unknown author
you wrote 13 lines
wrote: > > > # searchpath for includefiles > > -Fid:\pp\source\rtl\$TARGET\*;d:\pp\units\$TARGET\*;d:\pp\projects\* > > You'll also need d:\pp\projects in the line as the \* adds all subdirs > and not the basedir I just Just tried that and it didn't make any difference. > What is the name of the include file? defines.inc, has all of my compiler directives in it.

That name is also used by the windows unit and causes therefor problems because it's found and more recent than the one compiled in the windows unit. Because also windows.pp is found (due the source\rtl\ in the search path) it wants to recompile which then fails because it misses some include files.

Peter