forum.alglib.net

ALGLIB forum
It is currently Fri Nov 29, 2024 9:43 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Python library compile error
PostPosted: Tue Oct 08, 2013 11:53 am 
Offline

Joined: Tue Oct 08, 2013 11:40 am
Posts: 2
Hello,

I'm interested in trying out some of the optimization algorithms provided with ALGLIB, but I'm having difficulties compiling the library.

I'm getting the following error for many different files:

Code:
In file included from basestat.h:25:0,
                 from basestat.c:22:
apserv.h:232:8: error: conflicting types for ‘log2’
double log2(double x, ae_state *_state);
        ^


While running the compilation script with the following options:
Code:
Detecting compiler properties
Compiler is 'gcc'
Parameters are ' -m64 -DAE_CPU=AE_INTEL -msse -O2'
stdint.h is found
Compiling...


I was wondering if anyone ran into this problem previously. And if so, how did you solve it? My guess is that log2 is defined somewhere in the standard include headers (say "math.h" included in aenv.h ?) and is redefined again by ALGLIB.

Cheers,
Alexey


Top
 Profile  
 
 Post subject: Re: Python library compile error
PostPosted: Wed Oct 09, 2013 8:11 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
You can just rename log2() to algliblog2() and search-and-replace all occurences of log2 by its new name :)


Top
 Profile  
 
 Post subject: Re: Python library compile error
PostPosted: Wed Oct 09, 2013 11:19 am 
Offline

Joined: Tue Oct 08, 2013 11:40 am
Posts: 2
Now it compiles without errors. Thanks!

Alexey


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group