Rob Lahaye <[EMAIL PROTECTED]> writes:

>> Rob Lahaye <[EMAIL PROTECTED]> writes:
>>
>>>>>
>>>> | Does that ring a bell?
>>>> Unfortunately not.
>>>> We should perhaps try to find a reduced testcase that also fails.
>>>> ---
>>>> #include <boost/cstdint.hpp>
>>>> int main() {
>>>> }
>>>> ---
>>>> Is that enouthg to trigger it?
>>>> put the file in a lyx topdir and compile with g++ -W -Wall -Iboost -c
>>>> -o test.o test.C
>>>
>> | $ cd <lyx-top dir>
>> | $ cat test.C
>> | #include <boost/cstdint.hpp>
>> | int main() { return 0; }
>> | $ g++33 -W -Wall -Iboost -c -o test.o test.C
>> | $
>>>
>> | Apparently, no problem!
>>>
>> | I hope that gives a hint, does it?
>> Yes it might... can you give me the origianl failure report again.
>> (sorry for making you do the leg work...)
>
| No, not at all. I'm glad you're giving me clear directions, since I have
| no idea how to proceed. So, here you go:
>
| source='cpp_regex_traits.cpp' object='cpp_regex_traits.lo' libtool=yes \
| depfile='.deps/cpp_regex_traits.Plo' tmpdepfile='.deps/cpp_regex_traits.TPlo' \
| depmode=gcc3 /usr/local/bin/bash ../../../../config/depcomp \
| /usr/local/bin/bash ../../../../libtool --mode=compile /usr/local/bin/g++33 
-DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../boost  -I/opt/include  
-I/usr/local/include   -I/usr/X11R6/include -DBOOST_USER_CONFIG="<config.h>" -g -O 
-fno-exceptions -W -Wall -c -o cpp_regex_traits.lo `test -f cpp_regex_traits.cpp || 
echo './'`cpp_regex_traits.cpp
|   /usr/local/bin/g++33 -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../boost 
-I/opt/include -I/usr/local/include -I/usr/X11R6/include 
"-DBOOST_USER_CONFIG=<config.h>" -g -O -fno-exceptions -W -Wall -c 
cpp_regex_traits.cpp -MT cpp_regex_traits.lo -MD -MP -MF .deps/cpp_regex_traits.TPlo 
-o cpp_regex_traits.o
| In file included from ../../../../boost/boost/regex/config.hpp:54,
|                   from cpp_regex_traits.cpp:22:
| ../../../../boost/boost/cstdint.hpp:121: error: redeclaration of C++ built-in
|     type `long'

So it is some combination of headers that cause this.

Please try this:
----
#  include <boost/regex/user.hpp>
#  include <cstdlib>
#  include <cstddef>
#  include <cstdio>
#  include <clocale>
#  include <cassert>
#  include <string>
#  include <stdexcept>
#  include <iterator>
#  include <iosfwd>
#  include <vector>
#  include <boost/config.hpp>
#  include <boost/cstdint.hpp>

int main() {}
----

Same command to compile as before.

If it fails, could you try to remove (comment out) some of the less
likely culprits: all includes except <cstdlib> and <boost/cstdint.hpp>
We should try to create a small testcase so that we can find the real
problem. (could it be a missing include guard?)

>
>> Just to clearify, is this on a 32bit or 64bit platform?
>
| CPU: Intel(R) Pentium(R) 4 CPU 2.60GHz (2612.57-MHz 686-class CPU)
>
| That's 32 bit, right?

right.

-- 
        Lgb

Reply via email to