I haven't added {BRLCAD}/include to the include paths but
{BRLCAD}/include/brlcad. This way I had the unique header names
"common.h" and "brlcad/common.h". I.e. my makefile starts with:
BRLCAD_ROOT = /home/daniel/bin/brlcad
RT^3_DIR = /home/daniel/devel/rt^3
####### Compiler, tools and options
CC = gcc
CXX = g++
DEFINES = -I${RT^3_DIR}/include -I${BRLCAD_ROOT}/include
-I${BRLCAD_ROOT}/include/brlcad -I${BRLCAD_ROOT}/include/openNURBS
DEL_FILE = rm
CFLAGS = -pipe -O2 $(DEFINES)
CXXFLAGS = -pipe -O2 $(DEFINES)
INCPATH = -I.
LINK = g++
LFLAGS =
LIBS = $(SUBLIBS) ${BRLCAD_ROOT}/lib/libbn.so
${BRLCAD_ROOT}/lib/libbu.so ${BRLCAD_ROOT}/lib/librt.so
${BRLCAD_ROOT}/lib/libopenNURBS.so ${BRLCAD_ROOT}/lib/libtcl8.5.so
/usr/lib/libz.so
Daniel
2009/7/13 David Loman <[email protected]>:
> Okay. I failed to correctly explain.
> The compiler is confusing {BRLCAD}/include/brlcad/common.h with
> {RT3}/include/brlcad/common.h
>
> -Dave
>
>
>
> On Mon, Jul 13, 2009 at 10:26 AM, Daniel Roßberg
> <[email protected]> wrote:
>>
>> Dave,
>>
>> You must not add rt^3/include/brlcad to the include directories. Add
>> rt^3/include only.
>>
>>
>> Regards,
>> Daniel
>>
>>
>>
>> 2009/7/13 David Loman <[email protected]>:
>> > Dr Rossberg,
>> > I recently ran into a problem when trying to compile the coreInterface
>> > classes on Linux. It seems that the compiler was getting
>> > rt^3/include/brlcad/common.h mixed up with the brlcad/common.h that is
>> > installed with the BRLCAD suite. I temporarily renamed the rt3 file to
>> > include/cicommon.h and was wondering if you had a problem with me
>> > commiting
>> > that change?
>> >
>> > Thanks again,
>> >
>> > Dave Loman
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Enter the BlackBerry Developer Challenge
>> > This is your chance to win up to $100,000 in prizes! For a limited time,
>> > vendors submitting new applications to BlackBerry App World(TM) will
>> > have
>> > the opportunity to enter the BlackBerry Developer Challenge. See full
>> > prize
>> > details at: http://p.sf.net/sfu/Challenge
>> > _______________________________________________
>> > BRL-CAD Developer mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>> >
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
>> prize
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> BRL-CAD Developer mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> BRL-CAD Developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
>
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel