Sending compiler errors to text?

New to FreeBASIC? Post your questions here.
Post Reply
JohnM
Posts: 6
Joined: Apr 17, 2019 13:29

Sending compiler errors to text?

Post by JohnM »

Would there be any way to have the compiler errors logged to file?
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Sending compiler errors to text?

Post by MrSwiss »

JohnM wrote:Would there be any way to have the compiler errors logged to file?
Certainly since, the compiler call is "Command Line":
fbc [options] [file.bas] > fbc_log.txt (new file written, every time)
or
fbc [options] [file.bas] >> fbc_log.txt (appends to file, if it exists)
Xusinboy Bekchanov
Posts: 782
Joined: Jul 26, 2018 18:28

Re: Sending compiler errors to text?

Post by Xusinboy Bekchanov »

There is also: fbc [options] [file.bas] > fbc_log.txt 2> fbc_log2.txt
JohnM
Posts: 6
Joined: Apr 17, 2019 13:29

Re: Sending compiler errors to text?

Post by JohnM »

Thanks a lot! This question was a shot in the dark for me, I can't believe there's such a direct and useful solution.
Post Reply