简体   繁体   English

具有Dev C ++的jwsmtp库

[英]jwsmtp library with Dev C++

I am trying to use jwsmtp library with dev c++ but I get linker errors. 我正在尝试将jwsmtp库与dev c ++一起使用,但出现链接器错误。 Anybody know how to use it with dev c++?, actually I have to send an email with attachment from my c program so I am trying to use it, but if anyone have alternative it will also be appreciated. 有人知道如何在dev c ++中使用它吗?实际上,我必须从我的c程序中发送带有附件的电子邮件,所以我尝试使用它,但是如果有人有其他选择,也将不胜感激。

   [Linker error] main.o:main.cpp:(.text+0x12c): undefined reference to `jwsmtp::mailer::send()'

From the error message you are getting, it seems like the library is not properly linked with your program. 从收到的错误消息看来,该库未正确链接到您的程序。 So please make sure that JWSMTP is included in your final executable. 因此,请确保JWSMTP包含在最终的可执行文件中。 Properly link the library and you will be good to go. 正确链接图书馆,您将一路顺风。 Go to the compiler option of Dev C++ and add your library path there if it isn't done already [In my version of Dev C++ Ide it is located at Menu -> Tools -> Compiler options -> Directories Tab -> Libraries] [Btw I dont have the reputation to comment.:( So I'm posting this as an answer. I'll delete this if this is not solving your problem] 转到Dev C ++的编译器选项,如果尚未完成,请在其中添加您的库路径[在我的Dev C ++ Ide版本中,它位于菜单->工具->编译器选项->目录选项卡->库] [顺便说一句,我没有评论的声誉。:(因此,我将其发布为答案。如果这不能解决您的问题,我将删除它。]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM