Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > C++ Builder > Компиляция проекта


Автор: Bima 26.8.2006, 07:34
Проблема такая:
Хочется скомпилировать проект (получить EXE-файл) не имея на данной машине установленной BCB. Мы с другом как то такое делали на Delphi, то есть копировали необходимые файлы с установленной машины (их было не много) и с командной строки запускали процесс компиляции. Файл создавался и все работало нормально. Теперь ни он, ни я не помню, откуда мы брали эти данные и как все заново повторить на BCB.

Автор: Bima 28.8.2006, 07:14
Что никто не пользовался таким методом компиляции?

Автор: Bima 29.8.2006, 08:16
нашел 3 файла 
brc32.exe
brcc32.exe
rw32core.dll
при компиляции проекта пишу так

brc32.exe test.bpr
и в итоге получаю:

Borland Resource Compiler  Version 5.40
Copyright © 1990, 1999 Inprise Corporation.  All rights reserved.

Error test.bpr 1 1: Expecting resource name or resource type name

Файл ресурсов Test.res присутствовал до запуска файла brc32.exe, а после запуска исчез. EXE не появился  smile

Никто в ручную не собирал проект???

Автор: Romikgy 29.8.2006, 09:19
Цитата(Bima @  29.8.2006,  07:16 Найти цитируемый пост)
brc32.exe

незнаю насчет этого , но может это те поможет
http://www.delphikingdom.com/asp/viewitem.asp?catalogid=454

Автор: Bima 29.8.2006, 11:30
Увы, не помогло smile

Автор: Romikgy 29.8.2006, 11:41
ню  smile 

Автор: 586 29.8.2006, 11:43
Цитата(Bima @  29.8.2006,  09:16 Найти цитируемый пост)
brc32.exe test.bpr
и в итоге получаю:

Borland Resource Compiler  Version 5.40
Copyright © 1990, 1999 Inprise Corporation.  All rights reserved.


brc32 - компилятор ресурсов - а ты туда передаёшь файл проекта.

Набери в кодандной строке "bcr32" (без кавычек) - появится справка

Автор: Romikgy 29.8.2006, 11:47
bcc32.exe smile

Добавлено @ 11:48 
Код

Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
Available options (* = default setting, xxx = has sub-options: use -h -X):
(Note: -X- or -w-XXX will usually undo whatever was set or unset by -X)
  -3      Generate 80386 protected-mode compatible instructions
  -4      Generate 80386/80486 protected-mode compatible instructions
  -5      Generate Pentium instructions
  -6      Generate Pentium Pro instructions
  -Axxx   Use ANSI keywords and extensions
  -B      Compile to .ASM (-S), then assemble to .OBJ
  -C      Enable nested comments
  -CP     Enable code paging (for MBCS)
  -D      -D<name> defines 'name' as a null string, or use -D<name>=<value>
  -E      Specify which assembler to use
  -G      Optimize for size/speed; use -O1 and -O2 instead
  -Hxxx   Generate and use precompiled headers
  -I      Set the include file search path
  -Jxxx   Template generation options
  -K      Set default character type to unsigned
  -L      Library file search path
  -M      Create a linker map file
  -O      Optimize jumps
  -P      Perform C++ compile regardless of source extension
  -Q      Extended compiler error information
  -R      Include browser information in generated .OBJ files
* -RT     Enable runtime type information
  -S      Compile to assembly
  -T      Specify assembler option, e.g. -Tx
  -U      Undefine any previous definitions of name
  -Vxxx   Compatibility options
  -Wxxx   Target is a Windows application
  -X      Disable compiler autodependency output
  -axxx   Set data alignment boundary.  Default is -a8; -a- means -a1
* -b      Make enums integer-sized (-b- makes them short as possible)
  -c      Compile to object file only, do not link
  -d      Merge duplicate strings
  -dc     Put strings into the read-only data segment
  -dw     Put strings into the (writeable) data segment
  -e      Specify target executable pathname
* -ff     Fast floating point
  -fp     Correct Pentium FDIV flaw
  -g      Stop batch compilation after n warnings (Default = 255)
  -h      Request help ('-h -' shows all help).  Can be specific: -h -V
  -i      Set maximum significant identifier length (Default = 250)
  -j      Stop batch compilation after n errors (Default = None)
* -k      Generate standard stack frames
  -l      Pass options to the linker; example: -ls -l-x
  -m      Generate makefile dependency information
  -md     Put dependency info in .d files, not in the object file
  -mm     Ignore system header files while generating dependency info
  -mo     Specify the output file for dependency info
  -n      Set output directory for object files
  -o      Set output filename (-o<filename> or -o <filename> supported)
  -pxxx   Use Pascal calling convention
  -q      Suppress compiler identification banner
  -r      Use register variables
  -rd     Use register variables only when register keyword is employed
  -s      Link using the system's non-incremental linker
  -txxx   An alternate name for the -Wxxx switches; there is no difference
* -u      Generate underscores on symbol names
  -vxxx   Turn on source debugging
  -w      Display all warnings
  -w!     Return non-zero from compiler on warnings
  -xxxx   Enable exception handling
  -y      Debug line numbers on


Автор: Bima 29.8.2006, 13:19
Мдя, все равно ничего не получилось...
Быстрее будет ВСВ поставить в виртуалке

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)