FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Templates with bud and cmake

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
singy



Joined: 23 Aug 2007
Posts: 1

PostPosted: Thu Aug 23, 2007 7:53 am    Post subject: Templates with bud and cmake Reply with quote

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
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Thu Aug 23, 2007 8:53 pm    Post subject: Re: Templates with bud and cmake Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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