Sign in Join

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

Mailing lists / fpc-pascal / 2000-10

utils-path

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Dominik Schulz

Hi!

I tried to compile the sample-program menu.pp for win32. It worked, but the compiler printed out, that it can't find the linker ldw and switched to external linking.

In my \bin\win32\ppc386.cfg the path is set:
-FDc:\devel\fpc/bin/$TARGET

The file ldw.exe is in c:\devel\fpc\bin\win32

I tried some commandline options:
ldw found: ppc386 -FDc:\devel\fpc\bin\win32 menu ldw not found: ppc386 -FDc:\devel\fpc\bin\$TARGET menu ldw not found: ppc386 -Twin32 -FDc:\devel\fpc\bin\$TARGET menu

After that I add to ppc386.cfg
-FDc:\devel\fpc/bin/win32
But this resulted in external linking too.

The commandline option -va does not give more informations about that.

What is the problem?

Thank you, Dominik

Reply by email

Dominik Schulz

Hi!

I tried to compile the sample-program menu.pp for win32. It worked, but the compiler printed out, that it can't find the linker ldw and switched to external linking.

In my \bin\win32\ppc386.cfg the path is set:
-FDc:\devel\fpc/bin/$TARGET

The file ldw.exe is in c:\devel\fpc\bin\win32

I tried some commandline options:
ldw found: ppc386 -FDc:\devel\fpc\bin\win32 menu ldw not found: ppc386 -FDc:\devel\fpc\bin\$TARGET menu ldw not found: ppc386 -Twin32 -FDc:\devel\fpc\bin\$TARGET menu

After that I add to ppc386.cfg
-FDc:\devel\fpc/bin/win32
But this resulted in external linking too.

The commandline option -va does not give more informations about that.

What is the problem?

Thank you, Dominik

Reply by email

Jonas Maebe
ldw found: ppc386 -FDc:\devel\fpc\bin\win32 menu ldw not found: ppc386 -FDc:\devel\fpc\bin\$TARGET menu ldw not found: ppc386 -Twin32 -FDc:\devel\fpc\bin\$TARGET menu

Mayeb the ones with $TARGET will work if you enclose those arguments with quotes:

ppc386 '-FDc:\devel\fpc\bin\$TARGET' menu

After that I add to ppc386.cfg -FDc:\devel\fpc/bin/win32 But this resulted in external linking too.

It seems your ppc386.cfg doesn't get loaded (or at least not the copy you're editing). The search order for a ppc386.cfg is

a) current dir
b) dir where ppc386.exe is
c) ?

The commandline option -va does not give more informations about that.

Maybe it allows you to see which ppc386.cfg is loaded.

Jonas

Reply by email

Dominik Schulz
to Jonas Maebe
"Jonas Maebe" wrote 8 lines
>After that I add to ppc386.cfg > -FDc:\devel\fpc/bin/win32 >But this resulted in external linking too. It seems your ppc386.cfg doesn't get loaded (or at least not the copy you're editing). The search order for a ppc386.cfg is a) current dir

No ppc386.cfg is located there.

b) dir where ppc386.exe is

I edited this one.

Show quoted text 5 lines
c) ? >The commandline option -va does not give more informations about that. Maybe it allows you to see which ppc386.cfg is loaded.

I've tested several other things. I wrote garbage in this file. FPC complained about it. I commented all lines beginning with '-Fu'. Neverless the compiler found all units it needed. I renamed the file (new name: 'ppc386.cfg.old'), but the program compiled well(, even there were no informations put out). Ldw was also found.

BTW: My FPC version is 1.00

ciao, Dominik

Reply by email

Dominik Schulz
to Jonas Maebe: Mayeb the ones with $TARGET will work if you enclose those arguments with quotes: ppc386…
"Jonas Maebe" wrote 8 lines
>After that I add to ppc386.cfg > -FDc:\devel\fpc/bin/win32 >But this resulted in external linking too. It seems your ppc386.cfg doesn't get loaded (or at least not the copy you're editing). The search order for a ppc386.cfg is a) current dir

No ppc386.cfg is located there.

b) dir where ppc386.exe is

I edited this one.

Show quoted text 5 lines
c) ? >The commandline option -va does not give more informations about that. Maybe it allows you to see which ppc386.cfg is loaded.

I've tested several other things. I wrote garbage in this file. FPC complained about it. I commented all lines beginning with '-Fu'. Neverless the compiler found all units it needed. I renamed the file (new name: 'ppc386.cfg.old'), but the program compiled well(, even there were no informations put out). Ldw was also found.

BTW: My FPC version is 1.00

ciao, Dominik

Reply by email