954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

add library to borland c++

hi, i want to add library to borland c++ it consist of header files and .lib files I try to put the header files in include file and .lib in lib file but they still not working, does that mean the .lib files are corrupted

amirwan
Newbie Poster
9 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

I dunno, depends on what you mean by "not working".

Does it mean "file not found"
Does it mean "the file seems to be corrupt".

Also, how did you 'include' it?
Did you do something like
#include "file.lib" // this is wrong
Or something else?

Where did you get the .h/.lib from? Did it say that it was suitable for use with your compiler (including the version of your compiler). .lib file formats vary between compilers and versions of compilers.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

i include only the header files and i put the path of the .lib to recognize that but when i try to use it's function it did not work

amirwan
Newbie Poster
9 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

Like I said, "it doesn't work" isn't a good enough description of the problems you're seeing to be able to suggest what to do next.
http://www.catb.org/~esr/faqs/smart-questions.html#beprecise

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

ok i think the problem is clear but i will try to explain what exactly what happen. the library is about socket and one of it's function is
socket() when i compile the program an error is raised and it said
undefined symbol socket().

amirwan
Newbie Poster
9 posts since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You