Linking to a library that links to a library?

Up vote 0 down vote favorite share g+ share fb share tw.

So I'm trying to link sfml-dev.org/wiki/en/projects/cpgui to my library, which links to SFML. I use code::blocks so I had to make my own project for that library, and as it requires SFML I statically linked to SFML in that library and compiled it fine. Now, when I attempt to statically link that library to my library, I get a bunch of undefined references to SFML when I compile my project.

I linked to SFML in both projects, what's happening? C++ gcc linker codeblocks link|improve this question asked May 25 '11 at 22:28Chris1758 40% accept rate.

You should be able to just link to the library you want to use. That library should have been compiled and linked against any dependencies it had and if it's all static you don't even need to deploy anything but your app or whatever you're making. However you should check that you don't have conflicting versions of SFML or other common dependencies across projects.

– AJG85 May 25 '11 at 22:57 I compiled it myself and linked against my version of SFML, so it's probably either a bug with my linker or a bug with that project. Oh well. I got it to work anyway.

– Chris May 25 '11 at 23:02 1 Out of curiosity what was the solution? – AJG85 May 25 '11 at 23:08 Instead of linking the library, I simply added the source files to the current project. – Chris May 25 '11 at 23:17 Ah well I guess that's one way to do it if it's open source and you were going to statically link anyway :P – AJG85 May 25 '11 at 23:27.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions