Hello all.
I've tried to run project under CB for three weeks but all the time I meet with obstacles. I serched way to solve the problem and I find the reason of my problems but I cannot find solution. I've make everything as is in
MVCT Wiki.
Problem is, when i tried to build project whitch is using some *.lib files I get LInker errors:
Switching to target: default
Linking console executable: ..\bin\test.exe
main.obj : error LNK2019: unresolved external symbol _enet_initialize referenced in function _main
..\bin\test.exe : fatal error LNK1120: 1 unresolved externals
Process terminated with status 1 (0 minutes, 0 seconds)
Program code:
main.cpp:
#include <iostream>
#include "enet/enet.h"
using namespace std;
int main(int argc,char *argv[])
{
if (enet_initialize() != 0)
{
std::cout << "An error occurred while initializing ENet.\n";
return 1;
}
return 0;
}
declaration of enet_initialize() is in "enet/enet.h" and body is in libenet.lib.
I know there is problem with linking libraries to every project. When I used MinGW I get the similar errors (undefined reference to sth). It's not first project returning errors. Some time ago I've _tired_ to work with
Ogre3D but I've got the same problems with linking.
Pls help, I'm realy desperated! :?
PS. I've included libenet.lib to project and added it to Build->Compiler Options->Linker->Linker Libraries