Ok well im not an expert at C++ but...
  • i am not to great at C++ as in i just started like around a week ago i think. and i need to make a program that uses a socket library, i dont know how to use the library. i already downloaded it. i put it in my library folder in my compiler's folder. i just don't know if it's like ready to use or what. i havent downloaded a library or anything like that to help with a program before. so can someone help me out real fast? its not extremely urgent but i'd like to accomplish this part of the task
  • Is it a compiled library or source?

    If source, use include tags. IIf it's compiled, you need to include a link to it when compiling.

    I recommend you find some c++tutorials. This is the basics :)

  • could you use an example of the include tags :) again im pretty basic. i have a huge eBook but im only on chapter 2
  • As Tesiox said... It depends on the library. As you said i put it in my library folder in my compiler's folder, I guess it's a precompiled library.

    Tell us the name of it so we can Google for the flag for the compiler. For example it may look like -lSDL. If you're using an IDE that generates makefile automatically, these tags should be typed in somewhere in preferences.
  • uhm its not precompiled i had to search for it. and i use dev-C++
  • If it's just a bunch of *.h and *.c/*.cpp files - include them in your project* (to the list of the files in Dev-Cpp project) and code (#include "name_of_header_file"...).

    I have used Dev-Cpp as a portable compiler, so I don't know if it checks for header files in it's own folder. But I guess not. At least other APIs require you to include all files in the project settings.

    *usually project files are held in one folder.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Poll

No poll attached to this discussion.

In this Discussion