www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Linker `undefined reference` errors when using scoped imports

reply "Uranuz" <neuranuz gmail.com> writes:
For now I can't an example of code. But sometimes I get Linker 
errors on Ubuntu Linux when using *scoped imports*. May be this 
issue happens on another platforms too. Does anybody experience 
the same problem when compiling programmes?

I'll try to invent some example of code that illustrates this. Of 
course project where I got this is to long to post there in 
forum. I saw that in new release 2.066 there was some 
improvements about names mangling. But seems that these changes 
are not connected with this problem.

May be it's just linker problem and compiler have nothing to do 
with it? So it's interesting to see any comments.
Aug 21 2014
parent reply "Dicebot" <public dicebot.lv> writes:
On Thursday, 21 August 2014 at 17:09:33 UTC, Uranuz wrote:
 For now I can't an example of code. But sometimes I get Linker 
 errors on Ubuntu Linux when using *scoped imports*. May be this 
 issue happens on another platforms too. Does anybody experience 
 the same problem when compiling programmes?

 I'll try to invent some example of code that illustrates this. 
 Of course project where I got this is to long to post there in 
 forum. I saw that in new release 2.066 there was some 
 improvements about names mangling. But seems that these changes 
 are not connected with this problem.

 May be it's just linker problem and compiler have nothing to do 
 with it? So it's interesting to see any comments.
Can it be that you are using incremental rebuilds?
Aug 21 2014
parent "deadalnix" <deadalnix gmail.com> writes:
On Thursday, 21 August 2014 at 18:27:30 UTC, Dicebot wrote:
 On Thursday, 21 August 2014 at 17:09:33 UTC, Uranuz wrote:
 For now I can't an example of code. But sometimes I get Linker 
 errors on Ubuntu Linux when using *scoped imports*. May be 
 this issue happens on another platforms too. Does anybody 
 experience the same problem when compiling programmes?

 I'll try to invent some example of code that illustrates this. 
 Of course project where I got this is to long to post there in 
 forum. I saw that in new release 2.066 there was some 
 improvements about names mangling. But seems that these 
 changes are not connected with this problem.

 May be it's just linker problem and compiler have nothing to 
 do with it? So it's interesting to see any comments.
Can it be that you are using incremental rebuilds?
No there is an issue. I'm launching a dustmite, but considering it is a linking problem, it is gonna take ages.
Aug 21 2014