www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - GtkD : Compilation Error

reply "Chris" <wendlec tcd.ie> writes:
Why do I get a list of errors like this one:

/usr/local/lib/libgtkdsv-2.a(SourceCompletionProposalIF.o): In 
function 
`_D3std5array17__T8AppenderTAyaZ8Appender12__T3putTAyaZ3putMFAyaZv':
srcsv/gsv/SourceCompletionProposalIF.d:(.text._D3std5array17__T8AppenderTAyaZ8Appender12__T3putTAy
Z3putMFAyaZv+0x5a): 
undefined reference to `_D3std5array7__arrayZ'

Libs are linked. Import paths are passed. DMD works fine. It's 
only ldc2 that produces this. Would I have to recompile GtkD with 
LDC?
Jul 30 2013
next sibling parent "John Colvin" <john.loughran.colvin gmail.com> writes:
On Tuesday, 30 July 2013 at 10:51:42 UTC, Chris wrote:
 Why do I get a list of errors like this one:

 /usr/local/lib/libgtkdsv-2.a(SourceCompletionProposalIF.o): In 
 function 
 `_D3std5array17__T8AppenderTAyaZ8Appender12__T3putTAyaZ3putMFAyaZv':
 srcsv/gsv/SourceCompletionProposalIF.d:(.text._D3std5array17__T8AppenderTAyaZ8Appender12__T3putTAy
Z3putMFAyaZv+0x5a): 
 undefined reference to `_D3std5array7__arrayZ'

 Libs are linked. Import paths are passed. DMD works fine. It's 
 only ldc2 that produces this. Would I have to recompile GtkD 
 with LDC?
Generally speaking you need to compile everything with the same compiler. Hopefully in the future interoperability will become more feasible, but until the language is completely stable it will be hard to do.
Jul 30 2013
prev sibling parent "Kai Nacke" <kai redstar.de> writes:
On Tuesday, 30 July 2013 at 10:51:42 UTC, Chris wrote:
 Why do I get a list of errors like this one:

 /usr/local/lib/libgtkdsv-2.a(SourceCompletionProposalIF.o): In 
 function 
 `_D3std5array17__T8AppenderTAyaZ8Appender12__T3putTAyaZ3putMFAyaZv':
 srcsv/gsv/SourceCompletionProposalIF.d:(.text._D3std5array17__T8AppenderTAyaZ8Appender12__T3putTAy
Z3putMFAyaZv+0x5a): 
 undefined reference to `_D3std5array7__arrayZ'

 Libs are linked. Import paths are passed. DMD works fine. It's 
 only ldc2 that produces this. Would I have to recompile GtkD 
 with LDC?
Yes. In druntime there are some important differences between DMD and LDC, e.g. the vararg interface or memory stuff. Unfortunately you can't expect interoperability at the binary level right now. Kai
Aug 04 2013