🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.owl
Article #43

Re: How do I link a library to my program??

#43
From: Kurt Watzka
Date: Thu, 07 Mar 1996 11:48
28 lines
1769 bytes
Kiran Muglurmath <kiranm@fnx.com.au> writes:

>> In article <313d3c58.4431866@news.csus.edu>, wleong@sfsu.edu says...
>> >
>> >    I have been given a library file (winsock.lib) which contains
>> >routines that I need to use in my program. But even if I include it
>> >in my project file, linker still couldn't find the routines in the
>> >lib. Somehow I am under the impression that I need to call certain
>> >functions in my progam in order to load the library into the module.

>If the library in question is an import library for a DLL, then you must
>also set the link flag to Dynamic linking in TargetExpert. If it is set
>to Static linking, you will see the same symptoms you described.

Neither our Watcom 10.5 nor the brand new Visual C++ 4.0 compilers
have a TargetExpert. Have I missed a significant extension to the
definition of the C programming language, or is this answer limited
to a special implementation that the original poster may or may not
have?

If you post "solutions" that are limited to _one_ implementation 
of a language, at least say so in your "answer".

Kurt
--
| Kurt Watzka                             Phone : +49-89-2180-6254
| watzka@stat.uni-muenchen.de
| ua302aa@sunmail.lrz-muenchen.de
Technical Details
Message-ID: <4hmif0$kff@sparcserver.lrz-muenchen.de>
Path: arc1-ca.pugleaf.net!lrz-muenchen.de!news
References: <313d3c58.4431866@news.csus.edu> <4hkj89$iql@nnrp1.news.primenet.com> <313E7F15.FF6D5DF@fnx.com.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!lrz-muenchen.de!news
From: watzka@stat.uni-muenchen.de (Kurt Watzka)
Newsgroups: comp.os.ms-windows.programmer.tools.owl,comp.lang.c
Subject: Re: How do I link a library to my program??
Date: 7 Mar 1996 11:48:48 GMT
Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
Distribution: world
Message-ID: <4hmif0$kff@sparcserver.lrz-muenchen.de>
References: <313d3c58.4431866@news.csus.edu> <4hkj89$iql@nnrp1.news.primenet.com> <313E7F15.FF6D5DF@fnx.com.au>
NNTP-Posting-Host: sun2.lrz-muenchen.de