• C

linking libraries in BC3.1

I want to make a programm for a DOS station that uses TCP protocol. I found a way of doing this by using Waterloo TCP libraly . For editing the source file I use BC3.1 but I have a problem generated probalby by the fact that I don't know where I can include the wattcpsm.lib, so I have errors saying "ERROR: Undefined symbol xxxxxfunction(..) in module mymodule.c"; I use the following command line in order to compile the programm:

bcc -ms -IC:\borlandc\include -I.\include -L.\lib\wattcpsm.lib mymodule.c

The error appears after is launched Turbo Link (so it generates this error) and is like the linker doesn't know to find the library file
LVL 2
jorjAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sumant032199Commented:
Try again putting lib file and header file in working dir. See that you have included .h file. A path may be defined in the header file as an instruction to the compiler.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AlexVirochovskyCommented:
Why you don't IDE? (bcw).
Simple open you Project window,
press ins, brouse to lib file and
press "Enter". But if you use bcc, tray
use full path, as:
-Lc:\lib\my.lib
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.