Skip to main content
GameDev.net gamedev.net
🔒 Locked

Help with errors.

Started by caffeineaddict Jan 4, 2003 at 1:38 PM 3 replies 200+ views
Original Post
caffeineaddict
caffeineaddict
Is there a program that can aid in putting ; everywhere they need to be? I have a program and it has 3 missing ; before } all point to the last bracket in the program, is there anyway to track this down other than going through each line by hand?
Qw3r7yU10p!
Qw3r7yU10p!
perl or ruby come to mind

edit fixed links

[edited by - petewood on January 4, 2003 2:47:53 PM]
HG
HG
I think he/she means correcting existing code, rather than languages that don''t require semicolons or other delimiters.

There''s not really a quick and easy solution - work in a more structured manner, with more frequent compiles, and split your code up into modules.

If it''s pointing to the last bracket (of the main function) then presumably there are either unpaired curly brackets for previous functions, or you really have missed out semicolons somewhere. Go back and look - nearly every line should have one.

Or use an editor such as SciTE to check your brackets (go to each end bracket, and if it''s red or doesn''t match the correct one you''ve found an error).

HTH,
-Rich
-Richard
caffeineaddict
caffeineaddict
Thanks a lot for pointing me to the SciTE program, i haven''t fixed the problem yet but i can see it will help greatly, just what i was looking for.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.