I am trying to use Dev C++ to compile some sample code I got, which was written in C. With the code I have the necessary header files, .lib file and .dll files I need and they are all in the same directory as the .cpp file I am creating.
Anyway, I keep getting variations of the following error message:
[Linker error] undefined reference to `_imp__ETSocketLink@8'
I am using the following code to add in the .lib file
That bit of code was suggested to me by a friend but he is unfamiliar with Dev.Code:#pragma comment( lib, "smbw32vc.lib" )
Now, I have no reason to assume the code is wrong. It is sample code after all. The only problem I am having is with the Linker, at the moment.
Any help is greatly appreciated.