Hi, I just downloaded the Regex Library. I followed the install instructions for Borland C++ 4.0 and tried to make with (path to BC++ bin dir)/MAKE -fBCB4.mak INSTALL I got the following errors: ../src/c_regex_traits.cpp: Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\list.h 3: Incorrect pragma directive option: push Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\list.h 3: Incorrect pragma directive option: -Vx- Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\algorith.h 3: Incorrect pragma directive option: push Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\algorith.h 3: Incorrect pragma directive option: -Vx- Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 3: Incorrect pragma directive option: push Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 3: Incorrect pragma directive option: -Vx- Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stddefs.h 3: Incorrect pragma directive option: push Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stddefs.h 3: Incorrect pragma directive option: -Vx- Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stdwind.h 3: Incorrect pragma directive option: push Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stdwind.h 3: Incorrect pragma directive option: -Vx- Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stdwind.h 212: Incorrect pragma directive option: pop Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stddefs.h 191: Incorrect pragma directive option: pop Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 120: Type name expected Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 120: , expected Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 141: Multiple declaration for 'std::iterator_traits<Iterator>' Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 148: Declaration terminated incorrectly Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 149: Multiple declaration for 'std::iterator_traits<Iterator>' Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 156: Declaration terminated incorrectly Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 191: Templates must be classes or functions Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 373: Type name expected in template std::reverse_iterator<Iterator> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 373: { expected in template std::reverse_iterator<Iterator> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 377: { expected in template std::reverse_iterator<Iterator> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 424: Declaration terminated incorrectly in template std::reverse_iterator<Iterator> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 608: Type name expected in template std::back_insert_iterator<Container> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 608: { expected in template std::back_insert_iterator<Container> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 608: Too many error or warning messages in template std::back_insert_iterator<Container> *** 26 errors in Compile *** ** error 1 ** deleting bcb4\boost_regex_bcb4_sss\c_regex_traits.obj What's wrong?? Could someone help me out? Thanks, Atul
Try this in a batch file:
@echo off
set bcroot="h:\program files\borland\cbuilder4"
set path=%SYSTEMROOT%\SYSTEM32;%SYSTEMROOT%;h:\program
files\borland\cbuilder4\bin
h:
cd "\Utilities\Boost Libraries\boost_1_28_0\libs\regex\build"
make -fbcb4.mak > out.txt
notepad out.txt
Substitute the path to BCB4 in Line 2
Susbstitute the path to Boost in line 5 ( with the appropriate drive letter
in line 4 )
Substitute your favorite editor in the last line
"Atul Bhouraskar"
Hi,
I just downloaded the Regex Library. I followed the install instructions for Borland C++ 4.0 and tried to make with
(path to BC++ bin dir)/MAKE -fBCB4.mak INSTALL
I got the following errors:
../src/c_regex_traits.cpp: Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\list.h 3: Incorrect pragma directive option: push Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\list.h 3: Incorrect pragma directive option: -Vx- Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\algorith.h 3: Incorrect pragma directive option: push Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\algorith.h 3: Incorrect pragma directive option: -Vx- Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 3: Incorrect pragma directive option: push Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 3: Incorrect pragma directive option: -Vx- Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stddefs.h 3: Incorrect pragma directive option: push Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stddefs.h 3: Incorrect pragma directive option: -Vx- Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stdwind.h 3: Incorrect pragma directive option: push Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stdwind.h 3: Incorrect pragma directive option: -Vx- Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stdwind.h 212: Incorrect pragma directive option: pop Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\rw/stddefs.h 191: Incorrect pragma directive option: pop Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 120: Type name expected Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 120: , expected Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 141: Multiple declaration for 'std::iterator_traits<Iterator>' Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 148: Declaration terminated incorrectly Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 149: Multiple declaration for 'std::iterator_traits<Iterator>' Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 156: Declaration terminated incorrectly Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 191: Templates must be classes or functions Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 373: Type name expected in template std::reverse_iterator<Iterator> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 373: { expected in template std::reverse_iterator<Iterator> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 377: { expected in template std::reverse_iterator<Iterator> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 424: Declaration terminated incorrectly in template std::reverse_iterator<Iterator> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 608: Type name expected in template std::back_insert_iterator<Container> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 608: { expected in template std::back_insert_iterator<Container> Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\iterator.h 608: Too many error or warning messages in template std::back_insert_iterator<Container> *** 26 errors in Compile ***
** error 1 ** deleting bcb4\boost_regex_bcb4_sss\c_regex_traits.obj
What's wrong?? Could someone help me out?
Thanks,
Atul
I just downloaded the Regex Library. I followed the install instructions for Borland C++ 4.0 and tried to make with
(path to BC++ bin dir)/MAKE -fBCB4.mak INSTALL
I got the following errors:
../src/c_regex_traits.cpp: Error C:\PROGRA~1\BORLAND\CBUILD~1\BIN\..\include\list.h 3: Incorrect pragma directive option: push
Whatever the problem is, the first error is occuring inside Rogue Waves standard lib code, not boost.regex. Somewhere you have a setup problem - looks to me like you are using an old Borland C++ version (and not C++ Builder 4). John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm
participants (3)
-
Atul Bhouraskar
-
Edward Diener
-
John Maddock