Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > including libs by #pragma comment -> order of libs

Reply
Thread Tools

including libs by #pragma comment -> order of libs

 
 
Christoph
Guest
Posts: n/a
 
      09-17-2003
I am including a lib in my c-source by using #pragma comment( lib,
myLib.lib )
-> it works!

I additionally want to set myLib.lib as my first library. Can anybody
help me to set the order of the librarys?

Thanks a lot,
Christoph
 
Reply With Quote
 
 
 
 
Pieter Droogendijk
Guest
Posts: n/a
 
      09-17-2003
On 17 Sep 2003 03:19:45 -0700
http://www.velocityreviews.com/forums/(E-Mail Removed) (Christoph) wrote:
> I am including a lib in my c-source by using #pragma comment( lib,
> myLib.lib )


Not using standard C you didn't. The standard says that the effects of a pragma
directive is implementation dependant. Therefore this can't be discussed here
without losing a certain... degree of topicality.

You could best ask in one of the compiler newsgroups.

--
char*x(c,k,s)char*k,*s;{if(!k)return*s-36?x(0,0,s+1):s;if(s)if(*s)c=10+(c?(x(
c,k,0),x(c,k+=*s-c,s+1),*k)x(*s,k,s+1),0));else c=10;printf(&x(~0,0,k)[c-~-
c+"1"[~c<-c]],c);}main(){x(0,"^[kXc6]dn_eaoh$%c","-34*1'.+(,03#;+,)/'///*");}
 
Reply With Quote
 
 
 
 
Richard Bos
Guest
Posts: n/a
 
      09-17-2003
(E-Mail Removed) (Christoph) wrote:

> I am including a lib in my c-source


This does not make sense.

> by using #pragma comment( lib, myLib.lib )


This, like almost all #pragmas, is completely system-dependent.

> -> it works!


This sounds like accident.

> I additionally want to set myLib.lib as my first library.


This, again, is completely system-specific.

> Can anybody help me to set the order of the librarys?


Yes: the manual that came with your compiler. Failing that, a newsgroup
that has managing your specific compiler as its topic, instead of
comp.lang.c, which discusses ISO C.

Richard
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
do I need "ruby-libs" as a prerequisite to install/run ruby? what is"ruby-libs" exactly? Greg Hauptmann Ruby 4 02-07-2009 11:12 AM
How to eliminate multiple declaration error for a symbol present inboth libs( without modifying libs) Raman C Programming 5 05-09-2008 06:12 AM
? ELSE Conditional Comment / Using Conditional Comments Inside Other Tags To Comment Out Attributes Alec S. HTML 10 04-16-2005 02:21 AM
Including other people's Ruby libs in your package James Britt Ruby 9 07-30-2004 04:11 AM
including c libs in c++ code? joe C++ 1 05-22-2004 04:00 PM



Advertisments