Sending compiler errors to text?

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

Sending compiler errors to text?

Postby JohnM » Apr 22, 2019 16:19

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

Re: Sending compiler errors to text?

Postby MrSwiss » Apr 22, 2019 20:01

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: 72
Joined: Jul 26, 2018 18:28

Re: Sending compiler errors to text?

Postby Xusinboy Bekchanov » Apr 23, 2019 3:31

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?

Postby JohnM » Apr 23, 2019 8:16

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.

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 3 guests