Boost compilation, Windows 98 SE and gcc
Hi, I'm trying to compile boost with gcc (the version currently distributed with cygwin: 2.95.3-5 and not the pre-release version 3.1.1) but when I run bjam with either -sTOOLS=gcc-stlport or sTOOLS=gcc I get an error: gcc-Link-action actions too long (max 1023): g++ -Wl,--export-all-symbols -Wl,--exclude-symbols,_bss_end__:_bss_start__: _data_end__:_data_start__ -Wl,--out-implib,libs\regex\build\bin\boost_regex. dll\ gcc-stlport\debug\runtime-link-dynamic\boost_regex.lib -g -shared -o "libs\reg ex\build\bin\boost_regex.dll\gcc-stlport\debug\runtime-link-dynamic\boost_re gex. dll" "libs\regex\build\bin\boost_regex.dll\gcc-stlport\debug\runtime-link-dyn amic\c_regex_traits.obj" "libs\regex\build\bin\boost_regex.dll\gcc-stlport\debug \runtime-link-dynamic\c_regex_traits_common.obj" "libs\regex\build\bin\boost_reg ex.dll\gcc-stlport\debug\runtime-link-dynamic\cpp_regex_traits.obj" "libs\regex\ build\bin\boost_regex.dll\gcc-stlport\debug\runtime-link-dynamic\cregex.obj" "li bs\regex\build\bin\boost_regex.dll\gcc-stlport\debug\runtime-link-dynamic\fi leit er.obj" "libs\regex\build\bin\boost_regex.dll\gcc-stlport\debug\runtime-link-dyn amic\posix_api.obj" "libs\regex\build\bin\boost_regex.dll\gcc-stlport\debug\runt ime-link-dynamic\regex.obj" "libs\regex\build\bin\boost_regex.dll\gcc-stlport\de bug\runtime-link-dynamic\regex_debug.obj" "libs\regex\build\bin\boost_regex.dll\ gcc-stlport\debug\runtime-link-dynamic\regex_synch.obj" "libs\regex\build\bin\bo ost_regex.dll\gcc-stlport\debug\runtime-link-dynamic\w32_regex_traits.obj" "libs \regex\build\bin\boost_regex.dll\gcc-stlport\debug\runtime-link-dynamic\wide _pos ix_api.obj" "libs\regex\build\bin\boost_regex.dll\gcc-stlport\debug\runtime-link -dynamic\instances.obj" "libs\regex\build\bin\boost_regex.dll\gcc-stlport\debug\ runtime-link-dynamic\winstances.obj" -lstlport_cygwin_stldebug Am I doing something wrong? Some may have noticed that I have already posted something on this newsgroup, for which I already had a working version of boost, that's true. Unfortunately I ran in some problems using inherited classes and I found on the internet some bug reports on the Visual Studio 6.0 and the error: error C2275: 'referenceCounter' : illegal use of this type as an expression, this happens at the line linkedList_class.declare_base(referenceCounter); That is the reason why I switched to GCC. However, any help would be appreciated. Jacco Flenter
"J.Flenter"
Hi,
I'm trying to compile boost with gcc (the version currently distributed with cygwin: 2.95.3-5 and not the pre-release version 3.1.1) but when I run bjam with either -sTOOLS=gcc-stlport or sTOOLS=gcc I get an error:
gcc-Link-action actions too long (max 1023):
<snip>
Am I doing something wrong?
Some may have noticed that I have already posted something on this newsgroup, for which I already had a working version of boost, that's
Unfortunately I ran in some problems using inherited classes and I found on the internet some bug reports on the Visual Studio 6.0 and the error: error C2275: 'referenceCounter' : illegal use of this type as an expression,
No. The problem is a Win95/g++/bjam limitation. However, using the current CVS state may fix it. Have you tried checking out the latest? true. this
happens at the line
linkedList_class.declare_base(referenceCounter);
That is the reason why I switched to GCC. However, any help would be appreciated.
I know you've already gone a long way by switching compilers, but I guess that if you still have trouble you might try upgrading to an OS with a reasonable command-shell (e.g. Win2K). That will drastically improve the line-length limitation issue. -Dave
I'm trying to compile boost with gcc (the version currently distributed with cygwin: 2.95.3-5 and not the pre-release version 3.1.1) but when I run bjam with either -sTOOLS=gcc-stlport or sTOOLS=gcc I get an error:
gcc-Link-action actions too long (max 1023):
If you are using cygwin, then I suggest that you compile Jam under cygwin and all the problems should go away. Just use a: make CC=gcc in the tools/build/jam_src directory, then copy the executable to /usr/local/bin. John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm
Oh, that works now?
Cool!
John, would you mind adding some "notes for Win9x" users to the Boost.Build
documentation? I'd do it myself, but as a Win9x user I'm sure you know what
to say better than I do.
TIA,
Dave
"John Maddock"
I'm trying to compile boost with gcc (the version currently distributed with cygwin: 2.95.3-5 and not the pre-release version 3.1.1) but when I run bjam with either -sTOOLS=gcc-stlport or sTOOLS=gcc I get an error:
gcc-Link-action actions too long (max 1023):
If you are using cygwin, then I suggest that you compile Jam under cygwin and all the problems should go away.
Just use a:
make CC=gcc
in the tools/build/jam_src directory, then copy the executable to /usr/local/bin.
John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm
participants (3)
-
David Abrahams
-
J.Flenter
-
John Maddock