Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Studio cant link on 32 bit but can on 64bit
    primarykey
    data
    text
    <p>I created a project and as I always do I created 2 platforms (64 and 32 bit) (this is a DLL). I wrote the code and tested it and everything went great (I always test on 64bit configuration) but as I wanted to test on my 32bit XP VM I struggle a LINK problem.</p> <p>I am using the API WSASelectEvent in my code (as a lot of other WSA/Winsock apis) but in 32 bit configuration and only in 32 bit configuration the linker refuse to find _WSASelectEvent.</p> <p>I get the well known LNK2001 error : </p> <blockquote> <p>"error LNK2001: unresolved external symbol _WSAEventSelect"</p> </blockquote> <p>I sure link to ws2_32.lib and I sure include winsock2.h as I use other apis (such as WSAStartup and WSACleanup and structs and whatnot in my code, obviously to use winsockets).</p> <p>so knowing me liking to mess around with configuration mid-work (this is a rather small project nothing too big) I decided ill go for sure and created a new project in visual studio place the code in and create a new platform to compile in (with the GUI of-course) but I've got the same results.</p> <p>I have been for 2-3 hours surfing the net to no fix and I even tried comparing the compile command line and link command line which apart of the normal /MACHINE:x64/x86 and target folders is exactly the same.</p> <p>do you maybe know this problem or a solution to it?</p> <p><em>NOTE:: intellisense warn me about this and visual studio wont suggest parameters list when WSASelectEvent( is written, but "Go to Definition" sure takes me to Winsock2.h.</em></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload