Problem with Real Libray Project [GENERAL C++ problem]

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Tedi
Posts: 18
Joined: Sun Nov 27, 2011 3:42 pm
Contact:

Problem with Real Libray Project [GENERAL C++ problem]

Post by Tedi »

Hello,

i am working on real library project. http://tedigame.blogspot.gr/

I use havok, irrlicht,irrklang, Lua, LuaBind libraries and I want to give a release of my code that does not have to include all those libraries. Now you have to reconnect them to your solution.
I know that it is possible for me to hide those *.libs so the end user of my library do not have to connect the to their project but I can not figure out how to do this in MVSC 2010.

Does anybody know?
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Problem with Real Libray Project [GENERAL C++ problem]

Post by Mel »

can't you link them statically? In MSVC you have the option to output a library (.lib) so, any linked library during the complation does actually link statically.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Tedi
Posts: 18
Joined: Sun Nov 27, 2011 3:42 pm
Contact:

Re: Problem with Real Libray Project [GENERAL C++ problem]

Post by Tedi »

This is what I do. I link them statically. In my solution. And create a big Library that I call Real Library. But when I use it in an other solution I link this big library but MSVC asks for the other libraries.

I do not wish this to happen. It would be best if the user of real library only has to link statically or dynamically with one lib that holds all the other.

This is my problem.
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Problem with Real Libray Project [GENERAL C++ problem]

Post by serengeor »

You don't link static libraries with other static libraries.
See: http://stackoverflow.com/questions/2157 ... -libraries
Last edited by serengeor on Wed Feb 13, 2013 8:59 am, edited 1 time in total.
Working on game: Marrbles (Currently stopped).
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Problem with Real Libray Project [GENERAL C++ problem]

Post by Mel »

dumb me... i didn't know that...
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Tedi
Posts: 18
Joined: Sun Nov 27, 2011 3:42 pm
Contact:

Re: Problem with Real Libray Project [GENERAL C++ problem]

Post by Tedi »

So what is the way to do this? Link them dynamically? Dll?
Post Reply