[Openmd-developers] QHULL as static while building

Martin Vala mvala at saske.sk
Mon Sep 8 17:13:59 EDT 2014


Hi Dan,

what about this?

#if qh_QHpointer  /* see user.h */
   if (qh_qh){
       printf ("QH6238: Qhull link error.  The global variable qh_qh was 
not initialized\n\
               to NULL by global.c.  Please compile this program with 
-Dqh_QHpointer_dllimport\n\
               as well as -Dqh_QHpointer, or use libqhullstatic, or use 
a different tool chain.\n\n");
       exit -1;
   }
#endif

Ciao

MArtin

On 08/09/2014 22:52, Martin Vala wrote:
> Hi Dan,
>
> I think this is good guess. I think we only need to Initialize 'qh' it 
> once.
>
> Ciao
>
> Martin
> On 08/09/2014 22:31, Dan Gezelter wrote:
>>> facet variable (pointer) (line 76) is declared and it is not 
>>> initialized so address is random. Then i don't see any "new" 
>>> operator. Maybe it is hidden somewhere. Then at line 217
>> The FORALLFacets iterator on line 214 is supposed to be setting 
>> that.   The qhull.h include file defines:
>>
>> #define FORALLfacets for (facet=qh facet_list;facet && 
>> facet->next;facet=facet->next)
>>
>> I think the problem might be the qh object.  The qhull site says this:
>>
>> When you read the code, be aware of the macros "qh" and "qhstat", 
>> e.g., "qh hull_dim". They are defined in libqhull.h. They allow the 
>> global data structures to be pre-allocated (faster access) or 
>> dynamically allocated (allows multiple copies).
>>
>> I'm not sure that object exits when we dynamically link.
>>
>>   --Dan
>>
>>
>> ***********************************************
>>    J. Daniel Gezelter
>>    Associate Professor of Chemistry
>>    Department of Chemistry and Biochemistry
>>    251 Nieuwland Science Hall
>>    University of Notre Dame
>>    Notre Dame, IN 46556-5670
>>
>>    phone:  +1 (574) 631-7595
>>    fax:    +1 (574) 631-6652
>>    e-mail: gezelter at nd.edu
>>    web:    http://www.nd.edu/~gezelter
>> ************************************************
>>
>>
>>
>
> _______________________________________________
> Openmd-developers mailing list
> Openmd-developers at openmd.org
> http://openmd.org/mailman/listinfo.cgi/openmd-developers



More information about the Openmd-developers mailing list