Error Lnk2019 Unresolved External Symbol C
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us error lnk2019 unresolved external symbol __declspec(dllimport) Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community
Error Lnk2019 Unresolved External Symbol Public
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why do
Error Lnk2019 Unresolved External Symbol Winmain@16 Referenced In Function ___tmaincrtstartup
I get: unresolved external symbol Error - C [closed] up vote 0 down vote favorite 2 I try to compile this code: static uint64_t push(int fd, SOCKET sock, SSL *ssl, const char *buf, uint64_t len) { uint64_t sent; int n, k; sent =
Error Lnk2019 Unresolved External Symbol Visual Studio 2010
0; while (sent < len) { /* How many bytes we send in this iteration */ k = len - sent > INT_MAX ? INT_MAX : (int) (len - sent); if (ssl != NULL) { n = SSL_write(ssl, buf + sent, k); } else if (fd != -1) { n = write(fd, buf + sent, k); } else { n = send(sock, buf + sent, k, 0); } if (n < 0) break; sent += n; } return (sent); } And I get this linker error lnk2019 unresolved external symbol public __thiscall referenced in function _main error: Linking... mongoose.obj : error LNK2019: unresolved external symbol _send@16 referenced in function _push What am I missing? It must be some lib or something. I just don't remember what I need to add to my linking. external symbol share|improve this question edited Feb 26 '14 at 21:50 CaptainBli 2,06111641 asked Apr 27 '09 at 21:27 T.T.T. 8,5592890145 closed as not a real question by Will Feb 14 '13 at 16:00 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. add a comment| 3 Answers 3 active oldest votes up vote 5 down vote accepted The problem is that the linker can't find the send() function. You've included the proper header files, so the compiler is ok, but you're not linking with the proper static libraries. Open up your project settings, go to the Linker section, and add the proper library to the list of libraries that are linked in. [Edit] The correct library to add is wsock32.lib. share|improve this answer edited Apr 27 '09 at 22:16 answered Apr 27 '09 at 21:32 Adam Rosenfield 242k66372493 added wsock32.lib codebase.com/support/kb/?article=C01060 –T.T.T. Apr 27 '09 at 21:44 add a comment| up vote 2 down vote It's not entirely clear what question you are actually
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us error lnk2019 unresolved external symbol void __cdecl Learn more about Stack Overflow the company Business Learn more about hiring developers or error lnk2019 unresolved external symbol main referenced in function __tmaincrtstartup posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow error 2 error lnk2019 unresolved external symbol Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to solve the error LNK2019: unresolved external symbol http://stackoverflow.com/questions/795361/why-do-i-get-unresolved-external-symbol-error-c - function? up vote 36 down vote favorite 10 I get this error, but I don't know how to fix it. I'm using Visual Studio 2013. I make the solution name MyProjectTest This is the structure of my test solution: -function.h #ifndef MY_FUNCTION_H #define MY_FUNCTION_H int multiple(int x, int y); #endif -function.cpp #include "function.h" int multiple(int x, int y){ return x*y; } -main.cpp #include
to compile it.error LNK1120 and error LNK2019. What the heck http://www.cplusplus.com/forum/beginner/75175/ is going on here? 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include