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

Silly question

 
Post new topic   Reply to topic     Forum Index -> Schooner
View previous topic :: View next topic  
Author Message
scooterman



Joined: 06 Feb 2007
Posts: 10

PostPosted: Tue Feb 06, 2007 12:28 pm    Post subject: Silly question Reply with quote

Sorry, but I'm kinda new on D and I'm having a little trouble on how to link schooner with the build tool. I've tried with the -IPath to gld.lib but it didn't worked. Someone can give me a hand??


Thanks
Back to top
View user's profile Send private message
Bradley Smith



Joined: 20 Jun 2006
Posts: 60

PostPosted: Tue Feb 06, 2007 11:11 pm    Post subject: Reply with quote

Since I no longer use the build tool, I don't recall how get it to link libraries. Perhaps someone on the build forum can help.

Here is the command used to build the triangle example:

Code:
dmd gld.lib ..\gl\opengl32.lib ..\gl\glu32.lib ..\win32\win32.lib ..\win32\gdi32.lib ..\win32\winmm.lib -version=WindowsXP -Isource -I..\gl\imports -I..\win32\imports -Iimports -oftriangle.exe -L-L/exet:nt/su:windows:4.0 source\examples\triangle.d
Back to top
View user's profile Send private message
Derek Parnell



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

PostPosted: Wed Feb 07, 2007 12:58 am    Post subject: Reply with quote

Bradley Smith wrote:
Since I no longer use the build tool, I don't recall how get it to link libraries. Perhaps someone on the build forum can help.

Here is the command used to build the triangle example:

Code:
dmd gld.lib ..\gl\opengl32.lib ..\gl\glu32.lib ..\win32\win32.lib ..\win32\gdi32.lib ..\win32\winmm.lib -version=WindowsXP -Isource -I..\gl\imports -I..\win32\imports -Iimports -oftriangle.exe -L-L/exet:nt/su:windows:4.0 source\examples\triangle.d

If you do want to type in those library references each time, yo can use Bud to help ...

Create a Bud Response File (e.g glib.brf) and have it look like
Code:

gld.lib
..\gl\opengl32.lib
..\gl\glu32.lib
-I..\gl\imports

and another for WinXP support (e.g. xp.brf)
Code:

-version=WindowsXP
-I..\win32\imports
-L-L/exet:nt/su:windows:4.0


and if you use the stuff in the 'imports' path a lot, update the Bud configuration file to contain the line ...
Code:

CMDLINE=-Iimports


So then when it comes to compiling your app ...
Code:

bud myapp @glib @xp

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



Joined: 06 Feb 2007
Posts: 10

PostPosted: Wed Feb 07, 2007 10:39 am    Post subject: Reply with quote

Thanks, that worked perfectly. Another question:
I'm trying to create a simple test engine with gld, build it as lib, and then use the lib to create a independent program. But, when I try to import my engine on the main program, the compiler asks for gld import/lib. Is this correct??
Back to top
View user's profile Send private message
Bradley Smith



Joined: 20 Jun 2006
Posts: 60

PostPosted: Wed Feb 07, 2007 3:11 pm    Post subject: Reply with quote

Unless you somehow combine the gld library with your engine library, the compiler will need both for the independent application. The gld imports should only be needed if the independent application calls gld directly, or if you use the your engine source to compile the independent application.
Back to top
View user's profile Send private message
accumen72



Joined: 04 Aug 2011
Posts: 2

PostPosted: Thu Aug 04, 2011 3:08 am    Post subject: New Here Reply with quote

I've got a silly question - is a schooner a sailboat? Thanks Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Schooner 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