Jump to content

C++ linking inside a static library


AggrorJorn
 Share

Recommended Posts

I am working on a framework. This framework can be used when a new leadwerks project is generated. I learned from Rick that I can create static libraries to harness the framework in to a .lib file.

 

The problem I currently have is that my own framework relies on an external library as well(SFML) as well as the leadwerks.lib. It seems as if it is not possible to link static libraries in to a static that is yet to be made.

 

Any advice on how to properly work with static libs while making a static library would be great.

 

post-45-0-63004600-1390147216.png

Link to comment
Share on other sites

Edit**

I have made some progress myself. I don't have to fill in the linkers and I can just link all the libraries that Leadwerks uses myself. Luckely this could be done by copying part of .vxproj instead of adding all those folder by hand.

 

post-45-0-21367900-1390150343_thumb.jpg

 

 

 

Lots of errors remaing about stdafx and what not.

Link to comment
Share on other sites

You don't have to link the dependency into your library, you just have to set the headers correctly. The end user of your library then links your .lib and any of its dependencies. We are currently using this techniques successfully for the Wings project on both 3.0 and 3.1.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...