简体   繁体   中英

jwsmtp library with Dev C++

I am trying to use jwsmtp library with dev c++ but I get linker errors. 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.

   [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. 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]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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