- Syntax error unit expected but program found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Syntax error unit expected but program found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- Re: Syntax error, «UNIT» expected but «USES» found
- [Паскалъ] Need Help
Syntax error unit expected but program found
alexmlw » 15.01.2011 16:52:17
при компилировании выскакивает ошибка «Syntax error, «UNIT» expected but «USES» found»
Добавлено спустя 27 минут 41 секунду:
эту ошибку исправил но вместо нее теперь другая Can’t find unit Graph used by Program как ее исправить?
Re: Syntax error, «UNIT» expected but «USES» found
Nik » 15.01.2011 18:02:56
Re: Syntax error, «UNIT» expected but «USES» found
Little_Roo » 15.01.2011 18:03:43
alexmlw писал(а): при компилировании выскакивает ошибка «Syntax error, «UNIT» expected but «USES» found»
Добавлено спустя 27 минут 41 секунду:
эту ошибку исправил но вместо нее теперь другая Can’t find unit Graph used by Program как ее исправить?
Re: Syntax error, «UNIT» expected but «USES» found
alexmlw » 15.01.2011 18:20:44
Re: Syntax error, «UNIT» expected but «USES» found
Vadim » 15.01.2011 20:17:56
Re: Syntax error, «UNIT» expected but «USES» found
alexmlw » 15.01.2011 23:39:32
тоже самое ток вместо graph ругается на ggigraph
Re: Syntax error, «UNIT» expected but «USES» found
Иван Шихалев » 15.01.2011 23:46:08
Re: Syntax error, «UNIT» expected but «USES» found
trius-strannik » 15.01.2011 23:49:21
Re: Syntax error, «UNIT» expected but «USES» found
alexmlw » 15.01.2011 23:53:42
#
# Example fpc.cfg for Free Pascal Compiler
#
#
# nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
#
# -d is the same as #DEFINE
# -u is the same as #UNDEF
#
#
# Some examples (for switches see below, and the -? helppages)
#
# Try compiling with the -dRELEASE or -dDEBUG on the commandline
#
# For a release compile with optimizes and strip debuginfo
#IFDEF RELEASE
-O2
-Xs
#WRITE Compiling Release Version
#ENDIF
# For a debug version compile with debuginfo and all codegeneration checks on
#IFDEF DEBUG
-g
-Crtoi
#WRITE Compiling Debug Version
#ENDIF
# set binutils prefix
#IFNDEF CPUI386
#IFNDEF CPUAMD64
#DEFINE NEEDCROSSBINUTILS
#ENDIF
#ENDIF
#IFNDEF linux
#DEFINE NEEDCROSSBINUTILS
#ENDIF
#IFDEF FPC_CROSSCOMPILING
#IFDEF NEEDCROSSBINUTILS
-XP$fpctarget-
#ENDIF NEEDCROSSBINUTILS
#ENDIF
# assembling
#ifdef darwin
# use pipes instead of temporary files for assembling
-ap
#endif
# Pascal language mode
# -Mfpc free pascal dialect (default)
# -Mobjfpc switch some Delphi 2 extensions on
# -Mdelphi tries to be Delphi compatible
# -Mtp tries to be TP/BP 7.0 compatible
# -Mgpc tries to be gpc compatible
# -Mmacpas tries to be compatible to the macintosh pascal dialects
#
# Turn on Object Pascal extensions by default
#-Mobjfpc
# Assembler reader mode
# -Rdefault use default assembler
# -Ratt read AT&T style assembler
# -Rintel read Intel style assembler
#
# All assembler blocks are AT&T styled by default
#-Ratt
# Semantic checking
# -S2 same as -Mobjfpc
# -Sc supports operators like C (*=,+=,/= and -=)
# -Sa include assertion code.
# -Sd same as -Mdelphi
# -Se error options. is a combination of the following:
# : compiler stops after the errors (default is 1)
# w : compiler stops also after warnings
# n : compiler stops also after notes
# h : compiler stops also after hints
# -Sg allow LABEL and GOTO
# -Sh Use ansistrings
# -Si support C++ styled INLINE
# -Sk load fpcylix unit
# -SI set interface style to
# -SIcom COM compatible interface (default)
# -SIcorba CORBA compatible interface
# -Sm support macros like C (global)
# -So same as -Mtp
# -Sp same as -Mgpc
# -Ss constructor name must be init (destructor must be done)
# -St allow static keyword in objects
# -Sx enable exception keywords (default in Delphi/ObjFPC modes)
#
# Allow goto, inline, C-operators, C-vars
-Sgic
# Uncomment the next line if you always want static/dynamic units by default
# (can be overruled with -CD, -CS at the commandline)
#-CS
#-CD
# Set the default heapsize to 8Mb
#-Ch8000000
# Set default codegeneration checks (iocheck, overflow, range, stack)
#-Ci
#-Co
#-Cr
#-Ct
# Optimizer switches
# -Os generate smaller code
# -O1 level 1 optimizations (quick optimizations, debuggable)
# -O2 level 2 optimizations (-O1 + optimizations which make debugging more difficult)
# -O3 level 3 optimizations (-O2 + optimizations which also may make the program slower rather than faster)
# -Op set target cpu for optimizing, see fpc -i for possible values
#
# See «fpc -i» also for more fine-grained control over which optimizations
# to perform
#ifdef darwin
#ifdef cpui386
-Cppentiumm
-Oppentiumm
#endif
#endif
# Slashes are also allowed under dos
# path to the messagefile, not necessary anymore but can be used to override
# the default language
#-Fr/usr/lib/fpc/$fpcversion/msg/errore.msg
#-Fr/usr/lib/fpc/$fpcversion/msg/errorn.msg
#IFDEF FPCAPACHE_1_3
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd13/
#ELSE
#IFDEF FPCAPACHE_2_0
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd20
#ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd22
#ENDIF
#ENDIF
# searchpath for units and other system dependent things
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#-Fu
# searchpath for libraries
#ifdef cpux86_64
-Fl/usr/lib/gcc/x86_64-linux-gnu/4.4.5
#endif
# generate always debugging information for GDB (slows down the compiling
# process)
# -gc generate checks for pointers
# -gd use dbx
# -gg use gsym
# -gh use heap trace unit (for memory leak debugging)
# -gl use line info unit to show more info for backtraces
# -gv generates programs tracable with valgrind
# -gw generate dwarf debugging info
#
# Enable debuginfo and use the line info unit by default
#-gl
# always pass an option to the linker
#-k-s
# Always strip debuginfo from the executable
-Xs
Syntax error unit expected but program found
alexmlw » 15.01.2011 16:52:17
при компилировании выскакивает ошибка «Syntax error, «UNIT» expected but «USES» found»
Добавлено спустя 27 минут 41 секунду:
эту ошибку исправил но вместо нее теперь другая Can’t find unit Graph used by Program как ее исправить?
Re: Syntax error, «UNIT» expected but «USES» found
Nik » 15.01.2011 18:02:56
Re: Syntax error, «UNIT» expected but «USES» found
Little_Roo » 15.01.2011 18:03:43
alexmlw писал(а): при компилировании выскакивает ошибка «Syntax error, «UNIT» expected but «USES» found»
Добавлено спустя 27 минут 41 секунду:
эту ошибку исправил но вместо нее теперь другая Can’t find unit Graph used by Program как ее исправить?
Re: Syntax error, «UNIT» expected but «USES» found
alexmlw » 15.01.2011 18:20:44
Re: Syntax error, «UNIT» expected but «USES» found
Vadim » 15.01.2011 20:17:56
Re: Syntax error, «UNIT» expected but «USES» found
alexmlw » 15.01.2011 23:39:32
тоже самое ток вместо graph ругается на ggigraph
Re: Syntax error, «UNIT» expected but «USES» found
Иван Шихалев » 15.01.2011 23:46:08
Re: Syntax error, «UNIT» expected but «USES» found
trius-strannik » 15.01.2011 23:49:21
Re: Syntax error, «UNIT» expected but «USES» found
alexmlw » 15.01.2011 23:53:42
#
# Example fpc.cfg for Free Pascal Compiler
#
#
# nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
#
# -d is the same as #DEFINE
# -u is the same as #UNDEF
#
#
# Some examples (for switches see below, and the -? helppages)
#
# Try compiling with the -dRELEASE or -dDEBUG on the commandline
#
# For a release compile with optimizes and strip debuginfo
#IFDEF RELEASE
-O2
-Xs
#WRITE Compiling Release Version
#ENDIF
# For a debug version compile with debuginfo and all codegeneration checks on
#IFDEF DEBUG
-g
-Crtoi
#WRITE Compiling Debug Version
#ENDIF
# set binutils prefix
#IFNDEF CPUI386
#IFNDEF CPUAMD64
#DEFINE NEEDCROSSBINUTILS
#ENDIF
#ENDIF
#IFNDEF linux
#DEFINE NEEDCROSSBINUTILS
#ENDIF
#IFDEF FPC_CROSSCOMPILING
#IFDEF NEEDCROSSBINUTILS
-XP$fpctarget-
#ENDIF NEEDCROSSBINUTILS
#ENDIF
# assembling
#ifdef darwin
# use pipes instead of temporary files for assembling
-ap
#endif
# Pascal language mode
# -Mfpc free pascal dialect (default)
# -Mobjfpc switch some Delphi 2 extensions on
# -Mdelphi tries to be Delphi compatible
# -Mtp tries to be TP/BP 7.0 compatible
# -Mgpc tries to be gpc compatible
# -Mmacpas tries to be compatible to the macintosh pascal dialects
#
# Turn on Object Pascal extensions by default
#-Mobjfpc
# Assembler reader mode
# -Rdefault use default assembler
# -Ratt read AT&T style assembler
# -Rintel read Intel style assembler
#
# All assembler blocks are AT&T styled by default
#-Ratt
# Semantic checking
# -S2 same as -Mobjfpc
# -Sc supports operators like C (*=,+=,/= and -=)
# -Sa include assertion code.
# -Sd same as -Mdelphi
# -Se error options. is a combination of the following:
# : compiler stops after the errors (default is 1)
# w : compiler stops also after warnings
# n : compiler stops also after notes
# h : compiler stops also after hints
# -Sg allow LABEL and GOTO
# -Sh Use ansistrings
# -Si support C++ styled INLINE
# -Sk load fpcylix unit
# -SI set interface style to
# -SIcom COM compatible interface (default)
# -SIcorba CORBA compatible interface
# -Sm support macros like C (global)
# -So same as -Mtp
# -Sp same as -Mgpc
# -Ss constructor name must be init (destructor must be done)
# -St allow static keyword in objects
# -Sx enable exception keywords (default in Delphi/ObjFPC modes)
#
# Allow goto, inline, C-operators, C-vars
-Sgic
# Uncomment the next line if you always want static/dynamic units by default
# (can be overruled with -CD, -CS at the commandline)
#-CS
#-CD
# Set the default heapsize to 8Mb
#-Ch8000000
# Set default codegeneration checks (iocheck, overflow, range, stack)
#-Ci
#-Co
#-Cr
#-Ct
# Optimizer switches
# -Os generate smaller code
# -O1 level 1 optimizations (quick optimizations, debuggable)
# -O2 level 2 optimizations (-O1 + optimizations which make debugging more difficult)
# -O3 level 3 optimizations (-O2 + optimizations which also may make the program slower rather than faster)
# -Op set target cpu for optimizing, see fpc -i for possible values
#
# See «fpc -i» also for more fine-grained control over which optimizations
# to perform
#ifdef darwin
#ifdef cpui386
-Cppentiumm
-Oppentiumm
#endif
#endif
# Slashes are also allowed under dos
# path to the messagefile, not necessary anymore but can be used to override
# the default language
#-Fr/usr/lib/fpc/$fpcversion/msg/errore.msg
#-Fr/usr/lib/fpc/$fpcversion/msg/errorn.msg
#IFDEF FPCAPACHE_1_3
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd13/
#ELSE
#IFDEF FPCAPACHE_2_0
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd20
#ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd22
#ENDIF
#ENDIF
# searchpath for units and other system dependent things
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#-Fu
# searchpath for libraries
#ifdef cpux86_64
-Fl/usr/lib/gcc/x86_64-linux-gnu/4.4.5
#endif
# generate always debugging information for GDB (slows down the compiling
# process)
# -gc generate checks for pointers
# -gd use dbx
# -gg use gsym
# -gh use heap trace unit (for memory leak debugging)
# -gl use line info unit to show more info for backtraces
# -gv generates programs tracable with valgrind
# -gw generate dwarf debugging info
#
# Enable debuginfo and use the line info unit by default
#-gl
# always pass an option to the linker
#-k-s
# Always strip debuginfo from the executable
-Xs
[Паскалъ] Need Help
Что программа должна делать(на пхп)
ЕМНИП перед else там точка с запятой не ставится.
Не, ругается на другое, и спасибо это пофиксил.
> перед else там точка с запятой не ставится.
> ругается на другое
Условия в скобки попробуй.
Перед else ; не ставится.
У readln точно такой синтаксис? (я уже запамятовал)
Условия в скобки не надо?
Операции сравнения в скобки возьми.
А теперь, дружище, запомни, что вот этот выхлоп
untitled.pas(26,7) Error: Incompatible types: got «Boolean» expected «LongInt»
untitled.pas(28,2) Fatal: Syntax error, «;» expected but «ELSE» found
должен читать ТЫ сам, а не ЛОР.
Свободно говорю на Русском, Литовском, Английском.
Свободно говорю на Английском
Error: Incompatible types: got «Boolean» expected «LongInt»
Fatal: Syntax error, «;» expected but «ELSE» found