LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-10-2022, 08:33 PM   #1
kxng_Aries
LQ Newbie
 
Registered: Jan 2022
Posts: 1

Rep: Reputation: 0
Exclamation Compiling main.pas main.pas(3,24) Fatal: Syntax error, "BEGIN" expected but ";" found Fatal: Compilation aborted


Program VaxApp;
{CONSTANT DECLARATION};
const;
grant= 10000;

{VARIABLE DECLARATIONS};

var IDnumber, Surname, Vaccinetype, CommonVax: String;

Last edited by kxng_Aries; 01-11-2022 at 02:24 AM.
 
Old 01-10-2022, 09:18 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,276
Blog Entries: 24

Rep: Reputation: 4224Reputation: 4224Reputation: 4224Reputation: 4224Reputation: 4224Reputation: 4224Reputation: 4224Reputation: 4224Reputation: 4224Reputation: 4224Reputation: 4224
Welcome to LQ!

Please wrap your code and data snippets inside [CODE]...[/CODE] tags. Doing so will preserve indentation and provide other visual clues which make it easier for others to comprehend. You may write those yourself as shown, or use the # button available with Advanced edit options. (A complete list of BBCode tags is always available via a link near the bottom of every thread view).

Presumably, the error message in the title indicates some problem, but you have not told us what the environment or language is, nor actually asked a question or indicated what you may have done to resolve it. Posting whole code and asking others to debug it for you is not usually a good path to getting help.

Please review the Site FAQ for guidance in asking well formed questions. Especially visit the link from that page, How to Ask Questions the Smart Way for discussion of things to consider when asking others for help.

Last edited by astrogeek; 01-10-2022 at 09:19 PM.
 
Old 01-10-2022, 11:35 PM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,883
Blog Entries: 1

Rep: Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872
Maybe const; should be simply const
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] "Error: syntax before '@' token and Error: syntax at 'OTHER' token" bullrider Programming 2 07-27-2009 08:00 AM
BEGIN failed--compilation aborted at /usr/bin/autom4te cramerdy Linux - Software 0 05-30-2008 12:40 AM
Compilation aborted - Please read the FAQ for linux-libc-headers package ???? idardh Linux - Software 3 07-17-2006 07:31 PM
problem w/ mrtg - compilation aborted mapster Mandriva 1 05-24-2006 04:55 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration