It is currently Mon Apr 29, 2024 2:44 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3
Author Message
Offline
 Post subject: Re: Kombilo 0.7.1
Post #41 Posted: Sun Jul 14, 2013 1:43 am 
Lives in sente

Posts: 923
Location: UK
Liked others: 72
Was liked: 479
Rank: 5 dan
KGS: macelee
Dear Ulrich,

I have the following error while building the pattern search extension. This system is running a solaris type of the OS. But I do have a proper GCC 4.7 and boost 1.49 library installed.

</kombilo/lk]# python setup.py build_ext
running build_ext
building '_libkombilo' extension
......
gcc -fno-strict-aliasing -O -O2 -DHAVE_DB_185_H -D_REENTRANT -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/opt/local/include/ncurses -DNDEBUG -O -O2 -DHAVE_DB_185_H -D_REENTRANT -I/usr/include -I/opt/local/include -I/opt/local/include/db4 -I/opt/local/include/ncurses -fPIC -I/opt/local/include/python2.7 -c search.cpp -o build/temp.solaris-2.11-i86pc.64bit-2.7/search.o -O3 -I. -fopenmp
In file included from search.cpp:27:0:
algos.h:354:46: error: expected ',' or '...' before numeric constant
algos.h:495:89: error: expected ',' or '...' before numeric constant
algos.h:515:81: error: expected ',' or '...' before numeric constant
error: command 'gcc' failed with exit status 1

All the three source lines contain a symbol 'CS'. I suspect this symbol might be redefined in boost. Do you have any suggestions?

Top
 Profile  
 
Offline
 Post subject: Re: Kombilo 0.7.1
Post #42 Posted: Tue Jul 16, 2013 11:18 pm 
Dies in gote
User avatar

Posts: 63
Liked others: 0
Was liked: 40
macelee wrote:
I have the following error while building the pattern search extension. This system is running a solaris type of the OS. But I do have a proper GCC 4.7 and boost 1.49 library installed.

[...]

algos.h:515:81: error: expected ',' or '...' before numeric constant
error: command 'gcc' failed with exit status 1

All the three source lines contain a symbol 'CS'. I suspect this symbol might be redefined in boost. Do you have any suggestions?


It looks like CS is defined somewhere as a macro. I have never had this problem with boost, but unfortunately I do not have time to look into it at the moment. You could try to rename CS to something else in the three lines in algos.h and in the corresponding places in algos.cpp, where those methods are defined. This is not so elegant, but it will be only very few places which should be easy to find.

Best,

Ulrich

_________________
u-go.net

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group