NEWBIE: Undefined references: How do I find the library that resolves an undefined reference
NEWBIE question: Undefined references: How do I find the library that resolves an undefined reference. For example, the output for the gcc linker running in MinGW shows: C:/boost/boost/asio/detail/impl/winsock_init.ipp:39: Undefined reference to `WSAStartup@8' I have googled the documentation a number of ways, but I cannot find the library that will resolve this error. I am sure that this is a common problem. Please point me to the documentation so I can fix this and the undefined references. Thanks!
That would be the winsock library.
https://msdn.microsoft.com/en-us/library/ms740673.aspx
On 24 January 2017 at 20:33, JENNINGS, LYNN M NH-03 USAF AFMC 517
SMXS/MXDPB
NEWBIE question: Undefined references: How do I find the library that resolves an undefined reference. For example, the output for the gcc linker running in MinGW shows:
C:/boost/boost/asio/detail/impl/winsock_init.ipp:39: Undefined reference to `WSAStartup@8'
I have googled the documentation a number of ways, but I cannot find the library that will resolve this error. I am sure that this is a common problem. Please point me to the documentation so I can fix this and the undefined references.
Thanks!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On 1/24/2017 3:44 PM, Richard Hodges wrote:
That would be the winsock library.
https://msdn.microsoft.com/en-us/library/ms740673.aspx
On 24 January 2017 at 20:33, JENNINGS, LYNN M NH-03 USAF AFMC 517 SMXS/MXDPB
wrote: NEWBIE question: Undefined references: How do I find the library that resolves an undefined reference. For example, the output for the gcc linker running in MinGW shows:
C:/boost/boost/asio/detail/impl/winsock_init.ipp:39: Undefined reference to `WSAStartup@8'
I have googled the documentation a number of ways, but I cannot find the library that will resolve this error. I am sure that this is a common problem. Please point me to the documentation so I can fix this and the undefined references.
Thanks!
In the future, you can check Microsoft's documentation [1] for info on their functions. I searched for "WSAStartup", and found [2]. At the bottom of that page is a "Requirements" box, which tells you the library it's in. Andy 1. http://msdn.microsoft.com 2. https://msdn.microsoft.com/en-us/library/windows/desktop/ms742213(v=vs.85).a...
On 1/24/2017 2:33 PM, JENNINGS, LYNN M NH-03 USAF AFMC 517 SMXS/MXDPB wrote:
NEWBIE question: Undefined references: How do I find the library that resolves an undefined reference. For example, the output for the gcc linker running in MinGW shows:
C:/boost/boost/asio/detail/impl/winsock_init.ipp:39: Undefined reference to `WSAStartup@8'
I have googled the documentation a number of ways, but I cannot find the library that will resolve this error. I am sure that this is a common problem. Please point me to the documentation so I can fix this and the undefined references.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms742213(v=vs.85).a...
Thanks!
participants (4)
-
Edward Diener
-
JENNINGS, LYNN M NH-03 USAF AFMC 517 SMXS/MXDPB
-
Michael Chisholm
-
Richard Hodges