Tôi đang gửi một email đơn giản bằng C++. Tôi đã tải xuống một chương trình mẫu C++ từ liên kết bên dưới. http://cboard.cprogramming.com/cplusplus-programming/125655-sending-simple-email-cplusplus.html Chương trình mẫu có vẻ như đã xảy ra lỗi sau khi biên dịch. Xin hãy giúp tôi giải pháp.Cách giải quyết lỗi LNK2019
Error 8 error LNK2019: unresolved external symbol _send_mail referenced in function _wmain
Error 9 error LNK2019: unresolved external symbol [email protected] referenced in function "int __cdecl connect_to_server(char const *)" ([email protected]@[email protected])
Error 10 error LNK2019: unresolved external symbol [email protected] referenced in function "int __cdecl connect_to_server(char const *)" ([email protected]@[email protected])
Error 11 error LNK2019: unresolved external symbol [email protected] referenced in function "int __cdecl connect_to_server(char const *)" ([email protected]@[email protected])
Error 12 error LNK2019: unresolved external symbol [email protected] referenced in function "int __cdecl connect_to_server(char const *)" ([email protected]@[email protected])
Error 13 error LNK2019: unresolved external symbol [email protected] referenced in function "int __cdecl connect_to_server(char const *)" ([email protected]@[email protected])
Error 14 error LNK2019: unresolved external symbol [email protected] referenced in function "int __cdecl connect_to_server(char const *)" ([email protected]@[email protected])
Có vẻ như bạn thiếu tệp nguồn hoặc thư viện. –
Chắc chắn bạn chưa biên dịch nguồn hoặc liên kết với nó. –