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

Possible bug (or application flaw): linking in std.c.....

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



Joined: 09 Nov 2006
Posts: 18

PostPosted: Mon Dec 18, 2006 7:17 pm    Post subject: Possible bug (or application flaw): linking in std.c..... Reply with quote

In std.c.linuxextern.d, it is written:

Code:

/* These are all the globals defined by the linux C runtime library.

 * Put them separate so they'll be externed - do not link in linuxextern.o

 */


Build gave linuxextern.o to the linker as a file to link... Is this a problem with my application, or bud? ( I get a linker error of multiple definitions caused by linuxextern.o when I attempt to build this app. )

Note: I do not explicitly import std.c.linuxextern.
Back to top
View user's profile Send private message Send e-mail
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Tue Dec 19, 2006 4:16 pm    Post subject: Reply with quote

I believe you should be able to just add "-Xstd.c.linuxextern" to your Build command line or BRF file and be set. If I remember right how the "-X" switch can be used.
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Derek Parnell



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

PostPosted: Tue Dec 19, 2006 5:44 pm    Post subject: Reply with quote

You may not have read the answer I gave to the problem you reported earlier with the pragma.

Quote:
However, I can see you are also compiling all the phobos modules too. By default, it expects that the phobos modules are kept in a directory with the word 'phobos' in it, and thus excludes them from recompiling. You can alter this by adding -Xdmdincludes to either the Bud command line or more conveniently to the Bud configuration file - build.cfg. See the docs for details.

_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
mmcdermo



Joined: 09 Nov 2006
Posts: 18

PostPosted: Thu Dec 21, 2006 11:25 am    Post subject: Reply with quote

Hah! Thanks for the explanation Derek... I didn't make the connection Shocked
Back to top
View user's profile Send private message Send e-mail
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