RC1 64-bit error

new topic     » topic index » view thread      » older message » newer message
constant setname = define_c_proc(GTK,"gtk_widget_set_name",{C_POINTER,C_POINTER}) 
----------------------------------- 
export function create(..... 
----------------------------------- 
-- do some stuff here 
c_proc(setname,{handle,allocate_string("ThisName")}) 
 

This works fine in hundreds of places with 32 bit, but on 64bit AMD running Linux Ultimate, Euphoria can't see the constant declared outside the function.

The same error message results if I define it separately, as follows:

atom setname 
  setname = define.... 

Error message is:

/home/irv/demos/GtkEngine.e:632 in function create()  
variable setname has not been assigned a value  

Moving the declaration inside the function works. I've tried making it a global constant, doesn't see that either.

However, if I move the declaration to the top of the file, it becomes visible to the function. ?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu