[mercury-users] Interfacing mercury with C++ -- mor specific question

Ondrej Bojar oboj7042 at ss1000.ms.mff.cuni.cz
Mon Oct 22 01:02:04 AEST 2001


I managed to use g++ instead of gcc, my Mmakefile now starts with:

GRADE=none
GRADEFLAGS = --debug
MGNUC=MERCURY_C_COMPILER=g++ mgnuc

but the output of mmc won't compile with g++. It seems to me, my mmc
creates something not too valid for g++.

I use Mercury Compiler, version rotd-2001-09-24, configured for
i686-pc-linux-gnu


I attach the stderr output of mmake testdb, since there is not a line I
can understand. (I can't run mmc myself yet, I always use mmake.)

Thanks for help, Andrew.

On Sun, 21 Oct 2001, Ondrej Bojar wrote:
> Hi.
>
>   I'm trying to call C++ functions from mercury using pragma c_code, and
> (not) surprisingly, it doesn't work. Mmake is building a .c file, not a
> .cpp, and uses gcc, not g++ to compile it.
>
>   Is there a way to make mercury work together with C++?
>
>   Most simply, can I just alter mgnuc to call g++?
>
>   Unfortunately, I know nothing about differences between gcc and g++, I
> just have a vague notion about differences between C and C++ programming
> languages.
>
> Thanks, Andrew.
>
> --------------------------------------------------------------------------
> mercury-users mailing list
> post:  mercury-users at cs.mu.oz.au
> administrative address: owner-mercury-users at cs.mu.oz.au
> unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
> subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
> --------------------------------------------------------------------------
>
-------------- next part --------------
/afs/ms/uo/oboj7042/BIG/mercury-rotd-2001-09-24//bin/mgnuc: For compilers other than GNU C, the only
/afs/ms/uo/oboj7042/BIG/mercury-rotd-2001-09-24//bin/mgnuc: base grade allowed is `none'
testdb.c:39: uninitialized const `mercury_data_testdb__common_0'
testdb.c:45: uninitialized const `mercury_data_testdb__common_1'
testdb.c:50: uninitialized const `mercury_data_testdb__common_2'
testdb.c:59: uninitialized const `mercury_data_testdb__common_3'
testdb.c:65: uninitialized const `mercury_data_testdb__common_4'
testdb.c:72: uninitialized const `mercury_data_testdb__common_5'
testdb.c:77: uninitialized const `mercury_data_testdb__common_6'
testdb.c:84: uninitialized const `mercury_data_testdb__common_7'
testdb.c:89: uninitialized const `mercury_data_testdb__common_8'
testdb.c:98: uninitialized const `mercury_data_testdb__common_9'
testdb.c:103: uninitialized const `mercury_data_testdb__common_10'
testdb.c:112: uninitialized const `mercury_data_testdb__common_11'
testdb.c:119: uninitialized const `mercury_data_testdb__common_12'
testdb.c:126: uninitialized const `mercury_data_testdb__common_13'
testdb.c:131: uninitialized const `mercury_data_testdb__common_14'
testdb.c:140: uninitialized const `mercury_data_testdb__common_15'
testdb.c:146: uninitialized const `mercury_data_testdb__common_16'
testdb.c:153: uninitialized const `mercury_data_testdb__common_17'
testdb.c:158: uninitialized const `mercury_data_testdb__common_18'
testdb.c:162: uninitialized const `mercury_data_testdb__common_19'
testdb.c:166: uninitialized const `mercury_data_testdb__common_20'
testdb.c:170: uninitialized const `mercury_data_testdb__common_21'
testdb.c:179: uninitialized const `mercury_data_testdb__common_22'
testdb.c:190: uninitialized const `mercury_data_testdb__common_23'
testdb.c:197: uninitialized const `mercury_data_testdb__common_24'
testdb.c:206: uninitialized const `mercury_data_testdb__common_25'
testdb.c:211: uninitialized const `mercury_data_testdb__common_26'
testdb.c:212: uninitialized const `mercury_data__module_layout__testdb'
testdb.c:213: uninitialized const 
`mercury_data__label_layout__mercury____Compare___testdb__db_0_0_i4'
testdb.c:214: uninitialized const 
`mercury_data__label_layout__mercury____Compare___testdb__db_0_0_i3'
testdb.c:215: uninitialized const 
`mercury_data__label_layout__mercury____Compare___testdb__db_0_0_i2'
testdb.c:216: uninitialized const 
`mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i6'
testdb.c:217: uninitialized const 
`mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i5'
testdb.c:218: uninitialized const 
`mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i3'
testdb.c:219: uninitialized const 
`mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i2'
testdb.c:220: uninitialized const 
`mercury_data__label_layout__mercury____Compare___testdb__dbstate_0_0_i4'
testdb.c:221: uninitialized const 
`mercury_data__label_layout__mercury____Compare___testdb__dbstate_0_0_i3'
testdb.c:222: uninitialized const 
`mercury_data__label_layout__mercury____Compare___testdb__dbstate_0_0_i2'
testdb.c:223: uninitialized const 
`mercury_data__label_layout__mercury____Unify___testdb__dbstate_0_0_i5'
testdb.c:224: uninitialized const 
`mercury_data__label_layout__mercury____Unify___testdb__dbstate_0_0_i4'
testdb.c:225: uninitialized const 
`mercury_data__label_layout__mercury____Unify___testdb__dbstate_0_0_i2'
testdb.c:226: uninitialized const 
`mercury_data__label_layout__mercury__testdb__c_dohledej_3_0_i3'
testdb.c:227: uninitialized const 
`mercury_data__label_layout__mercury__testdb__c_dohledej_3_0_i2'
testdb.c:228: uninitialized const 
`mercury_data__label_layout__mercury__fn__testdb__c_init_0_0_i3'
testdb.c:229: uninitialized const 
`mercury_data__label_layout__mercury__fn__testdb__c_init_0_0_i2'
testdb.c:230: uninitialized const 
`mercury_data__label_layout__mercury__testdb__dohledej_4_0_i6'
testdb.c:231: uninitialized const 
`mercury_data__label_layout__mercury__testdb__dohledej_4_0_i5'
testdb.c:232: uninitialized const 
`mercury_data__label_layout__mercury__testdb__dohledej_4_0_i4'
testdb.c:233: uninitialized const 
`mercury_data__label_layout__mercury__testdb__dohledej_4_0_i2'
testdb.c:234: uninitialized const 
`mercury_data__label_layout__mercury__fn__testdb__init_0_0_i4'
testdb.c:235: uninitialized const 
`mercury_data__label_layout__mercury__fn__testdb__init_0_0_i3'
testdb.c:236: uninitialized const 
`mercury_data__label_layout__mercury__fn__testdb__init_0_0_i2'
testdb.c:239: uninitialized const 
`mercury_data_testdb__notag_functor_desc_dbstate_0'
testdb.c:240: uninitialized const 
`mercury_data_testdb__notag_functor_desc_db_0'
testdb.c:241: uninitialized const 
`mercury_data__proc_layout__mercury____Compare___testdb__db_0_0'
testdb.c:242: uninitialized const 
`mercury_data__proc_layout__mercury____Unify___testdb__db_0_0'
testdb.c:243: uninitialized const 
`mercury_data__proc_layout__mercury____Compare___testdb__dbstate_0_0'
testdb.c:244: uninitialized const 
`mercury_data__proc_layout__mercury____Unify___testdb__dbstate_0_0'
testdb.c:245: uninitialized const 
`mercury_data__proc_layout__mercury__testdb__c_dohledej_3_0'
testdb.c:246: uninitialized const 
`mercury_data__proc_layout__mercury__fn__testdb__c_init_0_0'
testdb.c:247: uninitialized const 
`mercury_data__proc_layout__mercury__testdb__dohledej_4_0'
testdb.c:248: uninitialized const 
`mercury_data__proc_layout__mercury__fn__testdb__init_0_0'
testdb.c:285: redefinition of `const 
mercury_data_testdb__common_0_struct mercury_data_testdb__common_0'
testdb.c:39: `const mercury_data_testdb__common_0_struct 
mercury_data_testdb__common_0' previously declared here
testdb.c:294: redefinition of `const 
mercury_data_testdb__common_1_struct mercury_data_testdb__common_1'
testdb.c:45: `const mercury_data_testdb__common_1_struct 
mercury_data_testdb__common_1' previously declared here
testdb.c:302: redefinition of `const 
mercury_data_testdb__common_2_struct mercury_data_testdb__common_2'
testdb.c:50: `const mercury_data_testdb__common_2_struct 
mercury_data_testdb__common_2' previously declared here
testdb.c:307: redefinition of `const 
mercury_data_testdb__common_3_struct mercury_data_testdb__common_3'
testdb.c:59: `const mercury_data_testdb__common_3_struct 
mercury_data_testdb__common_3' previously declared here
testdb.c:316: redefinition of `const 
mercury_data_testdb__common_4_struct mercury_data_testdb__common_4'
testdb.c:65: `const mercury_data_testdb__common_4_struct 
mercury_data_testdb__common_4' previously declared here
testdb.c:322: redefinition of `const 
mercury_data_testdb__common_5_struct mercury_data_testdb__common_5'
testdb.c:72: `const mercury_data_testdb__common_5_struct 
mercury_data_testdb__common_5' previously declared here
testdb.c:329: redefinition of `const 
mercury_data_testdb__common_6_struct mercury_data_testdb__common_6'
testdb.c:77: `const mercury_data_testdb__common_6_struct 
mercury_data_testdb__common_6' previously declared here
testdb.c:334: redefinition of `const 
mercury_data_testdb__common_7_struct mercury_data_testdb__common_7'
testdb.c:84: `const mercury_data_testdb__common_7_struct 
mercury_data_testdb__common_7' previously declared here
testdb.c:341: redefinition of `const 
mercury_data_testdb__common_8_struct mercury_data_testdb__common_8'
testdb.c:89: `const mercury_data_testdb__common_8_struct 
mercury_data_testdb__common_8' previously declared here
testdb.c:346: redefinition of `const 
mercury_data_testdb__common_9_struct mercury_data_testdb__common_9'
testdb.c:98: `const mercury_data_testdb__common_9_struct 
mercury_data_testdb__common_9' previously declared here
testdb.c:356: redefinition of `const 
mercury_data_testdb__common_10_struct mercury_data_testdb__common_10'
testdb.c:103: `const mercury_data_testdb__common_10_struct 
mercury_data_testdb__common_10' previously declared here
testdb.c:361: redefinition of `const 
mercury_data_testdb__common_11_struct mercury_data_testdb__common_11'
testdb.c:112: `const mercury_data_testdb__common_11_struct 
mercury_data_testdb__common_11' previously declared here
testdb.c:370: redefinition of `const 
mercury_data_testdb__common_12_struct mercury_data_testdb__common_12'
testdb.c:119: `const mercury_data_testdb__common_12_struct 
mercury_data_testdb__common_12' previously declared here
testdb.c:377: redefinition of `const 
mercury_data_testdb__common_13_struct mercury_data_testdb__common_13'
testdb.c:126: `const mercury_data_testdb__common_13_struct 
mercury_data_testdb__common_13' previously declared here
testdb.c:385: redefinition of `const 
mercury_data_testdb__common_14_struct mercury_data_testdb__common_14'
testdb.c:131: `const mercury_data_testdb__common_14_struct 
mercury_data_testdb__common_14' previously declared here
testdb.c:390: redefinition of `const 
mercury_data_testdb__common_15_struct mercury_data_testdb__common_15'
testdb.c:140: `const mercury_data_testdb__common_15_struct 
mercury_data_testdb__common_15' previously declared here
testdb.c:399: redefinition of `const 
mercury_data_testdb__common_16_struct mercury_data_testdb__common_16'
testdb.c:146: `const mercury_data_testdb__common_16_struct 
mercury_data_testdb__common_16' previously declared here
testdb.c:405: redefinition of `const 
mercury_data_testdb__common_17_struct mercury_data_testdb__common_17'
testdb.c:153: `const mercury_data_testdb__common_17_struct 
mercury_data_testdb__common_17' previously declared here
testdb.c:412: redefinition of `const 
mercury_data_testdb__common_18_struct mercury_data_testdb__common_18'
testdb.c:158: `const mercury_data_testdb__common_18_struct 
mercury_data_testdb__common_18' previously declared here
testdb.c:417: redefinition of `const 
mercury_data_testdb__common_19_struct mercury_data_testdb__common_19'
testdb.c:162: `const mercury_data_testdb__common_19_struct 
mercury_data_testdb__common_19' previously declared here
testdb.c:421: redefinition of `const 
mercury_data_testdb__common_20_struct mercury_data_testdb__common_20'
testdb.c:166: `const mercury_data_testdb__common_20_struct 
mercury_data_testdb__common_20' previously declared here
testdb.c:425: redefinition of `const 
mercury_data_testdb__common_21_struct mercury_data_testdb__common_21'
testdb.c:170: `const mercury_data_testdb__common_21_struct 
mercury_data_testdb__common_21' previously declared here
testdb.c:429: redefinition of `const 
mercury_data_testdb__common_22_struct mercury_data_testdb__common_22'
testdb.c:179: `const mercury_data_testdb__common_22_struct 
mercury_data_testdb__common_22' previously declared here
testdb.c:438: redefinition of `const 
mercury_data_testdb__common_23_struct mercury_data_testdb__common_23'
testdb.c:190: `const mercury_data_testdb__common_23_struct 
mercury_data_testdb__common_23' previously declared here
testdb.c:449: redefinition of `const 
mercury_data_testdb__common_24_struct mercury_data_testdb__common_24'
testdb.c:197: `const mercury_data_testdb__common_24_struct 
mercury_data_testdb__common_24' previously declared here
testdb.c:456: redefinition of `const 
mercury_data_testdb__common_25_struct mercury_data_testdb__common_25'
testdb.c:206: `const mercury_data_testdb__common_25_struct 
mercury_data_testdb__common_25' previously declared here
testdb.c:465: redefinition of `const 
mercury_data_testdb__common_26_struct mercury_data_testdb__common_26'
testdb.c:211: `const mercury_data_testdb__common_26_struct 
mercury_data_testdb__common_26' previously declared here
testdb.c:585: redefinition of `const MR_Module_Layout 
mercury_data__module_layout__testdb'
testdb.c:212: `const MR_Module_Layout 
mercury_data__module_layout__testdb' previously declared here
testdb.c:596: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__db_0_0_i4'
testdb.c:213: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__db_0_0_i4' 
previously declared here
testdb.c:606: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__db_0_0_i3'
testdb.c:214: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__db_0_0_i3' 
previously declared here
testdb.c:616: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__db_0_0_i2'
testdb.c:215: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__db_0_0_i2' 
previously declared here
testdb.c:626: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i6'
testdb.c:216: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i6' 
previously declared here
testdb.c:636: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i5'
testdb.c:217: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i5' 
previously declared here
testdb.c:646: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i3'
testdb.c:218: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i3' 
previously declared here
testdb.c:656: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i2'
testdb.c:219: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__db_0_0_i2' 
previously declared here
testdb.c:666: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__dbstate_0_0_i4'
testdb.c:220: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__dbstate_0_0_i4'
previously declared here
testdb.c:676: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__dbstate_0_0_i3'
testdb.c:221: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__dbstate_0_0_i3'
previously declared here
testdb.c:686: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__dbstate_0_0_i2'
testdb.c:222: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Compare___testdb__dbstate_0_0_i2'
previously declared here
testdb.c:696: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__dbstate_0_0_i5'
testdb.c:223: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__dbstate_0_0_i5' 
previously declared here
testdb.c:706: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__dbstate_0_0_i4'
testdb.c:224: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__dbstate_0_0_i4' 
previously declared here
testdb.c:716: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__dbstate_0_0_i2'
testdb.c:225: `const MR_Label_Layout 
mercury_data__label_layout__mercury____Unify___testdb__dbstate_0_0_i2' 
previously declared here
testdb.c:726: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__c_dohledej_3_0_i3'
testdb.c:226: `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__c_dohledej_3_0_i3' 
previously declared here
testdb.c:736: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__c_dohledej_3_0_i2'
testdb.c:227: `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__c_dohledej_3_0_i2' 
previously declared here
testdb.c:746: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__fn__testdb__c_init_0_0_i3'
testdb.c:228: `const MR_Label_Layout 
mercury_data__label_layout__mercury__fn__testdb__c_init_0_0_i3' 
previously declared here
testdb.c:756: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__fn__testdb__c_init_0_0_i2'
testdb.c:229: `const MR_Label_Layout 
mercury_data__label_layout__mercury__fn__testdb__c_init_0_0_i2' 
previously declared here
testdb.c:766: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__dohledej_4_0_i6'
testdb.c:230: `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__dohledej_4_0_i6' 
previously declared here
testdb.c:776: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__dohledej_4_0_i5'
testdb.c:231: `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__dohledej_4_0_i5' 
previously declared here
testdb.c:786: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__dohledej_4_0_i4'
testdb.c:232: `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__dohledej_4_0_i4' 
previously declared here
testdb.c:796: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__dohledej_4_0_i2'
testdb.c:233: `const MR_Label_Layout 
mercury_data__label_layout__mercury__testdb__dohledej_4_0_i2' 
previously declared here
testdb.c:806: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__fn__testdb__init_0_0_i4'
testdb.c:234: `const MR_Label_Layout 
mercury_data__label_layout__mercury__fn__testdb__init_0_0_i4' 
previously declared here
testdb.c:816: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__fn__testdb__init_0_0_i3'
testdb.c:235: `const MR_Label_Layout 
mercury_data__label_layout__mercury__fn__testdb__init_0_0_i3' 
previously declared here
testdb.c:826: redefinition of `const MR_Label_Layout 
mercury_data__label_layout__mercury__fn__testdb__init_0_0_i2'
testdb.c:236: `const MR_Label_Layout 
mercury_data__label_layout__mercury__fn__testdb__init_0_0_i2' 
previously declared here
testdb.c:835: redefinition of `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_dbstate_0'
testdb.c:239: `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_dbstate_0' previously declared 
here
testdb.c:835: uninitialized const 
`mercury_data_testdb__notag_functor_desc_dbstate_0'
testdb.c:836: redefinition of `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_dbstate_0'
testdb.c:835: `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_dbstate_0' previously declared 
here
testdb.c:836: uninitialized const 
`mercury_data_testdb__notag_functor_desc_dbstate_0'
testdb.c:853: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:853: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:853: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:854: redefinition of `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_db_0'
testdb.c:240: `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_db_0' previously declared here
testdb.c:854: uninitialized const 
`mercury_data_testdb__notag_functor_desc_db_0'
testdb.c:855: redefinition of `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_db_0'
testdb.c:854: `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_db_0' previously declared here
testdb.c:855: uninitialized const 
`mercury_data_testdb__notag_functor_desc_db_0'
testdb.c:872: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:872: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:872: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:874: redefinition of `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_dbstate_0'
testdb.c:836: `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_dbstate_0' previously declared 
here
testdb.c:880: redefinition of `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_db_0'
testdb.c:855: `const MR_NotagFunctorDesc 
mercury_data_testdb__notag_functor_desc_db_0' previously declared here
testdb.c:895: redefinition of `const MR_Proc_Layout_Compiler_Exec 
mercury_data__proc_layout__mercury____Compare___testdb__db_0_0'
testdb.c:241: `const MR_Proc_Layout_Compiler_Exec 
mercury_data__proc_layout__mercury____Compare___testdb__db_0_0' 
previously declared here
testdb.c:925: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:932: redefinition of `const MR_Proc_Layout_Compiler_Exec 
mercury_data__proc_layout__mercury____Unify___testdb__db_0_0'
testdb.c:242: `const MR_Proc_Layout_Compiler_Exec 
mercury_data__proc_layout__mercury____Unify___testdb__db_0_0' 
previously declared here
testdb.c:962: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:973: redefinition of `const MR_Proc_Layout_Compiler_Exec 
mercury_data__proc_layout__mercury____Compare___testdb__dbstate_0_0'
testdb.c:243: `const MR_Proc_Layout_Compiler_Exec 
mercury_data__proc_layout__mercury____Compare___testdb__dbstate_0_0' 
previously declared here
testdb.c:1003: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:1010: redefinition of `const MR_Proc_Layout_Compiler_Exec 
mercury_data__proc_layout__mercury____Unify___testdb__dbstate_0_0'
testdb.c:244: `const MR_Proc_Layout_Compiler_Exec 
mercury_data__proc_layout__mercury____Unify___testdb__dbstate_0_0' 
previously declared here
testdb.c:1040: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:1048: redefinition of `const MR_Proc_Layout_User_Exec 
mercury_data__proc_layout__mercury__testdb__c_dohledej_3_0'
testdb.c:245: `const MR_Proc_Layout_User_Exec 
mercury_data__proc_layout__mercury__testdb__c_dohledej_3_0' previously 
declared here
testdb.c:1078: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:1084: redefinition of `const MR_Proc_Layout_User_Exec 
mercury_data__proc_layout__mercury__fn__testdb__c_init_0_0'
testdb.c:246: `const MR_Proc_Layout_User_Exec 
mercury_data__proc_layout__mercury__fn__testdb__c_init_0_0' previously 
declared here
testdb.c:1114: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:1123: redefinition of `const MR_Proc_Layout_User_Exec 
mercury_data__proc_layout__mercury__testdb__dohledej_4_0'
testdb.c:247: `const MR_Proc_Layout_User_Exec 
mercury_data__proc_layout__mercury__testdb__dohledej_4_0' previously 
declared here
testdb.c:1153: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c:1159: redefinition of `const MR_Proc_Layout_User_Exec 
mercury_data__proc_layout__mercury__fn__testdb__init_0_0'
testdb.c:248: `const MR_Proc_Layout_User_Exec 
mercury_data__proc_layout__mercury__fn__testdb__init_0_0' previously 
declared here
testdb.c:1189: cannot convert `void (*) ()' to `MR_Code *' in 
initialization
testdb.c: In function `void testdb_module0 ()':
testdb.c:1202: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1223: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1238: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1240: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c: In function `void testdb_module1 ()':
testdb.c:1257: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1291: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1293: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1304: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1320: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1322: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1335: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1337: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c: In function `void testdb_module2 ()':
testdb.c:1352: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1396: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1398: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c: In function `void testdb_module3 ()':
testdb.c:1412: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.m:56: ISO C++ forbids cast to non-reference type used as lvalue
testdb.c:1480: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1482: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c: In function `void testdb_module4 ()':
testdb.c:1497: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1530: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1532: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1545: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1547: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1560: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1562: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c: In function `void testdb_module5 ()':
testdb.c:1580: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1607: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1622: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1624: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c: In function `void testdb_module6 ()':
testdb.c:1640: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1663: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1681: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1683: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1696: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1698: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c: In function `void testdb_module7 ()':
testdb.c:1714: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1741: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1756: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c:1758: ISO C++ forbids cast to non-reference type used as 
lvalue
testdb.c: At top level:
testdb.c:259: `void mercury__fn__testdb__c_init_0_0 ()' used but never 
defined
testdb.c:262: `void mercury__testdb__c_dohledej_3_0 ()' used but never 
defined
gmake: *** [testdb.o] Error 1


More information about the users mailing list