View previous topic :: View next topic |
Author |
Message |
singy
Joined: 23 Aug 2007 Posts: 1
|
Posted: Thu Aug 23, 2007 7:53 am Post subject: Templates with bud and cmake |
|
|
Hi!
I post this question, because on digitalmars.com I got no answer.
I have a simple linked as a template and some ojects using the list
holding other objects.
e.g. List!(Obj) l = new List!(Obj);
If I compile every module individually, manually or with cmake/make, into an
object file and link these objects files afterwards then I get for every
statement constructing a list an undefined reference.
I have not such problems with base type like (int, long, char, ...).
If I use bud evering compiles works perfectly.
What does bud do different to cmake? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Thu Aug 23, 2007 8:53 pm Post subject: Re: Templates with bud and cmake |
|
|
singy wrote: |
I have a simple linked as a template and some ojects using the list
holding other objects.
If I compile every module individually, manually or with cmake/make, into an
object file and link these objects files afterwards then I get for every
statement constructing a list an undefined reference.
I have not such problems with base type like (int, long, char, ...).
If I use bud evering compiles works perfectly.
What does bud do different to cmake? |
This is a known issue with the way template information is processed by DMD. I think it is just that it does not put all the required template info into the object files when you do it one by one. Bud presents all source to the compiler so it has all template info at hand. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|