Home > Archive > Visual Studio > May 2006 > Linking to a library
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Linking to a library
|
|
|
| Hi Everyone!
I know what I what I want to do, but don't know what the expression is
or how to find it.
I am trying to create my first WinSock-enabled application, and I need
to (link to || reference || add a reference to) winsock.lib. I would
very much appreciate it, if someone could first of all, clarify what it
is I am trying to do (and if it's any of the things I just mentioned),
along with how to do this with Visual Studio 2005. The application is
console based (if that makes any difference), and I can't seem to find
anything that helps on MSDN, although I am very sure it exists.
Thanks in advance.
Daz
| |
|
| On 15 May 2006 06:29:59 -0700, Daz wrote:
> Hi Everyone!
>
> I know what I what I want to do, but don't know what the expression is
> or how to find it.
>
> I am trying to create my first WinSock-enabled application, and I need
> to (link to || reference || add a reference to) winsock.lib. I would
> very much appreciate it, if someone could first of all, clarify what it
> is I am trying to do (and if it's any of the things I just mentioned),
> along with how to do this with Visual Studio 2005. The application is
> console based (if that makes any difference), and I can't seem to find
> anything that helps on MSDN, although I am very sure it exists.
>
> Thanks in advance.
>
> Daz
Go to project properties, link, input, additional libraries. Add
winsock.lib
| |
|
|
BobF wrote:
> Go to project properties, link, input, additional libraries. Add
> winsock.lib
Cheers Bob! Much appreciated! :)
| |
|
|
Daz wrote:
> BobF wrote:
>
>
> Cheers Bob! Much appreciated! :)
Hmmm, something's not right here... I went to:
'Project'
'Properties'
'Configuration properties'
'Linker'
'Input'
And there appears to be an 'Additional dependancies' item, which I
clicked on, and it brought up a dialog, with the listbox white, and the
bottom grayed out, which contained:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
Either something has gone seriously wrong, or the items you suggested
don't exist in my IDE. Can anyone else relate to the problem I am
experiencing?
| |
|
| Oh, and there is not 'add' button either... :(
| |
| Phil Cairns 2006-05-15, 7:09 pm |
| Daz wrote:
> Daz wrote:
>
>
> Hmmm, something's not right here... I went to:
> 'Project'
> 'Properties'
> 'Configuration properties'
> 'Linker'
> 'Input'
> And there appears to be an 'Additional dependancies' item, which I
> clicked on, and it brought up a dialog, with the listbox white, and the
> bottom grayed out, which contained:
> kernel32.lib
> user32.lib
> gdi32.lib
> winspool.lib
> comdlg32.lib
> Either something has gone seriously wrong, or the items you suggested
> don't exist in my IDE. Can anyone else relate to the problem I am
> experiencing?
>
Don't click in the [...] at the end of the entry box. Just click on the
edit part, get to the end of the edit box, put a space there, and type
winsock.lib. I think you're expecting it to be harder than it is.
Phil.
| |
|
| On Tue, 16 May 2006 06:36:21 +1000, Phil Cairns wrote:
> Daz wrote:
>
> Don't click in the [...] at the end of the entry box. Just click on the
> edit part, get to the end of the edit box, put a space there, and type
> winsock.lib. I think you're expecting it to be harder than it is.
>
> Phil.
Additional dependencies is the correct place. I mis-quoted from memory
when I said Additional Libraries :-(
The white listbox with the above list of libs is where you want to add
winsock.lib. Go to the last entry, hit enter and add it on the new line.
| |
|
| Thanks for that guys, problem solved!
|
|
|
|
|