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

can someone explain linking ?

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
DrakeMagi



Joined: 31 Jul 2011
Posts: 17

PostPosted: Mon Aug 01, 2011 6:46 pm    Post subject: can someone explain linking ? Reply with quote

Debian 6 , gdc , gtkD
using d version 1.0

I did my own make on gtkD gdc compiled.
move gtkD folder to /usr/include/d/4.3
move the .a to folder /usr/lib

Code:
import gtk.MainWindow;
import gtk.Label;
import gtk.Main;

import std.string;

void main( string[] args)
{
   Main.init(args);
   MainWindow win = new MainWindow("Hello World");
   win.setDefaultSize(200,100);
   win.add(new Label("Hello World"));
   win.showAll();
   
   Main.run();
}


compile line
Code:
gdc -o gtkdhello gtkdhello.d  -I/usr/include/d/4.3.5/gtkD/src -lm -ldl -lgtkd

what does -lm do ?
what does -ldl do ?
what does -lgtkd do ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD 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