Silly "extern" question
So I'm confused about some code I was trying to compile. It's a large project, a dual-network stack, and when I added my code to try to build, I got a bunch of unresolved external symbol errors for the variables that I was using, like:
extern SOCKET rip_udp_socket;
Does this mean SOCKET rip_udp_socket is defined somewhere else in the project? Thanks.
> Does this mean SOCKET rip_udp_socket is defined somewhere else in the project?
If the errors are compiler errors, you're missing the extern statement. If the errors are linker errors, the variable isn't defined anywhere in the files you're linking with. (So either link with the proper files or put an un-extern declaration in one of the files.)