( search forums )
c/c++ library resource!
Soldat Forums - Soldat Talk - Developers Corner
January 11, 2005, 3:17 am
ever get angry cause you coded something and got it to compile on one server, but then realized when you got home you were missing tons of libraries so you couldn't compile it at home? ;(

Well, I have many times.

I was wondering where you can find specifically c/c++ libraries for the gcc compiler. What would you do with the tar.gz after you got it?

January 20, 2005, 2:42 pm
Yep, I hate that. I don't think I can help you much, but all I can say is google for the libraries you need, and unzip the tar.gz's to an appropriate system folder or your source code directory. What OS are you running?

January 21, 2005, 6:51 am
...win xp :)

what directory would i need to put it in?

January 21, 2005, 7:48 am
From my experience, tar.gz files are usually for Linux systems, which means you may have to find windows versions, which should come in a .zip instead. But you can try it and see if it works. I'd put them in your windows\system\ folder, although I use 98, so I don't know if it's exactly the same in XP. Putting the files in the same directory as your code should also work, so maybe try that too.

And you can also try setting up your IDE to let it know where the libraries are, or use command line options if you're using a command line compiler. There should be documentation with the gcc compiler on how to do it.

And I just thought, the libraries you downloaded should come with documentation on how to install them, or there should at least be instructions on the web page.

February 17, 2005, 6:22 pm
download winrar at www.rarlab.com
it may be able to open .gz files and compression files other than .zip

February 18, 2005, 12:20 am
i believe winace opens the most crap?

googlie it, i cant remember for sure

February 20, 2005, 6:24 pm
7zip is _free_ and opens almost anything :) http://www.7-zip.org/

Deleted User
February 21, 2005, 5:50 pm
EDIT: I just reread your post and noticed you are using GCC. If you are in windows, are you using Cygwin or something? Everything should still apply though.

Also, depending on the library you downloaded you may have to compile it. you may have to do any or all of the following:

After compiling the library (if you had to; there's usually instructions on how if you need them, some come pre-compiled) place the following files in these destinations:

Place the .dll file in C:\Windows\System32, this makes the DLL global so any application can use it for now on. If you don't want the DLL global, you will have to place it in every directory that uses it, so I prefer placing it there.

Put the .lib file in the Library directory of your compiler. Mine is like so: C:\Program Files\Microsoft Visual Studio\VC98\Lib

Put the header files (.h) in the proper header directory of your compiler. Mine is called is in C:\Program Files\Microsoft Visual Studio\VC98\Include

After this is done you should be all set. Have fun!