link with every lib in the package?
Try this, I get this problem sometimes...
Check what you are trying to built, for example if you coded a DLL, make sure your project is a DLL project, same for a console application. Sometimes I forget what type of project it is, and then I get these errors. I then just change project types and it solves my issues.
If that doesnt solve it, check that EVERYTHING is written right.
Last edited by aanthonyz; 03-22-2011 at 03:31 PM.
"The best way to predict your future is to create it."
Contributions I made:
DirectX E-Books
Hacking Tools
Hacking into a PC
Need Help?
Send me a PM, or send me a email at : aanthonyz10@gmail.com
Click My Dragon:
link with every lib in the package?
Ah we-a blaze the fyah, make it bun dem!
"The best way to predict your future is to create it."
Contributions I made:
DirectX E-Books
Hacking Tools
Hacking into a PC
Need Help?
Send me a PM, or send me a email at : aanthonyz10@gmail.com
Click My Dragon:
You have to pick which file to link to:
chilkatdbg* = debug build, chilkatRel*= release obviously.
Main factor is how do you link to your C Runtime Libraries.
If you're linking staticly then link then use ChilKatDbg or ChilKatRel, or if you're linking dynamically then use ChilKatDbgDll.lib or ChilKatRelDll.lib
You DO know how to add a lib to your project right?
Common way: Right click project->Properties->Configuration Properties->Linker->Input->Additional Dependencies, add the name of the lib
i did all of that blackange1 and i get the same errors.
here is the code:
errors are in my first post.Code:#include <CkMailMan.h> #include <CkEmail.h> #include <iostream> void ChilkatSample(); using namespace std; #pragma comment(lib, "ChilkatDbg_x64.lib") #pragma comment(lib, "ChilkatDbgDll_x64.lib") #pragma comment(lib, "ChilkatRel_x64.lib") #pragma comment(lib, "ChilkatRelDll_x64.lib") int main() { ChilkatSample(); } void ChilkatSample() { // The mailman object is used for sending and receiving email. CkMailMan mailman; // Any string argument automatically begins the 30-day trial. bool success; success = mailman.UnlockComponent("30-day trial"); if (success != true) { printf("%s\n",mailman.lastErrorText()); return; } // Set the SMTP server. mailman.put_SmtpHost("smtp.gmail.com"); // Set the SMTP login/password (if required) mailman.put_SmtpUsername("keeperto@gmail.com"); mailman.put_SmtpPassword("12010607"); // Create a new email object CkEmail email; email.put_Subject("This is a test"); email.put_Body("This is a test"); email.put_From("Michael Ragheb <keeperto@gmail.com>"); email.AddTo("Mikey","raghebmichael@gmail.com"); // To add more recipients, call AddTo, AddCC, or AddBcc once per recipient. // Call SendEmail to connect to the SMTP server and send. // The connection (i.e. session) to the SMTP server remains // open so that subsequent SendEmail calls may use the // same connection. success = mailman.SendEmail(email); if (success != true) { printf("%s\n",mailman.lastErrorText()); return; } // Some SMTP servers do not actually send the email until // the connection is closed. In these cases, it is necessary to // call CloseSmtpConnection for the mail to be sent. // Most SMTP servers send the email immediately, and it is // not required to close the connection. We'll close it here // for the example: success = mailman.CloseSmtpConnection(); if (success != true) { printf("Connection to SMTP server not closed cleanly.\n"); } printf("Mail Sent!\n"); }
thanks for all of your guys' help btw.
If you're using pragma's to include your libs, DONT include them again through the project properties, but be sure to set the Lib Include directory to where they are stored.
Also, only include ONE of those libs.. you need to figure out which one you need to include (Debug vs release and static vs dynamically linked)
Lastly - you're linking to 64 bit libraries. Is your compiler / project setup to build for 64 bit? (just because you're running 64 bit win box doesn't mean you're buildling 64 bit EXEs) mixing 64bit libs in a 32 bit project wont' work. My main guess is that THIS is actually part of your problem - Try grabbing the 32 bit version of those libs and link to ONE
Last edited by B1ackAnge1; 03-22-2011 at 08:33 PM.
258456 (03-23-2011),Hell_Demon (03-23-2011),Melodia (03-23-2011)
When i add the x32 libs there are 53 errors compared to the 15 with the x64 libs.
and you're linking to ONE right?
Ya konw what - zip/rar up your crap and email it my way
258456 (03-23-2011),Hell_Demon (03-24-2011)
I actually think that would be the fastest method to get stuff to work.
"The best way to predict your future is to create it."
Contributions I made:
DirectX E-Books
Hacking Tools
Hacking into a PC
Need Help?
Send me a PM, or send me a email at : aanthonyz10@gmail.com
Click My Dragon:
k i sent it.
What Version of Visual Studio you running? 2008 or 2010 I made a vs2008 project - only configured the Debug build. Just needed to a few extra libs (crypt32, ws2_32 and dnsapi ) to get it to build.
Just put the chilkatdbgdll.lib in the 'libs' folder
Last edited by B1ackAnge1; 03-23-2011 at 11:09 PM.
258456 (03-24-2011),Hell_Demon (03-24-2011),why06 (03-24-2011)
B1ackAnge1 is too kind for this world... too kind... We have to destroy him D:
Ah we-a blaze the fyah, make it bun dem!
why06 (03-29-2011)
don't worry - bet i'll get fed up with the retards in the other sections soon enough and disappear again haha speaking of - zeco bailed too?
Ah we-a blaze the fyah, make it bun dem!