When building with Lazarus Where does Linker stdout go

General discussion about anything related to Ultibo.
jefferobertson
Posts: 8
Joined: Fri Aug 10, 2018 4:29 pm

When building with Lazarus Where does Linker stdout go

Postby jefferobertson » Sat Aug 11, 2018 12:44 pm

I figured out how to use the Lazarus project properties form, Compilation and Linking tab to pass options to the linker. Passing --print-map asks the linker to write a link map to stdout. Where does stdout go when running with Lazarus. It does not appear in the message window.

Thanks
User avatar
Ultibo
Site Admin
Posts: 2002
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: When building with Lazarus Where does Linker stdout go

Postby Ultibo » Sun Aug 12, 2018 1:00 am

jefferobertson wrote:Passing --print-map asks the linker to write a link map to stdout. Where does stdout go when running with Lazarus. It does not appear in the message window.

Hi, welcome to Ultibo.

I not sure where stdout goes during a build from Lazarus, it seems to be consumed and parsed to produce the message window output.

If you use lazbuild.exe instead the --print-map option works but it produces a lot of output so a better option might be to use -Map and pass a filename like "-Map myfile.map" (note the quotes) which will write the map file to myfile.map instead of stdout and works from Lazarus, Lazbuild or even command line FPC.
Ultibo.org | Make something amazing
https://ultibo.org
jefferobertson
Posts: 8
Joined: Fri Aug 10, 2018 4:29 pm

Re: When building with Lazarus Where does Linker stdout go

Postby jefferobertson » Sun Aug 12, 2018 10:09 pm

Thanks, I eventually found -Map.

Return to “Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests