Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Hello guys
I want to tell the compiler to include specific libraries in code. for example:
C++
#ifdef LIBA
//code to include LIBA.LIB
#endif
#ifdef LIBB
//code to include LIBB.LIB
#endif
Is there any C directive to include LIBA, LIBB in above example?
Thanks in forward
mr.abzadeh
Posted

1 solution

There is only one valid reason for posting this question - you live in a place without Google


Assuming you are talking about Visual Studio

http://msdn.microsoft.com/en-us/library/7f0aews7(v=vs.80).aspx[^]

http://support.microsoft.com/kb/153901[^]
 
Share this answer
 
v3
Comments
mr.abzadeh 28-Jul-13 10:41am    
Sorry!! I searched google with keywords how to include library in c and how to embed library in c and I got no usefull links. I looked at #pragma directive list, but I skipped the
#pragma comment because the keyword comment was not suggestive in this case. the meaning of comment has not enough relation to linking libraries. Thanks your Help, and humor
mr.abzadeh

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900