Re: Compiling to platform independent code

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

Trying with Mint 18 (64-bit):

irv@Mint18 ~ $ gcc -I. *.c -o helloworld /usr/local/lib/eu.a -lm -ldl -lpthread 
In file included from helloworld.c:2:0: 
include/euphoria.h:226:7: warning: conflicting types for built-in function ‘malloc’ 
 char *malloc(int); 
       ^ 
In file included from init-.c:1:0: 
include/euphoria.h:226:7: warning: conflicting types for built-in function ‘malloc’ 
 char *malloc(int); 
       ^ 
init-.c: In function ‘init_literal’: 
init-.c:27:5: warning: implicit declaration of function ‘setran’ [-Wimplicit-function-declaration] 
     setran(); /* initialize random generator seeds */ 
     ^ 
In file included from main-.c:3:0: 
include/euphoria.h:226:7: warning: conflicting types for built-in function ‘malloc’ 
 char *malloc(int); 
       ^ 
main-.c: In function ‘main’: 
main-.c:82:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 
     _0switch_ptr = (s1_ptr) NewS1( 17 ); 
                    ^ 
In file included from main-.c:3:0: 
include/euphoria.h:114:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 
 #define MAKE_SEQ(x) ( (int) (((unsigned)(x) >> 3) + (long)0x80000000) ) 
                               ^ 
main-.c:100:18: note: in expansion of macro ‘MAKE_SEQ’ 
     _0switches = MAKE_SEQ( _0switch_ptr ); 

Something tells me that, even if this does work eventually, it isn't going to be exactly user-friendly :)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu