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

How does pragma works?

 
Post new topic   Reply to topic     Forum Index -> Tutorials
View previous topic :: View next topic  
Author Message
jicman



Joined: 22 Dec 2004
Posts: 298
Location: Rochester, NY

PostPosted: Sun Mar 13, 2005 5:36 pm    Post subject: How does pragma works? Reply with quote

in the .117 version, the following statement is found on the pragmas
documentation:

|lib
|Inserts a directive in the object file to link in the library specified by the
|AssignExpression. The AssignExpressions must be a string literal:
| pragma(lib, "foo.lib");

I added

|pragma(lib,"ws2_32.lib");

to a program and I still need to link the library with the compiler or with
build. ie,

|build prog.d ws2_32.lib

or

|dmd prog.d ws2_32.lib

Will anyone explain why I still need to do that?

thanks.

jic
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Tutorials 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