1

How can I use Whole Program Optimization feature in Free Pascal 2.7.1 on Windows?

I get this error:

Project1.dpr(92,1) Fatal: Cannot find "nm.exe" or "" to extract symbol liveness information from linked program

Ken White
  • 123,280
  • 14
  • 225
  • 444
user3060326
  • 187
  • 2
  • 16
  • There might be something wrong with your installation. FPC as well as lazarus come with an nm.exe. – FPK May 08 '14 at 19:11

1 Answers1

2

The problem is the WPO is trying to extract symbols from your executable using NM. NM is not available for Windows.

The good news is, Windows has DumpBin instead. I think you can use this directly in place of NM.

Icemanind
  • 47,519
  • 50
  • 171
  • 296