SunQuest
           C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 16th, 2002, 06:48 PM
Rooster Rooster is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 6 Rooster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Linking static libraries

Compiler: MS VC++ 6.0

I’m trying to write a static library to use in future projects. I’ve already made one that uses MFC, which is easy because the VC++ wizard sets it up for you. I now have a couple of third party libraries which I would like to use in the new library that I’m making. I wondering if anyone could tell me how I might go about linking the third party libraries to the one I’m creating. When you make a regular project there is a “Link” tab in the settings dialog where you can specify what you link to. But when you create a static library the “Link” tab is no longer present. Aren’t I supposed to link to the other libraries, or do I do something else?

And if anyone could recommend a book on how to actually use this compiler I would really appreciate it, (i.e. settings, linking, preprocessor settings, what the hundreds of settings actually do, the proper way to link files, etc. etc. etc.)

Thanks for your time.

Reply With Quote
  #2  
Old November 22nd, 2002, 10:23 AM
ClayDowling ClayDowling is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Flint, MI
Posts: 328 ClayDowling User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 19 m 25 sec
Reputation Power: 6
I'm not certain about MSVC++, but at least on UNIX platforms a static library can't be linked to other libraries. The library format there is really just a collection of object files with an index into the functions those files contain.

I don't know what the format of a static windows library is, but I suspect that it's similar. You might try creating a dynamic library, which does allow linking.
__________________
Clay Dowling
Lazarus Notes
Articles and commentary on web development
http://www.lazarusid.com/notes/

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Linking static libraries


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway