Hello all,
In a previous post, I asked for socket resources. I have many now, yet I can't figure out how to link libraries in VC++ Express 2010. I looked in Beej's Guide to Network Programming and in Winsock C++ Socket Programming Part One, yet the options aren't there in the menus to link libraries. Beej's Guide said that Projects>Settings>Link>Objects/Modules yet Settings isn't in the Projects tab. and the video uses Code::Blocks.
Any help would be good.
4 replies to this topic
#1
Posted 27 June 2010 - 09:36 PM
|
|
|
#2
Posted 28 June 2010 - 05:49 PM
Never mind, I figured it out...lol
#3
Posted 10 November 2010 - 02:33 AM
Hunter100 said:
Never mind, I figured it out...lol
Please don't be so annoying! How did you solve it? I'm googling to resolve the same issue and finding nothing useful.
#4
Posted 10 November 2010 - 06:21 AM
There are a couple ways to do it
- Use a pragma parama comment(lib,"ws2_32.lib")
- Use menu Projects --> Properties (last item in the list) --> Configuration Properties --> Linker --> Input
Then on the right side add the libraries in the Additional Dependencies edit control. You may also have to add a new entriy to the Additional Libraries Path located in Linker --> General, but only if the library you want to add is not located within the compiler's install folder.
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.
#5
Posted 10 November 2010 - 06:23 AM
I've gone for the first one and it's working nicely. ;-)
I say working nicely, I mean that I've got past that problem and discovered a whole heap more, but at least my program compiles and links to an exe now.
I say working nicely, I mean that I've got past that problem and discovered a whole heap more, but at least my program compiles and links to an exe now.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









