Home > Back-end >  Has always been a link error, have added the getopt. Lib library, but still not, ask the great spiri
Has always been a link error, have added the getopt. Lib library, but still not, ask the great spiri

Time:09-18



Error and the error LNK1120: one cannot resolve the external command E: \ graduate \ VOCUS \ code \ VOCUS \ VOCUS \ Debug \ VOCUS exe
Error error 24 LNK2019: cannot resolve the external symbol "int __cdecl getopt (int, char * *, char const *)" (? Getopt @ @ YAHHPAPADPBD @ Z), the symbol in the function "class VOCUS2_Cfg __cdecl create_base_config (int, char * * const)" (? Create_base_config @ @ YA? AVVOCUS2_Cfg @ @ HQAPAD @ Z) cited in E: \ graduate \ VOCUS \ code \ VOCUS \ VOCUS \ VOCUS \ main obj VOCUS

CodePudding user response:

Strange, always someone recently asked a question of VC,
This is a c + + Builder plate, clearly is not to have a VC/MFC plates,

CodePudding user response:

Meet the same problem is solved, please

CodePudding user response:

#include
# pragma comment (lib, "getopt. Lib")

Are you doing this?
Is your "getopt. Lib" versions of Windows?? This library and Linux, are you sure you have chosen to the library?
  • Related